🤖 feat: PTC subagent support and compatibility fixes #1351
Merged
+171
−70
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
Enables PTC (Programmatic Tool Calling) to work properly with subagents and fixes several compatibility issues.
Changes
Core Fixes
mux.prefix: Nested tool calls incode_executionnow emit bare tool names (bash,file_read) instead ofmux.bash,mux.file_readagent_reportfrom sandbox: Must be called as top-level tool fortaskServiceto read args from historytimeout_secstocode_execution: Default 5 minutes, max 1 hour - needed for subagents that can take 5-15+ minutesPTC Experiments Inheritance
tasktool inherit parent's PTC experimentstaskExperimentsto workspace config for restart-safe persistenceUI Updates
task,task_await,task_list,task_terminate) toNestedToolRenderernormalizeToolName()functionTesting
Future
Unify where we convert tool names into the pretty UI components. Right now we have to update the list in two places when we add a new tool,
NestedToolRendererandtoolRendererGenerated with
mux• Model:anthropic:claude-opus-4-5• Thinking:high