Skip to content

fix(bridge): allow idle permission mode changes#136

Open
Edwiv wants to merge 1 commit into
K9i-0:mainfrom
Edwiv:codex/idle-permission-mode-switch
Open

fix(bridge): allow idle permission mode changes#136
Edwiv wants to merge 1 commit into
K9i-0:mainfrom
Edwiv:codex/idle-permission-mode-switch

Conversation

@Edwiv

@Edwiv Edwiv commented Jun 15, 2026

Copy link
Copy Markdown

Summary

  • Let permission mode changes update bridge state even when the Claude SDK query iterator is idle.
  • Apply the selected mode to the next turn instead of throwing from an idle process.
  • Add SDK process coverage for idle permission mode changes.

Why

Users can change permission mode between turns. That should be recorded immediately and used by the next query, not rejected because no query is currently active.

Tests

  • npm ci --ignore-scripts
  • npm run test --workspace=packages/bridge -- src/sdk-process.test.ts
  • npx tsc --noEmit -p packages/bridge/tsconfig.json

@Edwiv Edwiv marked this pull request as ready for review June 15, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant