Repository navigation
refactor(ui): publish input dialog presentation state directly - #174617
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR publishes input-dialog busy and error presentation through one Solid signal instead of a revision counter and memo. Example: Creating the group “Client work” fails and the user retries.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR is a focused simplification with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI callers open a promise-backed input dialog; its view validates text, invokes the caller’s submission callback, displays recoverable failures, and returns the accepted value or cancellation. flowchart LR
A[Control UI caller] --> B[Input dialog service]
B --> C[Promise modal host]
C --> D[Input dialog view]
D --> E[Submission callback]
E --> F[Presentation signal]
F --> D
Technical reviewBest possible solution: Retain the synchronous submission guard and use the direct signal solely for dialog presentation. Do we have a high-confidence way to reproduce the issue? No user-visible defect is claimed; source inspection confirms a behavior-preserving state-publication refactor. Is this the best way to solve the issue? The change removes unnecessary rendering machinery without moving synchronous admission or modal settlement into reactive state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 41e5d5ffe71b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -4, Tests +1. Total -3 across 2 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 Reviewed October 16, 2026, 4:21 PM ET / 20:21 UTC. |
|
Merged via squash.
|
What Problem This Solves
The input dialog keeps plain failure state, a revision counter, and a memo solely to refresh its busy/error presentation after a submission.
User Impact
Input, validation, retry, cancellation, and focus behavior stay the same. Same-tick duplicate submissions still share the existing synchronous admission flag.
Why This Change Was Made
Publish the dialog's visible busy/error state directly through one Solid signal, removing the revision counter and copied-state memo. The plain
submittingflag remains the synchronous authority for submission and dismissal; the options and settlement callback remain deliberate lifetime snapshots.Evidence
Touched production metrics: 130 → 126 LOC, copied-state memos 1 → 0. Controller references, effects, render effects, native listeners, DOM queries, class strings,
flush, and owner capture all remain 0; intentional lifetimeuntracksnapshots remain 2. Test LOC: 193 → 194. Full UI proof requested withci:full.Knip baseline:
4c0d83fe097c135aa57214868ec0534edccb13aa. Both runs report the same existing exports/types inextensions/github/src/session-reader.ts,src/agents/github-read-identity.ts,src/channels/streaming.ts,src/commands/channel-setup/discovery.ts,src/commands/doctor-auth-migration-receipts.ts,src/infra/client-credential-store.ts,packages/gateway-protocol/src/doctor-memory.ts, andsrc/config/sessions/types.ts. No ignores added.