🤖 bench: enable PTC + hard-restart by default, fix mux-run.sh fatal-on-exit #2239
+61
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Enable Programmatic Tool Calling (PTC) and exec-subagent-hard-restart experiments by default for all users. Fix token extraction loss in Terminal-Bench runs when agent exits non-zero.
Background
The Terminal-Bench baseline (Opus 4.6 / xhigh) scores 57.3% (51/89 pass). Analysis of the failure modes shows:
mux-run.shcallsfatal()before the token-extraction python block runsImplementation
1. PTC enabled by default (
experiments.ts)programmatic-tool-calling:enabledByDefault: truecode_executiontool is now available by default in both the desktop app and CLI, letting the model batch 2+ tool calls in a single turn2. Exec sub-agent hard restart enabled by default (
experiments.ts)exec-subagent-hard-restart:enabledByDefault: true3. CLI respects enabledByDefault (
run.ts)buildExperimentsObject()now auto-enables experiments withenabledByDefault: truewhen no explicit--experimentflags are passed--experimentflags, those override defaults entirely (no mixing)4. Fix mux-run.sh fatal-on-exit (
mux-run.sh)fatal "mux agent session failed"with a warning + continueValidation
make typecheck— passmake lint— passmake fmt-check— passmake test— 3446 pass, 0 failGenerated with
mux• Model:anthropic:claude-opus-4-6• Thinking:xhigh• Cost:$92.04