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]: Provider-native Codex subagent keeps running and editing files after parent thread rollback #46954
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
Start a Codex thread (full-access) in a local workspace.
Send a prompt that spawns a provider-native Codex subagent (subAgentActivity) running asynchronously in codex app-server.
Before the subagent finishes, interrupt and roll back the parent thread (e.g., to switch models).
Observe the subagent thread (thread:subagent:*) and the workspace filesystem.
Expected behavior
Rolling back or unsubscribing a parent thread should interrupt and clean up all descendant provider-native subagent threads (turn/interrupt + thread/unsubscribe) so no post-rollback commands or file edits run.
Actively running provider-native subagents (thread/status/changed → active, turn/started) should be projected as active with a working stop/interrupt control.
Actual behavior
T3 Code sends thread/revert (and later thread/unsubscribe) only for the parent Codex thread ID—never sending turn/interrupt, thread/revert, or thread/unsubscribe for the spawned child thread ID—so the native subagent keeps executing commands and writing workspace files post-rollback.
While the orphaned subagent is actively emitting command_execution, reasoning, and file_change events, T3 Code projects it as status: "idle", activeRunId: null, latestRunId: null, runCount: 0, leaving no UI or MCP control to stop it.
T3 Code Beta (com.t3tools.t3code), macOS 27.2.1 (26B131, arm64), codex-cli 0.172.0
Logs or stack traces
# Verified deterministically on codex app-server 0.172.0 (-c thread_unload_delay_secs=0):# Parent-only turn/interrupt -> thread/revert (thread/reverted) -> thread/unsubscribe (thread/closed)# Result: child thread emitted 17 more notifications and wrote a file to disk ~14.4s after parent# thread/reverted (~14.3s after thread/closed). codex app-server does not cascade revert/unsubscribe# from parent to child threads.
Workaround
Manually kill -9 the codex app-server (and child codex-code-mode-host) OS process.
Activity