You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Agents can't move a thread out of its workspace before deleting it, so the thread becomes unusable #36151
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
Related to #19124, which covers recovering a thread after its folder is gone. This report is about the step before: an agent that knows it is about to delete its own workspace has no tool to move the thread out of it first.
Open a thread whose workspace is a folder the agent manages itself (in my case a git worktree created by the project's own tooling, not by T3).
Ask the agent to finish the task. The project's workflow says to: merge the branch, move the session back to the main checkout, then delete the worktree.
The agent looks for a way to rebind the thread:
t3_thread_update only renames; its description says workspace and branch can't be changed there.
t3_worktree_handoff only moves the thread into a new worktree on a new branch, and fails if the thread already has a worktree. It can't move a thread back to the project root or into an existing folder.
create_threads starts a separate thread in the project root; it doesn't move this one.
With no option, the agent runs the cleanup from inside the thread, which deletes the thread's workspace folder.
Send another message in the thread.
Expected behavior
Some way for an agent to move its current thread to an existing directory, at least the project root / main checkout, before deleting its workspace. For example a t3_thread_update action, or letting t3_worktree_handoff target the project root or an existing path.
Failing that, tool descriptions could warn that deleting the thread's own workspace leaves the thread unusable, so the agent stops and asks the user instead.
Actual behavior
Every later turn fails before the provider starts:
Provider session failed to open
This thread's workspace folder no longer exists or is not a directory: <path>. Restore the folder at this path before retrying.
The thread history is still there, but the thread can't continue unless the user recreates the folder at the exact old path.
Impact
Major degradation or frequent failure
Version or commit
Desktop app, 0.1.10-nightly.20261113.4630 (0.1.9 beta also installed)
Environment
macOS 27.2, Codex provider
Workaround
Recreate an empty folder at the old path (enough for chat only), or start a new thread in the main checkout and carry the context over by hand. In practice the agent should stop before cleanup and ask the user to continue in a new thread.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
Activity
juliusmarminge commentedon Nov 13, 2026
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.