Files
kilocode/packages/opencode/test
Bruno Agatao c56aad9d6c refactor(cli): shrink the denial-provenance shared-file diff in permission/index.ts
Applies the kilocode-merge-minimizer skill to the prior fix. The
hard-veto and headless-subagent DeniedError sites are reverted to
their exact pre-fix shape -- neither carries a specific rule anyway,
so wrapping their ruleset in a { rule, matches } object added shared
upstream diff for no benefit. Only the main deny path (which already
had the deciding rule in scope) still changes, and now passes the
bare rule instead of a wrapper object, shrinking that hunk from a
multi-line block to a single-line swap.

PermissionProvenance.classifyDenial now duck-types ruleset as a
possible bare Permission.Rule (checking action === "deny" and a
string pattern) instead of expecting a { rule } wrapper, so it still
reads the main deny path's rule directly while falling back to a
synthesized deny rule for the other paths, exactly as before.

Net shared-file diff across permission/index.ts, session/tools.ts, and
the TUI's routes/session/index.tsx for this whole feature is now 9
insertions / 12 deletions, down from ~50+ lines.
2026-07-31 16:45:29 +02:00
..
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 18:00:35 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 19:15:48 +02:00
2026-07-13 18:00:35 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 18:00:35 +02:00
…
…
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 15:00:34 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 19:15:48 +02:00
…
2026-07-22 13:31:23 +02:00