{"record":{"id":"67511a27e4eb29ce","repo":"zellij-org/zellij","slug":"failed-to-receive-app-instruction-on-channel","errorCode":null,"errorMessage":"failed to receive app instruction on channel","messagePattern":"failed to receive app instruction on channel","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zellij-client/src/lib.rs","lineNumber":1401,"sourceCode":"            full_screen_ws.rows,\n            !explicitly_disable_kitty_keyboard_protocol,\n        );\n        let mut stdout = os_input.get_stdout_writer();\n        stdout.write_all(error.as_bytes()).unwrap();\n        stdout.flush().unwrap();\n        std::process::exit(1);\n    };\n\n    let mut exit_msg = String::new();\n    let mut synchronised_output = match os_input.env_variable(\"TERM\").as_deref() {\n        Some(\"alacritty\") => Some(SyncOutput::DCS),\n        _ => None,\n    };\n\n    loop {\n        let (client_instruction, mut err_ctx) = receive_client_instructions\n            .recv()\n            .expect(\"failed to receive app instruction on channel\");\n\n        err_ctx.add_call(ContextType::Client((&client_instruction).into()));\n\n        match client_instruction {\n            ClientInstruction::Exit(reason) => {\n                os_input.send_to_server(ClientToServerMsg::ClientExited);\n\n                if let ExitReason::Error(_) = reason {\n                    handle_error(reason.to_string());\n                }\n                exit_msg = reason.to_string();\n                break;\n            },\n            ClientInstruction::Error(backtrace) => {\n                handle_error(backtrace);\n            },\n            ClientInstruction::Render(output) => {\n                let mut stdout = os_input.get_stdout_writer();","sourceCodeStart":1383,"sourceCodeEnd":1419,"githubUrl":"https://github.com/zellij-org/zellij/blob/e839bfffa586992364309a685b2c71f3b23c247e/zellij-client/src/lib.rs#L1383-L1419","documentation":"Error \"failed to receive app instruction on channel\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs at zellij-client/src/lib.rs:1378 when the operation fails: \"failed to receive app instruction on channel\". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.","commonSituations":"Typically happens during shutdown or crash of a companion thread.","solutions":["The receiving end has shut down; ensure the component is alive before sending.","Treat this as a shutdown race; retry after restart or report if reproducible."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e839bfffa586992364309a685b2c71f3b23c247e","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}