test(cmux-next): add folder trust gallery coverage
Summary
Add gallery coverage for the folder trust line above the composer. The entry captures the ask, Trust and Don't trust decisions, Undo, failed save, remote-only messaging, and the already-decided states. Removing the allowlist row makes coverage enforce the entry.
Validation
bun run --cwd webviews typecheckbun test test/gallery-coverage.test.tsbun test test/gallery-env.test.ts test/pane-english.test.tsbun run gallery:buildbun run --cwd webviews fmt -- --checkgit diff --check
Changelog
- Added: Gallery states and decision interactions for folder trust prompts.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Adds gallery coverage for the folder trust ask above the composer, replacing the allowlist exemption for TrustAsk.tsx.
The fixture covers Trust and Don't trust decisions, Undo, failed save, remote-only messaging, and already-decided states.
[!NOTE]
Low Risk
Gallery and test-infra only; fixtures are not shipped UI and do not change runtime trust behavior.
Overview
Adds a gallery entry for the agent pane folder trust prompt (TrustAsk), so visual/regression coverage is enforced instead of allowlisted.
The new TrustAsk.gallery.tsx wires TrustAsk in a composer shell with variants for the initial ask, failed and remote states, and already decided trusted/untrusted outcomes. Play scripts exercise Trust, Don't trust, and Undo and assert the expected trust-line copy and buttons.
Removes TrustAsk from gallery-coverage.allowlist.json, so the coverage test requires this entry via covers: ["agent-session/acpmux/TrustAsk.tsx#TrustAsk"].
Reviewed by Cursor Bugbot for commit fb6999913fee89d61aae584b7134e60273849871. Bugbot is set up for automated code reviews on this repo. Configure here.