{"record":{"id":"2864425cba9b518e","repo":"zellij-org/zellij","slug":"invalid-resizetype","errorCode":null,"errorMessage":"Invalid ResizeType: {}","messagePattern":"Invalid ResizeType: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zellij-utils/src/ipc/protobuf_conversion.rs","lineNumber":3576,"sourceCode":"}\n\nfn unblock_condition_to_proto_i32(condition: crate::data::UnblockCondition) -> i32 {\n    use crate::client_server_contract::client_server_contract::UnblockCondition as ProtoUnblockCondition;\n    match condition {\n        crate::data::UnblockCondition::OnExitSuccess => ProtoUnblockCondition::OnExitSuccess as i32,\n        crate::data::UnblockCondition::OnExitFailure => ProtoUnblockCondition::OnExitFailure as i32,\n        crate::data::UnblockCondition::OnAnyExit => ProtoUnblockCondition::OnAnyExit as i32,\n    }\n}\n\n// Reverse helper functions for Action conversion\n\nfn proto_i32_to_resize(resize: i32) -> Result<crate::data::Resize> {\n    use crate::client_server_contract::client_server_contract::ResizeType as ProtoResize;\n    let proto_resize = match resize {\n        x if x == ProtoResize::Increase as i32 => ProtoResize::Increase,\n        x if x == ProtoResize::Decrease as i32 => ProtoResize::Decrease,\n        _ => return Err(anyhow!(\"Invalid ResizeType: {}\", resize)),\n    };\n    match proto_resize {\n        ProtoResize::Increase => Ok(crate::data::Resize::Increase),\n        ProtoResize::Decrease => Ok(crate::data::Resize::Decrease),\n        ProtoResize::Unspecified => Err(anyhow!(\"Unspecified ResizeType\")),\n    }\n}\n\nfn proto_i32_to_direction(direction: i32) -> Result<crate::data::Direction> {\n    use crate::client_server_contract::client_server_contract::Direction as ProtoDirection;\n    let proto_direction = match direction {\n        x if x == ProtoDirection::Left as i32 => ProtoDirection::Left,\n        x if x == ProtoDirection::Right as i32 => ProtoDirection::Right,\n        x if x == ProtoDirection::Up as i32 => ProtoDirection::Up,\n        x if x == ProtoDirection::Down as i32 => ProtoDirection::Down,\n        _ => return Err(anyhow!(\"Invalid Direction: {}\", direction)),\n    };\n    match proto_direction {","sourceCodeStart":3558,"sourceCodeEnd":3594,"githubUrl":"https://github.com/zellij-org/zellij/blob/e839bfffa586992364309a685b2c71f3b23c247e/zellij-utils/src/ipc/protobuf_conversion.rs#L3558-L3594","documentation":"Error \"Invalid ResizeType: {}\" 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":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-23T08:17:48.524Z"}