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
Switching runtime mode from Auto to Full Access during a running OpenCode run is not applied #38677
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 (model openrouter/openai/gpt-6.2-sol, variant max) 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 via t3_thread_configure and t3_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. a diff -u between two files, stay in waiting until 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.
Activity
juliusmarminge commentedon Nov 19, 2026
This is the same problem as #29632, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.