Skip to content

refactor(ui): observe plugin action completion with Solid - #179608

Merged
steipete merged 1 commit into
mainfrom
solid2/w-s2-contribution-actions-ready
Oct 21, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-s2-contribution-actions-ready

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Whole-scope Solid 2 checklist against base 7677cfe1a8dd. Counts are presentation candidates; synchronous domain owners and foreign-DOM adapters retain their contracts. This PR changes only plugin action completion presentation.

File family 1 unsafe native bindings 2 component/all cleanup 3 manual reads 4 mutation/error handling 5 manual view loaders 6 copied presentation objects 7 manual component factories 8 throw-only contexts 9 sibling loading groups 10 non-island/all owner APIs
app 0 0/3 1 Focus read, separate PR 0; update/recovery owners exempt 0 3; addressed separately 0 0 0 6/6; ownership and shell PRs separate
lib excluding reactive 0 0/5 2 MCP/browser reads; MCP separate PR, serialized browser owner exempt 0; browser and SDK command owners exempt 0 0; tab focus uses its keyed projection 3 foreign-DOM calls 0 0 0/4
plugin presentations 0 0/2 1 history read, separate PR 1 → 0 manual contribution error slots; opaque runner remains plain, as proven below; reload separate PR 0; board import already native async 1 history snapshot, separate PR 0 0 0 0
plugin SDK/DOM adapters 0 0/1 2 foreign mounts, exempt 3 delegated SDK commands, exempt 0 1 opaque SDK props slot, exempt 0 0 0 0/7
plain plugin/API owners 0 0 0 0 presentation wrappers 0 0 0 0 0 0

Tracked production scope: 567 files, 91,855 → 91,873 LOC. The canonical async/action recipes are absent from this base. The existing runner owns mutation admission, target capture, cancellation and plugin execution. A keyed completion envelope feeds native Loading/Errored; buttons remain outside that boundary.

What Problem This Solves

Plugin contributions copied action errors into a parallel string signal. Observe the existing runner's Promise through native Solid completion boundaries instead, preserving immediate owner updates, clearing the old alert on retry, retaining button identity, and showing an older concurrent invocation's late failure.

A native action wrapper was tried and failed the existing updates composer action presentation and retires hidden invocations test: a pending plugin invocation held the session owner's Busy update, leaving the button at Review Ready. The final implementation deliberately keeps the opaque runner outside a Solid action. The mutation owner must continue publishing progress while the invocation is pending; this is a measured item-4 exception, not an untested timing safeguard.

Evidence

Check Result
Contribution test file Initial run: 10 pass, one Busy-state regression failed. After removing the action wrapper: that regression and both new completion cases pass (3/3); the other eight passing cases were not repeated. Pinned Bun, maxWorkers=1.
UI typecheck Pass, tsrs
Independent Codex P0–P2 review Scoped-clean on the corrected implementation
Scoped lint / format / diff check Pass; final lint uses the supported existing-declarations mode
Production Knip Completed: only the three inherited unused cron/Gateway files; no UI findings
Broad UI proof PR CI with ci:full
Startup / routes The existing plugin activation loader remains lazy; no startup import or chunk boundary change. No local boot build under the campaign compute budget.

No test assertions were weakened. The new tests cover retry clearing with stable controls and a late failure from an older concurrent invocation. Aborted invocation errors stay suppressed by the existing signal contract. No local E2E/parity suite, no style/class/tag/route or intended visual change, and no dependency change.

Production renderer: 339 → 357 LOC (+18). Coupled test: 518 → 573 LOC (+55). Growth is the native completion boundary and two distinct regression cases; the parallel error string is removed.

Knip retains src/cron/heartbeat-monitor.ts, src/cron/system-monitor-jobs.ts, and src/gateway/server-cron-system-jobs.ts; these are the same three findings recorded on the campaign baseline. No new ignore was added.

CI inherited-failure attribution: run39622970458 on d8e5e70364bfdf183029172d572409ed10afaf53 fails exactly three E2E tests: Control UI agent page scope > scopes pages from the chip and keeps Agents settings independent, compact identity menu > keeps common actions visible with nine native gateways and opens an unclipped keyboard switcher, and Control UI native-nav sidebar toggle E2E > hosts navigation, search, sessions, and history in web titlebar chrome. All three exact names and assertion details also fail on the latest completed scheduled main run39617857340 at f960ba73bb163c6f83e41a6c195b5c7cb8e51301. The newer15:34 scheduled main run was queued at attribution. The original CI merge object was fetched and its ordered parents/tree verified; its effective changes are only this renderer and its test. The native inherited-failure route retains these failures as failed coverage.

@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 in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@chatgpt-codex-connector

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 🔄 Running since 2026-10-21T15:19:22.160579Z d8e5e70 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@steipete
steipete merged commit 8638483 into main Oct 21, 2026
113 of 118 checks passed
@steipete
steipete deleted the solid2/w-s2-contribution-actions-ready branch October 21, 2026 16:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant