Skip to content

Switching runtime mode from Auto to Full Access during a running OpenCode run is not applied #38677

Closed as duplicate

Description

@svenrabe

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

  1. Create a thread with provider opencode (model openrouter/openai/gpt-6.2-sol, variant max) and runtime mode Auto.
  2. Send a prompt that makes the agent run many shell commands (e.g. a read-only codebase audit).
  3. While the run is active, switch the thread to Full Access.
  4. 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.

Environment

  • T3 Code on macOS (Darwin 27.2.0)
  • Provider: OpenCode via OpenRouter
  • Date: Wed 2026-11-18

Activity

  1. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions