Skip to content

fix: restore permission selection with model options - #36

Merged
just-cameron merged 1 commit into
mainfrom
cameron/restore-acp-permission-selector
Jul 29, 2026
Merged

just-cameron merged 1 commit into
mainfrom
cameron/restore-acp-permission-selector

Conversation

@just-cameron

Copy link
Copy Markdown
Contributor

Summary

  • publish adapter permission modes as an ACP configOptions selector with category: "mode"
  • keep the legacy modes / session/set_mode path for older ACP clients
  • apply permission changes from session/set_config_option to the adapter enforcement state

Why

Zed 1.13 treats legacy modes and modern configOptions as mutually exclusive. Once letta-acp added a model config option, Zed retained the model selector and discarded the permission modes, removing the permission control from the composer.

Validation

  • bun run check — 61 tests, typecheck, and build
  • bun run test:acpx — real ACP stdio client boundary
  • integration test proves selecting unrestricted through session/set_config_option auto-allows a Bash approval without prompting
  • legacy mode response remains covered

👾 Generated with Letta Code

Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974)

Publish permissions as a category=mode session config option so ACP clients can render it alongside the model selector while retaining legacy session mode support.

Co-authored-by: Cameron <cameron@pfiffer.org>

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
@just-cameron
just-cameron merged commit 8fa84ec into main Jul 29, 2026
1 check passed
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