Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: MCP thread launch can start threads in Plan mode when "Plan mode (legacy)" is off #27819

Opentnfssc(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • 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

  1. Settings → Labs → turn Plan mode (legacy) off (the default).
  2. In a Claude thread, ask the agent to spin off threads for some tasks.
  3. The agent calls t3_thread_launch with interactionMode: "plan". Nothing asked it to; the parameter is in the tool schema.
  4. Open the new thread.

Expected behavior

With plan mode off, agent-created threads should run in build/default mode. The server should either ignore interactionMode: "plan" from MCP or reject it, and the parameter shouldn't be offered to agents while the setting is off.

Actual behavior

The thread is stored with interaction_mode = 'plan' (payload: createdBy: agent, creationSource: mcp). The Claude session runs in plan permission mode from its first turn, and the subagents it spawns are stored in plan mode too.

The UI toggle is hidden, so there is no visible way to see or leave the mode. If the user denies ExitPlanMode in Claude settings, the session can't leave plan mode at all; it tells the user to turn plan mode off, but the setting already is off.

Impact

Minor bug or occasional failure

Version or commit

0.1.6-nightly.20261029.3892

Environment

Linux (CachyOS), Claude Agent provider (claude-opus-5-5), runtime full-access

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Send any message from the UI: the client forces default when the setting is off, so the next turn leaves plan mode. To stop agents from doing this, add a Claude PreToolUse hook on mcp__t3-code__.* that rejects tool input containing interactionMode: "plan".

  1. tnfssc(GitHub profile, opens in a new tab) added labelsneeds-triage

Sign in to join this conversation.