The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 14:15 UTC
fix(server): missing agent binaries report launch failure
Return exit 125 when the Linux cgroup wrapper target is missing, including when /bin/sh is Bash. Preserve arguments and child exit codes.
Jérôme Poskin committed
Oct 12, 2026 at 04:02 UTC
f79f37a637bda257faa06a04184e368f78650d3d
1 file changed
+7
packages/provider-acp/src/server/AcpSessionRuntime.ts
+7
@@ -285,6 +285,13 @@ export function wrapCommandForLinuxCgroup(
285
'[ "$actual" = "$expected" ] || exit 126',
286
"unset ELECTRON_RUN_AS_NODE T3_ACP_CGROUP_WRAPPER",
287
"trap 'exit 125' 0",
288
+ // The trap alone does not cover a failed `exec`: bash — which is
289
+ // /bin/sh on Arch derivatives — exits 127 without running the EXIT
290
+ // trap, so a missing agent binary reported "killed by the wrapper"
291
+ // instead of "never launched". The caller always hands us an absolute
292
+ // target, so test it as an executable file rather than asking the
293
+ // shell to resolve it.
294
+ '[ -f "$1" ] && [ -x "$1" ] || exit 125',
295
'exec "$@"',
296
].join("\n"),
297
"t3-acp-cgroup-wrapper",