Skip to content

feat(desktop): allow every read-only approval from Needs you at once - #4354

Merged
LHagfoss merged 1 commit into
mainfrom
feat/desktop-inbox-allow-read-only
Nov 25, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
feat/desktop-inbox-allow-read-only

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

Needs you could only answer approvals one by one, or all of one thread at once (Allow all). With several threads each waiting on a file read or a git status, that meant a click per row.

The Needs you header now offers "Allow N read-only" when two or more waiting approvals across all threads only read. It approves each once, and they fold into Decided as "Approved". It counts only what assessApproval rates safe: read-only tools and commands. Writes, destructive calls, unknown tools and questions are never included.

Changelog

Needs you can approve every waiting read-only call across threads in one click.

Testing

  • New test in state/inbox.test.ts: a read and a grep count; rm -rf, an unknown tool and a question do not.
  • bun run check: all pass except the known flaky stopTrace.store.test.ts › "a harness that ignores the Stop is forced". bunx vite build and check-comments.py pass.
  • Mock (dark): staged a file read, a grep, git status and rm -rf dist over two threads. The header read "Allow 3 read-only"; pressing it approved the three into Decided and left rm -rf dist waiting.

@github-actions github-actions Bot added the feature New feature or request label Nov 25, 2026
@LHagfoss
LHagfoss merged commit 3f337d8 into main Nov 25, 2026
10 checks passed
@LHagfoss
LHagfoss deleted the feat/desktop-inbox-allow-read-only branch November 25, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant