Skip to content

refactor: derive session placement catalog state - #172277

Merged
steipete merged 2 commits into
mainfrom
solid2/w-polish-shell-placement
Oct 14, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-polish-shell-placement

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The session placement dialog still manually coordinates its catalog request's loading, error, and result signals.

User Impact

No user-visible change. Dispatch, Move, and Restart preserve their target choices, machine and OS overrides, disabled targets, cancellation, and modal focus.

Why This Change Was Made

Use one owned Solid async memo and derive the catalog and error from its result. Its initial loading value keeps the existing modal controls mounted while the request is pending. Disposing the dialog retires the memo's result; synchronous dialog admission and the catalog's domain owner stay in place. Error translation remains a snapshot taken when the request rejects.

Production LOC: 275 → 273 (−2). The focused error/focus case adds 34 test lines.

Evidence

Proof Result
Codemod dry run Zero Lit templates; no manual conversion diagnostics
Placement dialog tests, one worker 14/14 passed in one invocation; 6.303 seconds of cases, 52.13 seconds reported by Vitest, 129.66 seconds total wall time. The rejection case identified a Solid late-read diagnostic; the final candidate explicitly snapshots the rejection-time translation with untrack. No local rerun of the passing file.
UI typecheck Passed on integrated head ec2d3eb56ee4fd2ed429f809c6fb357035e0f47e after frozen installation aligned dependencies with main.
Scoped lint Passed
Formatting and whitespace Passed on the final candidate
Independent review Final corrected candidate completed scoped-clean through P2, including source verification
Production Knip Both integrated head and untouched exact merge base 0569807503223d3740635394f2e5fcab682f0e61 exited 1 with byte-identical diagnostics: seven unused exports and one unused exported type outside these two files. The eight findings are assertSessionEntryCreationCurrent, createSessionWorkerOperationContext, WorkerPreparationArtifactsSchema, postgresSchemaFingerprint, readPairedDevicePairingRecordsFromDatabase, readGitMetadataFile, SessionSplitDiff, and PostgresSchemaDefinition. No head-only findings or new ignores.
CI build and strict performance Exact integrated head passed the same-host base comparison: startup JavaScript 349,438 B gzip / 8 requests, CSS 45,993 B / 1 request. Chat boot grew 62 B and New Session boot grew 70 B; request counts and CSS were unchanged. The dialog's existing lazy boundary stays intact.
Full UI CI Exact-head run 38632701445 at ec2d3eb56ee4fd2ed429f809c6fb357035e0f47e completed successfully: 38 successful jobs, 26 skipped, zero failed. All 3 UI unit, all 9 Control UI E2E, browser-extension, both real-Gateway shards, and openclaw/ci-gate passed.

The previous head's inherited French Workboard fixture failure was repaired on main. Two native landing attempts stopped before intent or dispatch because GitHub mergeability remained unknown; both drained and released their locks without a merge request or retained outcome. This branch then normally merged origin/main (0569807503223d3740635394f2e5fcab682f0e61), keeping both authored files byte-identical. The new exact-head CI above is green; no inherited-CI exception is requested.

The existing dynamic import of the dialog is unchanged. No startup, stylesheet, tag, or markup changes; no local UI build, E2E suite, or screenshot capture under the polish-wave proof budget.

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

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review October 14, 2026 15:39
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T20:33:30.063077Z ec2d3eb 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.

@steipete
steipete merged commit e2dbd36 into main Oct 14, 2026
95 checks passed
@steipete
steipete deleted the solid2/w-polish-shell-placement branch October 14, 2026 22:32
@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. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant