Repository navigation
fix(ui): clarify execution permission picker states - #184777
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR clarifies permission choices, keeps pending selections visible and dismissible, and improves approval-shortcut contrast. Example: Select Workspace while the permission update is pending.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +89, Tests +66. Total +155 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 26, 2026, 12:55 PM ET / 16:55 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
* fix(ui): clarify execution permission picker states * fix(ui): preserve accessible permission defaults
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
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.