Skip to content

refactor(ui): publish input dialog presentation state directly - #174617

Merged
steipete merged 1 commit into
mainfrom
solid2/w-idiom-components-input-presentation
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-idiom-components-input-presentation

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 submitting flag remains the synchronous authority for submission and dismissal; the options and settlement callback remain deliberate lifetime snapshots.

Evidence

Proof Result
Input dialog tests, one file/worker/run 8/8 pass; duplicate submission, pending dismissal, synchronous/asynchronous failure, retry, retained input, restored focus
UI typecheck Pass
Scoped lint / formatting / diff check Pass
Production Knip Fails identically on exact base and head; 6 unused-export groups and 3 unused-type groups, all outside the touched UI files
Independent P0–P2 review No actionable findings
Visual / startup No markup, styles, imports across lazy boundaries, or startup changes; no local build/screenshots

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 lifetime untrack snapshots remain 2. Test LOC: 193 → 194. Full UI proof requested with ci:full.

Knip baseline: 4c0d83fe097c135aa57214868ec0534edccb13aa. Both runs report the same existing exports/types in extensions/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, and src/config/sessions/types.ts. No ignores added.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T20:09:45.353702Z f694ae6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The dialog retains the name, displays the error, and restores editing focus through revision-driven rendering.
  • After: The same visible behavior uses direct signal publication.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified simplification supported by dialog tests and successful exact-head UI checks.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored exemption applies: supplied evidence covers the real dialog implementation in a JSDOM harness, while the body explicitly reports no local browser capture or build.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No new user-facing problem is claimed; this reduces maintenance complexity in the existing input dialog.
Reason: The maintainer-authored direction removes redundant state-publication machinery while preserving the owning contracts.

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
Reviewed head: f694ae6882705c4da20911c6fd497969f60b3e45

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control 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
Loading

Technical review

Best 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

  • Input dialog presentation state keeps the original intent (ecdc40d: The shared-control Solid migration preserved service APIs, focus, and plain domain owners using a reactive presentation adapter.)
  • Asynchronous failure test variant changes intended behavior with a stated reason (8155863: The test-reduction campaign removed the asynchronous variant as redundant; the current refactor changes publication scheduling and adds an observable focus assertion.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -4, Tests +1. Total -3 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 8 12 -4
Tests 1 2 1 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 10 13 -3

Labels

Label changes:

  • add P3: This is a small internal UI cleanup preserving existing user behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a small internal UI cleanup preserving existing user behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed October 16, 2026, 4:21 PM ET / 20:21 UTC.

@steipete
steipete merged commit 8ebabfb into main Oct 16, 2026
88 of 89 checks passed
@steipete
steipete deleted the solid2/w-idiom-components-input-presentation branch October 16, 2026 20:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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