Skip to content

fix(ui): clarify execution permission picker states - #184777

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/execution-permission-picker
Oct 26, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/execution-permission-picker

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The execution-permission picker makes inherited defaults, restricted choices, and pending changes hard to distinguish. Approval keyboard hints can also lose contrast inside primary buttons.

User Impact

Permission choices have clearer hierarchy and keep the pending selection visible until saving finishes. Users can dismiss the menu while it saves, screen readers retain the resolved Default permission, and approval shortcuts inherit the button foreground.

Why This Change Was Made

Refines the existing picker and its state presentation while preserving the permission owner, Full Access restrictions, and keyboard selection.

Evidence

  • 34 focused picker, session-control, and failure-recovery tests passed, including accessible defaults, pending success/failure, dismissal, disabled choices, duplicate-write prevention, and stale-session handling.
  • Targeted stylesheet lint, formatting, i18n baseline, and diff checks passed.
  • Independent review found no actionable P0–P2 findings.

Risk and coverage

Current-head CI fails in the Details pull-request renderer test (UI tests), outside the changed permission-picker and approval-shortcut paths. Focused permission and recovery coverage passed; the separate Details failure remains unresolved.

Visual validation

Before and after use the same content, theme, viewport, and state.

permissions approvalkbd — comparison 1

permissions approvalkbd — comparison 2

permissions approvalkbd — comparison 3

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR clarifies permission choices, keeps pending selections visible and dismissible, and improves approval-shortcut contrast.

Example: Select Workspace while the permission update is pending.

  • Before: The menu closes immediately and its trigger becomes disabled.
  • After: Workspace remains visible with a spinner, other choices are blocked, and the menu can be dismissed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful presentation change with inspected visual comparisons, meaningful component coverage, and both previous findings resolved.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored presentation change is outside the ordinary proof gate; inspected screenshots show the changed visual states, while pending dismissal and settlement are supported by mounted-component tests rather than supplied browser interaction proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Inherited defaults, restricted choices, and pending permission changes are difficult to distinguish, and approval shortcuts can lose contrast.
Reason: The maintainer-authored PR supplies the owner decision for this presentation direction while preserving the existing permission policy.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored improvement remains useful, both prior findings are resolved, and no actionable introduced defect remains; exact-head CI is still running.

Priority: P2
Reviewed head: ccc396e6c08539643b7646b729bbdfbaa0c556ae

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Browser interaction proof of pending-save dismissal and red-on-base regression results are not supplied; these are nonblocking under the maintainer-authored proof exemption.
Agent review details

How this fits together

The Control UI picker presents agent defaults and session permissions, delegates writes to the existing session-control owner, and uses the shared Menu for interaction.

flowchart LR
  A[Agent defaults and session state] --> B[Session control owner]
  B --> C[Permission picker]
  C --> D[Shared Menu]
  C --> B
  B --> E[Gateway session patch]
  E --> A
Loading

Technical review

Best possible solution:

Retain this focused change using the existing permission and Menu owners, with resolved defaults accessible and pending choices visibly settled.

Do we have a high-confidence way to reproduce the issue?

Current-main source establishes immediate menu dismissal and a disabled pending trigger; the supplied comparisons independently show the presentation differences.

Is this the best way to solve the issue?

The change is appropriately scoped: it uses existing pending state and Menu operations, preserves permission checks and lazy construction, and adds distinct settlement and dismissal coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 974186dee302.

Provenance checked

  • Resolved default disclosure keeps the original intent (c9b3fa5: Disclose the inherited permission mode without pinning a session override; the corrected accessible label and visible default badge preserve that distinction.)
  • Pending interaction and menu dismissal changes intended behavior with a stated reason (58ea8e5: Move permission choices to the shared native Menu while preserving keyboard behavior and pending/admin restrictions; this PR explicitly changes dismissal timing while keeping choices blocked during saving.)
  • Lazy construction and retained content keeps the original intent (60c9d0f: Build hidden picker entries on first use and retain their mounted content across unrelated updates.)
  • Inherited Full Access presentation keeps the original intent (fix(ui): highlight inherited Full Access on initial load #134732: Highlight effective Full Access even when inherited rather than explicitly selected.)
  • Approval shortcut foreground keeps the original intent (5bf26f6: Keep approval decisions and keyboard hints together using existing button styles; increased selector specificity restores inherited foreground.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +89, Tests +66. Total +155 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 127 38 +89
Tests 3 74 8 +66
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 201 46 +155

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Clearer permission state and readable approval shortcuts provide a bounded Control UI improvement without changing execution policy.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-26T16:11:21.403Z sha a2c25ed :: needs changes before merge. :: [P2] Preserve resolved defaults in the menu's accessible names | [P2] Update the recovery suite for the enabled pending trigger

Reviewed October 26, 2026, 12:55 PM ET / 16:55 UTC (Revision 2).

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 26, 2026 20:20
@vyctorbrzezowski
vyctorbrzezowski merged commit 697e69e into main Oct 26, 2026
83 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/execution-permission-picker branch October 26, 2026 20:28
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant