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
Env-var changes cannot rebuild a live provider bridge session (needs a runtime design call) #1720
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.
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.
Activity
ymichael commentedon Oct 8, 2026
Fixed by #3035 and #3299: env vars now go with each turn, and Claude, Pi and ACP sessions rebuild when the environment changes.