Skip to content

Expose sticky permission mode and service tier updates through the public SDK #3401

Closed as not planned

Description

@erwinkn

BB 0.42.1 / public Plugin SDK 0.4.47 exposes model, reasoningLevel, permissionMode and serviceTier on thread creation and message dispatch. threads.update supports sticky model and reasoning overrides, but has no permissionMode or serviceTier fields.

A remote coding orchestrator needs to change a thread's next-turn execution settings without sending a dummy prompt, restarting active work, or maintaining a plugin-local shadow preference that the product cannot see.

Please expose permissionMode and serviceTier through the public thread-update contract (or a dedicated execution-options update method), with documented inheritance/reset semantics. Updates should apply to the next and later turns, leave active execution unchanged, emit the normal thread update, and be reflected by threads.defaultExecutionOptions and the UI. Preserve host/parent permission ceilings and validate provider capabilities; this must not provide an API for changing the owner-only machine permission ceiling.

Reproduction: compare createThreadRequestSchema / sendMessageRequestSchema with updateThreadRequestSchema in SDK 0.4.47's bundled declarations. The update schema contains model, reasoningLevel, parentThreadId, sectionId, title and visibility only. Our MCP adapter therefore rejects standalone permission/tier updates and exposes those choices only on create/send.

Validation requested: idle and active threads; next-turn persistence; provider lacking fast service tier; parent and host ceilings; null/reset behavior; no queued or dispatched message as a side effect.

Activity

  1. added
    plugins
    providers
    on Sep 10, 2026
  2. bb-slop-cop commented on Sep 10, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied Type Feature, Priority Medium, Effort High, and labels plugins, providers. No existing classifications needed preservation; all writes were verified.

    This adds a public SDK capability, with a workaround through existing execution entry points. Public contract and permission semantics make the effort High. Final Type is Feature, so reproduction and fix steps were skipped; no PR was opened.

  3. hxy91819 commented on Sep 10, 2026

    @hxy91819

    Update: the existing Fast-toggle bug is now tracked separately in #3403. This SDK feature request remains closed; the report below is retained as investigation history, not a request to reopen it.

    Reproduction and environment

    • Source baseline: 40ed14cc7765b7e2d4c37b660eadbf982e5bac5b; installed BB reports 0.42.1.
    • Linux arm64, Node 22.19.0, Codex CLI 0.154.0.
    • Verification used a disposable source web app, a separate database/daemon, and synthetic Codex threads.
    1. Start a Codex thread with Fast mode enabled and let its first turn finish.
    2. Open the provider/model picker and turn Fast mode off.
    3. Do not send another message.
    4. Open another thread, then return to the first thread.

    Expected: Fast mode remains off, and subsequent turns use the default tier.

    Reported behavior: Fast mode returns to enabled. The regression test exercises the actual main-composer toggle and fails on the baseline because no persistence request is sent:

    AssertionError: expected "vi.fn()" to be called with arguments: [ { threadId: 'thr_1', …(1) } ]
    

    Baseline evidence: the main composer only updates its local selection. A second defect exists in the Codex tier conversion: default becomes undefined, omitting the explicit reset on the provider wire.

    Fork implementation and verification

    Fix commit: 0e41dc3a3

    • Persist the main composer toggle through threads.update({ threadId, serviceTier }), expose bb thread update <id> --service-tier default|fast, and resolve the saved tier for later turns.
    • Notify execution-option subscribers and update the local cache. null clears the stored override; unsupported providers reject fast.
    • Map BB's default tier to explicit null for Codex requests.
    • Include the database migration and CLI/SDK usage documentation. No server/daemon wire fields changed.

    On the fixed source app, actual browser clicks verified disable → navigate away/back without sending → reload → re-enable. Disable persisted in both the UI and the default-execution-options endpoint. A CLI update to default, followed by a real Codex turn, completed successfully. Both captured thread/resume and turn/start requests contained:

    {"serviceTier":null}

    Relevant app, server, CLI, contract and Codex bridge tests passed, as did app/server/CLI/provider typechecks. The bridge regression test verifies the explicit null after starting a fast session. Changed-file and commit-range secret scans were clean. Raw screenshots and recordings remain local because they contain machine paths and model-catalog details.

    This is independent of active-steer behavior in #1860: the reported failure happens without dispatching any message. I have not opened an upstream PR, in accordance with the contributor-approval policy.

    AGENT GENERATED

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

    pluginsproviders

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions