t3code
t3code copied to clipboard
Switching runtime mode from Auto to Full Access during a running OpenCode run is not applied
Description
I started a thread with the OpenCode provider in Auto runtime mode. While the run was active, I switched the thread to Full Access in the UI. Shell commands still created approval requests, and some of them waited for my manual approval.
Steps to reproduce
- Create a thread with provider
opencode(modelopenrouter/openai/gpt-6.2-sol, variantmax) and runtime mode Auto. - Send a prompt that makes the agent run many shell commands (e.g. a read-only codebase audit).
- While the run is active, switch the thread to Full Access.
- Watch the next shell commands.
Expected After the switch, shell commands run without approval requests.
Actual
- The stored thread configuration still shows
runtimeMode: "auto"after the switch (checked twice viat3_thread_configureandt3_thread_read, several minutes apart). - Every shell command still creates an
approval_request. Most are resolved automatically within ~50 ms (Auto mode behaviour). Some, e.g. adiff -ubetween two files, stay inwaitinguntil I approve them manually.
Open question I have not yet tested whether the switch is also lost when no run is active (switch before the first prompt). So it is unclear whether:
- the mode change is not persisted at all, or
- it is persisted but discarded or not passed to an already running OpenCode session.
Environment
- T3 Code on macOS (Darwin 27.2.0)
- Provider: OpenCode via OpenRouter
- Date: Wed 2026-11-18