Repository navigation
refactor(ui): present Logbook mutations through Solid actions - #180380
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f58e6da389
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const bundled = this.hasBundledView(info); | ||
| if (!bundled) { | ||
| this.retireActions(); |
There was a problem hiding this comment.
Retire actions when a native page takes over
When the plugin runtime publishes a native pages contribution for logbook/logbook during activation or reload while the Gateway descriptor remains, PluginPageContent gives that contribution precedence, but this check still sees bundled === true, and plugin-registry publications do not invoke update(). A pending Logbook action therefore receives no synchronous retirement before its branch is replaced; Solid can retain the obsolete bundled branch until the RPC settles—or indefinitely if it hangs—delaying the native page. Retire based on the selected rendering mode before publishing it, rather than only on descriptor presence.
AGENTS.md reference: ui/AGENTS.md:L16-L19
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR presents Logbook mutations through Solid actions while retaining synchronous admission and accepted results in the existing owner. Example: Click Pause on the 2026-10-21 Logbook while the capture request is pending.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: the maintainer-directed refactor is useful, but native-page takeover can leave the outgoing Logbook action holding the page transition. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI plugin page mounts Logbook for a Gateway connection; controls submit RPC operations through the Logbook owner, and Solid presents progress and results. flowchart LR
A[Logbook controls] --> B[Logbook owner]
B --> C[Gateway RPC]
C --> B
B --> D[Solid action presentation]
E[Page and connection lifetime] --> D
F[Selected day lifetime] --> D
D --> A
Technical reviewBest possible solution: Keep the shared presenter and retire it synchronously at the existing page owner whenever the selected rendering mode leaves bundled Logbook. Do we have a high-confidence way to reproduce the issue? A held Logbook operation followed by publication of a native logbook/logbook page reaches a rendering-mode change without synchronous retirement; this is source-reproducible but was not executed during review. Is this the best way to solve the issue? The shared adapter follows the existing Solid action recipe and preserves owner authority, but retirement must follow the actual selected page mode rather than descriptor presence alone. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 92be346dfcab. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +134, Tests +163. Total +297 across 10 files. Added test files: 1. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 22, 2026, 3:05 AM ET / 07:05 UTC. |
|
Merged via squash.
|
…aw#180380) * refactor(ui): reconcile Logbook mutations with Solid actions * test(ui): provide router for plugin navigation fixtures * test(ui): provide logbook readiness retirement lifetime
Whole-scope production syntax census at
e8cde7518c558f1b4e44cb8139a149289b9719ad→f58e6da389e1777bafdf10b7788e4f4ccc9b6414. Counts are syntax, not defects.Supersedes #180338. Integrates the reviewed action implementation with current main and the current native landing workflow.
What Problem This Solves
Logbook capture, analysis, standup, and question actions now expose native Solid mutation presentation while their existing owner keeps synchronous admission and accepted results. Capture shows the expected paused value until the server settles. The other three operations expose only progress; generated content and analysis outcomes still come from the owner.
Route, Gateway, descriptor removal, and selected-day changes retire presentation without cancelling the admitted operation. The existing error contract remains visible. A declined owner operation returns no receipt, so it cannot start a phantom optimistic transition.
Evidence
logbook-actions,plugin-page,logbook-view), each ended at the no-output watchdog before assertions. CI supplies remaining unit evidence. The built-UI probe verified pending/settled controls and held-write day and route navigation.Production nonblank LOC in the five touched production files: 1342 → 1468 (+126). The growth separates native mutation presentation and names the existing synchronous retirement points; it adds no RPC, dependency, or predicted server-generated output.
Exact integrated startup 316,028 → 316,032 B (+4 B), CSS40,894 B/1 request unchanged. Chat 1,437,999 → 1,438,002 B (+3 B); New Session 1,015,223 → 1,015,230 B (+7 B). All surfaces remain below current caps. Logbook retains its lazy boundary. The plain owner admits duplicate writes synchronously; Solid owns optimistic presentation.
CI repair for run 39727889052: all eight
plugin-page.session-navigation.browser.test.tsxcases failed because the new action-retirement owner reads the application router and this browser fixture omitted it. The fixture now supplies a real router and stops it on cleanup. The exact browser file passes 8/8 locally. This is a test-fixture correction; production code, bundle metrics, source maps, and the four attached captures are unchanged.CI follow-up: run39735223827 caught two readiness-test mounts newly present on main without the actions' required route-retirement input. Both now supply the same stable never-retired fixture as the other standalone view tests; exact UI-pages type graph passes. The integrated head is
beea6dac305. The exactlogbook-view.readiness.test.tsxruntime file also passes both tests on this head (503 seconds total, mostly transformation).Exact-head full
ci:fullrun 39738370889 completed successfully forbeea6dac30554995d021634fdcfee5b995feb252after the readiness-fixture repair. This is current-head evidence for all selected UI, Control UI E2E, browser-extension, and real-Gateway shards.