Skip to content

[codex] Make agent permission mode session-scoped#374

Merged
ErlichLiu merged 1 commit intomainfrom
codex/session-permission-mode-only
May 5, 2026
Merged

[codex] Make agent permission mode session-scoped#374
ErlichLiu merged 1 commit intomainfrom
codex/session-permission-mode-only

Conversation

@ErlichLiu
Copy link
Copy Markdown
Owner

Summary

  • Remove workspace-level permission mode persistence and its renderer/main IPC surface.
  • Keep permission mode state and persistence scoped to each Agent session.
  • Default new Agent sessions to bypassPermissions (the UI's 完全自动 mode).
  • Keep workspace config.json focused on workspace-level attached directories.
  • Bump @proma/electron to 0.9.14 and @proma/shared to 0.1.19.

Why

Permission mode had already moved toward per-session semantics, but the selector still wrote the workspace-level config.json. That write could trigger workspace file watcher refreshes and also left stale cross-session behavior in place.

Validation

  • bun run typecheck

@ErlichLiu ErlichLiu marked this pull request as ready for review May 5, 2026 06:24
@ErlichLiu ErlichLiu merged commit 1c0a4cb into main May 5, 2026
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