Skip to content

feat(native): a chat permission waits over the message box - #1277

Merged
omartelo merged 1 commit into
mainfrom
feat/chat-permission-box
Dec 4, 2026
Merged

omartelo merged 1 commit into
mainfrom
feat/chat-permission-box

Conversation

@omartelo

@omartelo omartelo commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

What changes

A permission in the chat now waits over the message box, where a question does, instead of in the conversation, where it scrolled away.

  • Its head says who asks for what: "Claude Code asks to run a command", "to edit a file", "to use WebFetch".
  • What is being approved shows whole: every line of the command (it was cut to the first), and each file of a patch with its diff. A long one scrolls inside the box, so the answers stay in view.
  • Once answered, an allowed call is told by its own line, and a denied one by a "Denied" line in its place.
  • A permission that a stop dismissed, or the provider withdrew, no longer counts as waiting. It used to keep its box and hold the turn open.
  • Several at once are answered in the order they came, so a new one never lands under the pointer.

The answers, their order and their keys are the same, and Enter still answers nothing.

Providers

The box is one path for the three chat protocols (Claude Code, Codex, ACP), and the tests run over the three shapes. Codex asks about all the files of a patch at once, so each gets its own line and diff; its request to reach past the sandbox reads "asks for more access". Crush has no chat.

A permission carries its call's name and target, not its id, so the window matches the two by those. docs/ceilings.md has the limit.

New copy

  • "{provider} asks to run a command / edit a file / use {tool}", "{provider} asks for more access": replaces the bare tool name, which did not say who asks or for what.
  • "Denied": the only trace of a call that never ran. The old "Bash gopls version · Allow" line is gone.

Test plan

  • Local gate: backend and native/
  • New tests: what the conversation holds while waiting, allowed, denied and dismissed, over the three protocol shapes; the order of several; whole commands and multi-file patches; the answers in view under 300 lines
  • Three existing tests changed because the contract did: the permission has no row in the conversation (chat_store_test.go, chat_turn_fold_test.go), and the live line's exit is measured against the box (chat_motion_test.go)
  • Headless shots of each state

It stood in the conversation, where it scrolled away, with the tool's name
for a title, the file's name twice and a command cut to its first line. It
now stands where a question does, says what the agent asks to do and shows
all of what is being approved. An allowed call is told by its own line and a
denied one by a Denied line in its place.

A permission a stop dismissed or the provider withdrew no longer waits
forever, and several at once are answered in the order they came.
@omartelo
omartelo merged commit ebc287f into main Dec 4, 2026
17 of 20 checks passed
@omartelo
omartelo deleted the feat/chat-permission-box branch December 4, 2026 18:20
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