Skip to content

Env-var changes cannot rebuild a live provider bridge session (needs a runtime design call) #1720

Closed

Description

@ymichael

Changing a thread's environment variables has no effect on a live bridge session. The legacy adapters classified an env-var change as a "session" change (rebuild the session); the canonical bridge path has no channel for it at all.

Evidence (from #1640 QA, recorded in the plan):

  • Bridge adapters return classifyExecutionSettingsChange: () => "live" (packages/agent-runtime/src/bridge-protocol-adapter.ts, ~line 177 at time of finding), so the runtime never resumes/rebuilds for an options change.
  • But the runtime never carries envVars on turn options, so the bridge cannot observe an env-var change either — the change is silently invisible until the session naturally rebuilds.
  • Plan record (plans/agent-provider-plugin-surface.md): "bridge adapters classify every settings change as 'live', but the runtime never carries envVars on turn options, so an env-var change cannot rebuild a live bridge session (legacy classified it as a session change)."

Needed: a runtime-side design decision — either carry envVars on turn options (and classify a diff as a session change), or add an explicit reconfigure command. Flagged as a good candidate for the phase-6 sweep.

Surfaced during #1640 final validation; pre-existing design gap on the bridge path.

AGENT GENERATED: by Claude Fable 5

Activity

  1. self-assigned this
    on Aug 17, 2026
  2. added theissue type on Aug 18, 2026
  3. added
    providers
    on Aug 18, 2026
  4. ymichael commented on Oct 8, 2026

    @ymichael
    CollaboratorAuthor

    Fixed by #3035 and #3299: env vars now go with each turn, and Claude, Pi and ACP sessions rebuild when the environment changes.

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

Metadata

Metadata

Assignees

Labels

providers

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions