Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

fix(pane): keep an explicit typed:false on a magmux failure reply

Jack Rudenko64233a2f90e1
diff --git a/packages/cli/src/pane/magmux-client.ts b/packages/cli/src/pane/magmux-client.ts
index 0d9af6c7..bce181fe 100644
--- a/packages/cli/src/pane/magmux-client.ts
+++ b/packages/cli/src/pane/magmux-client.ts
@@ -48,8 +48,9 @@ function failureOf(m: Record<string, unknown>): MagmuxFailure {
error: String(m.error ?? ""),
};
if (typeof m.reason === "string" && m.reason) out.reason = m.reason;
- if (m.typed === true) out.typed = true;
- if (m.maybeSubmitted === true) out.maybeSubmitted = true;
+ // Present means present: an explicit false is information too.
+ if (typeof m.typed === "boolean") out.typed = m.typed;
+ if (typeof m.maybeSubmitted === "boolean") out.maybeSubmitted = m.maybeSubmitted;
return out;
}