feat: add agent thread controls#2
Draft
nassimna wants to merge 1 commit into
Draft
Conversation
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Changed
thread_list,thread_create,thread_fork,thread_send, andthread_archiveMCP tools.thread_forkdefault to the last completed turn while excluding the agent's currently running turn.Why
Agents can currently operate only in the active conversation. Delegating an investigation or exploring an alternative requires interrupting the main task or manually creating and coordinating another thread.
These controls give the running agent one project-native way to inspect, create, fork, message, and retire sibling threads while T3 Code keeps the user in control of the resulting conversations.
Scope
This PR contains only agent-facing thread controls. It is a 14-file delta on top of the selected-message fork foundation in pingdotgg/t3code#4248. It does not add or change the per-message fork action or provider-specific fork adapters.
Verification
vp test runon the four affected MCP, orchestration, and Codex-instruction test files: 27 tests passed.thread_fork, inherit the previous completed turn, and automatically open the new thread as a side chat.UI Evidence
Before
After
Interaction
The 20-second recording keeps the real cursor visible and uses the single prompt
Open a new thread and say hello, showing the native thread-create and thread-send tool calls before opening the newHellothread and displaying itshellomessage.20-second real-cursor agent thread-control recording
Checklist