Repository navigation
refactor(ui): retire session organizer host - #174792
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: c9bc202139
ℹ️ 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".
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces the session organizer’s rendering-host contract with explicit dependencies and completion notifications, and adds a terminal-state wait to an automation test. Example: The automation test sends admin-list followed by admin-get in one chat session.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-approved refactor is coherent, prior findings are resolved, and no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherSidebar actions enter the synchronous session organizer, which calls lazy mutation modules and publishes state through the existing Solid sidebar projection. flowchart LR
A[Sidebar actions] --> B[Session organizer]
B --> C[Lazy mutation operations]
C --> D[Session capability and Gateway]
D --> E[Authoritative session state]
E --> F[Solid sidebar projection]
B --> F
Technical reviewBest possible solution: Retain the explicit organizer dependencies, lazy operations, and completion notifications, then land through the existing CI gates. Do we have a high-confidence way to reproduce the issue? No product defect is claimed by the refactor; the earlier automation timeout is documented, but its cause has not been established. Is this the best way to solve the issue? The change preserves the existing domain and projection owners while removing an unused rendering-host contract; the added test wait observes public terminal state without weakening assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 705d1b2b59d3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -4, Tests +14, Other 0. Total +10 across 14 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 HistoryReview history (6 earlier review cycles)
Reviewed October 16, 2026, 11:30 PM ET / October 17, 2026, 03:30 UTC (Revision 7). |
|
@clawsweeper re-review The replacement head restores immediate section-reorder and empty-group completion publication through the organizer's explicit callback and removes the menu/catalog type import cycle. The existing reorder focus assertion exposed the timing regression: synchronous catalog publication still reaches the sidebar on a later frame. Fresh staged review, typechecking, import-cycle guard, targeted lint, and strict startup comparison pass. Replacement |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e28c68047c
ℹ️ 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".
|
@clawsweeper re-review The integrated head merges the landed SessionDataOwner cut and resolves its import/type conflicts. Fresh staged review, UI typechecking, the zero-cycle guard, production Knip, and same-machine strict startup checks pass. Startup gzip is 340,558 → 340,565 B with identical raw bytes and one CSS request. The PR remains 12 logical files. The previous repaired run passes section-reorder focus and the earlier automation timeout; the body names the seven separate chat failures awaiting exact attribution. A fresh ci:full run covers this head. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review The current head adds failure-only provider diagnostics to the unresolved automation CI case, preserving its assertion, timeout, and original exception. Independent P0–P2 review is clean. The PR body records the prior failure, unsuccessful baseline attempts, stopped queued Testbox, and local typed-lint preparation timeout; no inheritance or behavioral fix is claimed. Production proof inputs are unchanged, and fresh ci:full is running. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Current head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Current head: |
|
🦞👀 Re-review progress:
|
…izer-host # Conflicts: # ui/src/components/app-sidebar-session-navigation.ts
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor(ui): retire session organizer host * fix(ui): preserve organizer completion publication * docs(ui): refresh sidebar drop parity references * test(ui): diagnose automation provider timeouts * test(ui): wait for terminal automation turns
Problem and solution
Session organization still inherited a rendering-host contract despite using no controller lifecycle.
SessionOrganizernow takes explicit domain dependencies and a publication callback. Its synchronous state reaches the existing Solid sidebar projection; mutation and dialog modules remain lazy. Immediate completion notification preserves keyboard focus after reordered rows move. Menu lifecycle typing stays structural and avoids an implementation import cycle.Session grouping, batch mutations, drag/drop, confirmation, retry, retention, tags, routes, selectors, and lazy boundaries retain their behavior. Swift changes only update parity comments. No markup or CSS changes, so visual captures are not applicable to this owner-contract refactor. The simplify pass removes host inheritance and obsolete names without a replacement registry, compatibility alias, or dependency.
Proof
847e201dcba847e201dcba: all UI units, all nine UI E2E shards and both real-Gateway shards passed; only unavailable Watch simulators and the aggregate gate failedCurrent base:
23da5a72ec7ec5204886d4d34fea2e94f9bbc733; current proof head:847e201dcba62b9243bf32ea31f7aa99e7513cae. A conflict-free main merge requests GitHub mergeability recalculation after repeated UNKNOWN observations. Its added/removed contribution is byte-for-byte unchanged from13c579539f61; the pinned-base typecheck, production Knip, head build and independent P0–P2 review passed. No passing mutation or dialog suite was rerun. Paired same-machine builds and strict checks passed. The 7 B compression delta leaves raw startup bytes and request counts unchanged; no startup module or eager dependency was added.The test-only repair waits for the public Stop generating control to disappear between sequential admin automation actions. Persisted reply text can precede the terminal browser event; the existing media real-Gateway suite uses the same boundary. All tool-result, mutation, audit, reply assertions and timeout defaults remain. Both real-Gateway shards passed on current head
847e201dcba. No local E2E battery or parity run was used.Size
14 changed paths. Touched UI production LOC: 3,587 → 3,582. Including the comment-only Swift file: 4,013 → 4,008. Tests/helpers: 707 → 721.
createEffectcreateRenderEffectuntrackaddEventListenerNo production flush or owner capture was added. The assertion baseline follows the renamed file without adding an allowance.
Current CI attribution
Run
39006224386, attempt 1, has 58 successful jobs and one non-aggregate failure: ios-screenshots / job 117319394950. Phone and iPad tests passed. Watch simulator selection then failed before Watch tests with “No available Apple Watch simulators found.” This exact failure differs from the earlier runtime-creation message; the current log is retained separately.The tested merge is
915bc1b9d5ae9b92e73dc111283ea546cdeaa48d, with ordered parents0832273d60d2f2913d4ef3fdfd7742932635bdf6and847e201dcba62b9243bf32ea31f7aa99e7513cae. All seven inspected pipeline/runtime-selection inputs have identical blobs between that main parent and the tested merge. The actual PR contribution is 14 paths; Swift changes comments only. Aggregate job117321912118fails only downstream of screenshot capture and its skipped evidence step. Security-fast and every UI/real-Gateway job passed.Native admin evidence binds the current head, attempt, checkout, logs, source equality and artifact hashes. Latest scheduled main
39006528379was still in progress, so this is source-backed unrelated runner-infrastructure attribution, not a matching-main failure claim. The run remains recorded as failed.Prior-head CI attribution
This evidence applies to
13c579539f61, not the new847e201dcbarun.Run
39002497148, attempt 1, on13c579539f61has exactly one non-aggregate failure: ios-screenshots / job 117308453788. iPhone and iPad tests passed, then Watch simulator creation failed before Watch tests:xcrun simctl createreturned exit 145 / CoreSimulator error 401 because watchOS 27.0 runtime is not available; runtime path not found. The aggregate gate and dependent screenshot evidence follow that failure.The actual CI merge is
197aaaf83c828913d32646e250333bffe68e74ed, with ordered parentsfdc7fe3b02b663a036806fac44ca7b1575778505and13c579539f61b72ddcd486122453a14f22e15e36. All seven inspected pipeline/runtime-selection inputs are byte-identical between that main parent and tested merge. The contribution remains 14 paths; Swift changes comments only. Every UI suite and both real-Gateway shards passed. Native admin evidence retains the exact checkout, source hashes, completed-job accounting and logs; CI remains recorded as failed.Latest scheduled main run
39002992814was still in progress at observation, so this is source-backed attribution of unrelated runner infrastructure, not a claim of a matching failing test on that run.Previous-head CI attribution
For prior head
12042bc3, the actual tested merge was143cbf7f25680e682de6c3eed34eef7ce9029e24, whose ordered parents are main baseline86ad4c4ec0bd98638723af2fb4a229cacb1e7b57and that prior PR head. All 25 relevant failing-test/rendering inputs have identical blobs between that baseline and tested merge. The PR contributes exactly its 14 reviewed paths, with no overlap with those inputs.The baseline already contains #173838 (
d5c7055a7006), which groups system notices behind an initially closed disclosure, and #173842 (789c8c017d24), which moves compact PR dismissal into a menu and separates repository text from the number. The unchanged E2Es still target the previous presentation. Source inspection attributes these failures to changes already in the actual CI baseline. The completed scheduled main run 38999305057, atc05055d29fa2cbb5c21392f70975f03544021b75, also fails all eleven exact test names below. Plugin steering runs in main shard 3 and this PR’s shard 1; attribution compares test names across those shards. Prior recovery evidence retains the checkout, source hashes, job annotations and complete failed-job accounting; that run remains recorded as failed.[ui-e2e-bundled] ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on dark mobile[ui-e2e-bundled] ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on light mobile[ui-e2e-bundled] ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on dark desktop[ui-e2e-bundled] ui/src/e2e/chat-plugin-steering.e2e.test.ts > Plugin steering notices > keeps projected plugin steering in a collapsed native notice on light desktop[ui-e2e-bundled] ui/src/e2e/chat-retry-failure.e2e.test.ts > Control UI retry and terminal failure > preserves restart partials and a neutral durable recovery notice through reload[ui-e2e-bundled] ui/src/e2e/chat-pr-publication-state.e2e.test.ts > Control UI PR publication state > recovers shared receipts and observes committed status without publishing[ui-e2e-bundled] ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 390 in dark[ui-e2e-bundled] ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 390 in light[ui-e2e-bundled] ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 1440 in dark[ui-e2e-bundled] ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > keeps every PR visible and actionable at 1440 in light[ui-e2e-bundled] ui/src/e2e/chat-pull-requests.e2e.test.ts > session pull request chips > shows detected PRs in Details with rate-limit stalenessRetained limitations
Earlier runs exposed a sidebar focus-completion regression, which was repaired and passed full CI. An earlier automation provider-result timeout remains incompletely diagnosed; the terminal-state synchronization repairs a concrete missing test boundary, and the passing replacement is not presented as a full causal diagnosis. Failure-only diagnostics preserve the original assertion, timeout and error.
A historical local typed-lint attempt timed out in plugin-SDK declaration preparation before examining the test. The fresh matching
extensions/tsconfig.jsoninvocation passed; that establishes current lint coverage without diagnosing the historical timeout. An inherited mock-export ratchet failure was fixed by main #174947 and incorporated. The original auto request was explicitly retired before head repair; landing uses fresh review/preparation and documented replacement recovery.On prior head
12042bc3, the fifth non-aggregate failure wasios-screenshotsjob117297159708: after the iPhone and iPad screenshot tests passed,xcrun simctl createfailed with exit 145 / CoreSimulator error 401 because the watchOS 27.0 simulator runtime is not available. All seven relevant pipeline/runtime-selection files are identical between the actual baseline and tested merge. This is an unrelated runner prerequisite; the Swift diff only changes parity comments. Aggregate job117299953883fails only downstream of these five jobs. Security-fast and the remaining source checks passed. Run38998719590, attempt 1, remains recorded as failed under the documented unrelated-failure exception.Scheduled main run
38999305057subsequently completed and confirmed all eleven exact E2E failures. Head13c579539f61included main’s upstream E2E corrections (2d4ca277a8c); all UI and real-Gateway checks passed in that run, with only the runner runtime failure described above. Head847e201dcbapreserves that contribution; its own completed CI has the separate Watch-device failure documented above.