Repository navigation
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: needs real behavior proof before merge. What this changesThe PR gives each chat composer its accepted command catalog and refreshes already-open slash and skill menus when that catalog changes. Review scores
Merge readiness⛔ Blocked before merge - 2 items remain The fix remains necessary: current main still lacks publication-driven menu reconciliation, and the adjacent caret-completion PR addresses a different problem. No blocking introduced code defect was found. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Control UI receives command catalogs through chat metadata and presents them in the message composer. This change carries each pane’s accepted catalog into its completion menus while retaining existing command dispatch. flowchart TD
A[Gateway chat metadata] --> B[Scoped metadata store]
B --> C[Current chat binding]
C --> D[Chat pane composer]
D --> E{Menu already open}
E -->|Yes| F[Reconcile visible choices]
E -->|No| G[Preserve dismissal]
F --> H[Existing selection and dispatch]
Technical reviewBest possible solution: Each pane should present its own accepted catalog immediately while preserving draft, caret, dismissal, argument collection, and existing dispatch checks. Do we have a high-confidence way to reproduce the issue? Yes, from source: publish a changed accepted catalog after an open menu’s hydration settles, then render without typing. Current main updates the shared registry but has no render-time menu reconciliation; this reviewer did not execute the reproduction. Is this the best way to solve the issue? Yes, the direction reuses the metadata owner and existing completion builders rather than introducing competing refresh policy. The integrated browser result still needs confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 979466250d54. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +99, Tests +332. Total +431 across 11 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReviewed October 4, 2026, 6:56 AM ET / 10:56 UTC (Revision 3). |
Closes #164862
What Problem This Solves
Fixes: an open slash or skill menu keeps old choices when its chat's command catalog refreshes.
User Impact
Open menus reflect the accepted commands for their own chat, including in split panes, without requiring another keystroke. Drafts, caret position, dismissals and argument collection retain their existing behavior.
Why This Change Was Made
Carry the existing metadata owner's accepted command snapshot into the composer and reconcile only already-open menus when it changes. Deferred renders read their own pane's snapshot instead of whichever pane last updated the shared registry. Existing normalization, refresh admission and default non-pane consumers remain the owners of their contracts; no new cache, TTL or dispatch policy is introduced.
Evidence
6f556a72ba112c8602bafa5494babe71ba2a7f87. Identical 185 cases: original 164 passed / 21 assertion failures → candidate 185 passed → reconciliation-only mutation 164 passed / 21 assertion failures. Real metadata publication, accepted subscriber, full composer and Lit menu DOM execute.pnpm test ui/src/pages/chat/chat-composer-catalog-publication.test.ts --maxWorkers=1wall time and hosted CI seconds are not yet measured.Validation limits: Local tests, including the unchanged native-file bytes, run under an external bounded adapter isolating unrelated UI/import paths and synthetic transport. The critical metadata/publication/composer/menu owners are real, but this is not a canonical complete-graph run. The unseamed attempt collected zero tests because a sparse-source normalizer dependency was absent. Actual TS7 strict/noUnchecked checks still fail overall (756 baseline / 755 candidate diagnostics; no additions or new-test diagnostics); no full typecheck/build pass is claimed. Full ChatPane/LitElement shell, browser screenshots and live Gateway proof remain unperformed. Applicable hosted CI and further UI proof must be checked on the published head before merge; this PR is for review, not declared merge-ready.
Separate from #164839's caret/keyboard precedence.
Current CI repair (2026-10-04 10:38 UTC)
Head
fb791e167362a6b02344374a9b4adea3b41c7c1fremoves only a redundant=== truecomparison in the test's names filter (+1/-1). Production, assertions, payloads and case definitions are unchanged. The actual DOM type gives a non-null string, so the predicate already returns boolean. Independent review verifies the exact one-line delta.The prior-head CI run 37195167356 completed with 37 successful jobs, 24 skipped, and the introduced type-aware lint failure plus its aggregate gate. All five test-type lanes passed. The new test ran natively with 11/11 passing, 417.30 ms test duration in job 111415596554; this is native hosted evidence for
67f4224…, not the new head or a standalone canonical command wall time.Exact project oxlint/tsgolint with real DOM declarations reproduces the reported rule before and passes after in a bounded fixture. The repaired full file passes project formatting and non-type-aware lint. Identical tests: published and repaired candidates each 185/185, original and reconciliation mutation each 164 pass / 21 assertion RED. Local full UI type-aware lint remains sparse-graph blocked; TS7 diagnostics are identical before/after (755, none in the native regression). Current-head CI run 37196113303 passed: 39 successful jobs, 24 skipped. The repaired type-aware lint lane passed (job 111418663391). The repository-native regression passed 11/11, 414.45 ms test duration, in UI shard job 111418426908. These are current-head hosted results; a standalone canonical command wall time remains unmeasured.
Upstream review found no introduced blocking production defect and still requires real-browser ChatPane-to-composer proof, including split panes, before merge. That proof remains unperformed; native jsdom CI does not replace it.