Skip to content

refactor(ui): input dialog action experiment (withdrawn) - #179920

Closed
steipete wants to merge 4 commits into
mainfrom
solid2/w-s2-input-dialog-action
Closed

steipete wants to merge 4 commits into
mainfrom
solid2/w-s2-input-dialog-action

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

This action-conversion experiment is withdrawn. The input dialog intentionally keeps an admitted write alive while the user navigates to another agent or route. Its plain modal and session owners already govern cancellation, duplicate submission, late results, and draft recovery. Holding that independent operation in a Solid action can also hold unrelated presentation work until the action settles. Adding a new navigation-retirement interface would make this small rendering cleanup more complicated than the existing correct owner.

The attempted head 20c3e2ab7489f77cb465358054f468998fc4e1e2 fails fresh full CI 39698787919, including the pending-input disabled-state assertion and keeps All rows, pagination, and updates after another agent's rename settles. An earlier local pass was insufficient and is not presented as a fix. The existing cross-agent E2E is the contract to retain. Other failures from that run are not being relabeled as inherited to land this experiment.

Keep the existing explicit submitting presentation as a named Solid 2 migration exception. No production or test change from this PR is being landed.

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

clawsweeper Bot commented Oct 21, 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 21, 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-22T00:26:02.894856Z 20c3e2a New commits
ℹ️ 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR moves input-dialog busy, error, and focus presentation to Solid actions while preserving synchronous submission admission.

Example: A user retries creating the group “Client work” after a rejected submission.

  • Before: The dialog manually resets busy/error state and schedules focus restoration in a microtask.
  • After: A Solid action presents the pending retry, hides the previous error, and restores editing focus after settlement.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, owner-aligned refactor with useful cancellation and retry coverage, but an affected browser-test failure prevents a clean validation verdict.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored presentation refactor is outside the ordinary contributor proof gate; the reported installed-runtime probe and CI exercise harness paths, while the native-dialog rejection test currently fails.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Retryable submission failures must preserve the draft and return editing focus.
Reason: The maintainer-authored direction matches the repository’s Solid migration guidance and reduces manual presentation state while retaining the existing user contract.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this maintainer-directed refactor preserves the existing submission owner, but an affected browser test needs to wait for action settlement.

Priority: P3
Reviewed head: 842184dcb16c0a548147426bd120da4237327a9c

Before merge

  • Wait for action settlement in the native-dialog browser test (P2) - With an AbortSignal, the new racePromiseWithAbortSignal call adds Promise.race/finally settlement steps before the action publishes its failure. The existing browser test resolves the operation, waits two microtasks, and then asserts immediately; exact-head checks-ui (2/3) fails at line 141 with an absent alert. Replace that fixed microtask sequence with waitForSolid around the actual alert, re-enabled input, retained draft, and restored focus assertions. This preserves the behavioral contract without requiring production code to retain incidental timing.
  • Complete next step - Compare the three remaining E2E failure signatures with main before landing; their attribution remains unresolved, and unrelated CI repair should stay outside this PR.

Findings

  • [P2] Wait for action settlement in the native-dialog browser test — ui/src/components/confirm-dialog.browser.test.ts:137-141

Tests

  • Missing end-to-end proof: No supplied shipped-entry-point trace demonstrates failure, retry, and abort recovery on this head; the available behavioral evidence is harness-based.
Agent review details

How this fits together

The shared Control UI input dialog accepts drafts and caller-owned submission callbacks, presents their outcomes, and returns a value or cancellation through the existing modal host.

flowchart TD
  A[Session and device callers] --> B[Input dialog host]
  B --> C[Synchronous submission admission]
  C --> D[Caller operation]
  D --> E[Abort-aware promise observation]
  E --> F[Solid presentation action]
  F --> G[Busy error and focus feedback]
  F --> B
Loading

Technical review

Best possible solution:

Keep the existing admission and modal owners, retain the focused action refactor, and update the native-dialog test to observe committed rejection recovery.

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

This is a refactor rather than a reported product bug; exact-head CI independently records the affected browser-test failure, and source explains its premature assertion.

Is this the best way to solve the issue?

The refactor follows the existing Solid recipe and removes manual presentation bookkeeping without creating another admission owner; the affected browser test must follow settlement rather than count microtasks.

Full review comments:

  • [P2] Wait for action settlement in the native-dialog browser test — ui/src/components/confirm-dialog.browser.test.ts:137-141
    With an AbortSignal, the new racePromiseWithAbortSignal call adds Promise.race/finally settlement steps before the action publishes its failure. The existing browser test resolves the operation, waits two microtasks, and then asserts immediately; exact-head checks-ui (2/3) fails at line 141 with an absent alert. Replace that fixed microtask sequence with waitForSolid around the actual alert, re-enabled input, retained draft, and restored focus assertions. This preserves the behavioral contract without requiring production code to retain incidental timing.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/components/input-dialog.test.ts --maxWorkers=1
  • pnpm test ui/src/components/confirm-dialog.browser.test.ts --maxWorkers=1
  • git diff --check

What I checked:

PR surface

Source -5, Tests +46. Total +41 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 37 42 -5
Tests 1 47 1 +46
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 84 43 +41

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a behavior-preserving UI maintenance refactor with a focused consumer-test repair, without an established urgent user-facing regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 21, 2026, 5:51 PM ET / 21:51 UTC.

@steipete steipete changed the title refactor(ui): present input dialog submissions with Solid actions refactor(ui): input dialog action experiment (withdrawn) Oct 22, 2026
@steipete steipete closed this Oct 22, 2026
@RomneyDa
RomneyDa deleted the solid2/w-s2-input-dialog-action branch November 30, 2026 20:45
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant