{"record":{"id":"ec23ab9b2671c6d6","repo":"zellij-org/zellij","slug":"invalid-nestedsessionhandling-value","errorCode":null,"errorMessage":"Invalid NestedSessionHandling value: {}","messagePattern":"Invalid NestedSessionHandling value: (.+?)","errorType":"exception","errorClass":"anyhow","httpStatus":null,"severity":"error","filePath":"zellij-utils/src/ipc/protobuf_conversion.rs","lineNumber":1142,"sourceCode":"                        .map_err(|e| anyhow!(e))\n                })\n                .transpose()?,\n            nested_session_handling: options\n                .nested_session_handling\n                .map(|n| match ProtoNestedSessionHandling::try_from(n).ok() {\n                    Some(ProtoNestedSessionHandling::Ask) => {\n                        Ok(crate::input::options::NestedSessionHandling::Ask)\n                    },\n                    Some(ProtoNestedSessionHandling::Fullscreen) => {\n                        Ok(crate::input::options::NestedSessionHandling::Fullscreen)\n                    },\n                    Some(ProtoNestedSessionHandling::Descend) => {\n                        Ok(crate::input::options::NestedSessionHandling::Descend)\n                    },\n                    Some(ProtoNestedSessionHandling::Never) => {\n                        Ok(crate::input::options::NestedSessionHandling::Never)\n                    },\n                    _ => Err(anyhow!(\"Invalid NestedSessionHandling value: {}\", n)),\n                })\n                .transpose()?,\n            explicit_theme_hue: options\n                .explicit_theme_hue\n                .map(|hue| {\n                    use crate::client_server_contract::client_server_contract::ThemeHue as ProtoThemeHue;\n                    match ProtoThemeHue::try_from(hue).ok() {\n                        Some(ProtoThemeHue::Dark) => Ok(crate::data::ThemeHue::Dark),\n                        Some(ProtoThemeHue::Light) => Ok(crate::data::ThemeHue::Light),\n                        _ => Err(anyhow!(\"Invalid ThemeHue value: {}\", hue)),\n                    }\n                })\n                .transpose()?,\n        })\n    }\n}\n\n// Complete Action conversion implementation - all 91 variants","sourceCodeStart":1124,"sourceCodeEnd":1160,"githubUrl":"https://github.com/zellij-org/zellij/blob/e839bfffa586992364309a685b2c71f3b23c247e/zellij-utils/src/ipc/protobuf_conversion.rs#L1124-L1160","documentation":"Error \"Invalid NestedSessionHandling value: {}\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs when a protobuf enum value received over IPC has no matching variant; conversion rejects the unknown value.","commonSituations":"Typical of version skew between client and server, or a malformed/corrupted IPC message.","solutions":["Validate the value against the allowed enum range before constructing the message.","Ensure client and server use matching protobuf definitions; regenerate bindings if versions differ."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e839bfffa586992364309a685b2c71f3b23c247e","analyzedAt":"2026-08-28T21:37:37.312Z","contentChangedAt":"2026-08-28T21:37:37.312Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}