Skip to content

Trust answers before the prompt draws; Subagents answers permissions - #52

Merged
Codestz merged 2 commits into
mainfrom
feat/0.12-quiet-permissions
Oct 17, 2026
Merged

Codestz merged 2 commits into
mainfrom
feat/0.12-quiet-permissions

Conversation

@Codestz

@Codestz Codestz commented Oct 17, 2026

Copy link
Copy Markdown
Owner

For 0.11.1.

Trust

  • OpenCode 2: the agent half answers in permission.evaluate before a request exists, so OpenCode's card no longer flickers when prompts come in bursts. The hook and tool.execute.before were read from the 2.0.18 binary. The interface writes a rules snapshot (rules.json, permission fields only) for the agent half to use. If the agent half can't decide, the interface answers as before. OpenCode 1 is unchanged.
  • Folders outside the project (external_directory) are counted by folder. All temp folders count as one family, $TMPDIR/. They are suggested, never learned. Home, ~/.ssh, /etc and the like are never suggested.
  • A family is the same in every folder: the command alone, without its (in x) place. Widenings recorded with a place before now fold into the plain family.
  • Commands run from another folder read command first, with the folder after.
  • /trust speed: repaints went from about 470 ms to 3–4 ms on a 13k-command ledger. Pure readers are memoized, and the model is cached by ledger revision.

Subagents

  • Permission card in the pane: y allows once, Y always, n rejects. Works on OpenCode 1 and 2.
  • The message box is always visible; tab or a click starts typing. m is removed.
  • A drag in the pane passes through as a text selection.

Checks

bun run check: 2,554 pass, 0 fail.

🤖 Generated with Claude Code

Codestz and others added 2 commits October 17, 2026 13:48
… /trust keeps up

- Trust (OpenCode 2): the agent half answers in permission.evaluate, before a request exists, so
  OpenCode's card no longer flickers in bursts. The interface publishes its rules for it.
- Subagents: a permission card in the pane (y / Y / n), an always-visible message box (tab or
  click), and a drag passes through as a selection.
- Trust: folders outside the project are counted and suggested ($TMPDIR as one family), never
  learned; a family is the same in every folder; placed commands read command-first.
- Trust: /trust repaints in 3-4ms instead of ~470ms on a 13k-command ledger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Air inside the permission card, its keys in the card's warning tone rather than the accent, the
message box two rows under a card, a gap before the hints, and the box no longer repeats the
footer's [tab] Message. Seen on the first real run: three panels edge to edge read as one wall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Codestz
Codestz merged commit 8704e7f into main Oct 17, 2026
3 of 4 checks 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