Repository navigation
refactor(ui): derive palette search readiness from its admitted read - #179958
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. |
|
Codex review: needs changes before merge. What this changesThis PR derives command-palette search readiness from the existing admitted search promise instead of a separate pending flag. Example: Search for “plugins” while the session read is held, then rejected.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-approved refactor preserves the search owner, but the asynchronous cutover leaves existing palette consumer tests failing. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI palette owner admits Gateway session and transcript searches, fences stale results, and publishes results and outcomes to the Solid renderer. flowchart LR
A[Palette input] --> B[Search owner]
B --> C[Gateway search reads]
C --> B
B --> D[Owner projection]
D --> E[Receipt memo]
E --> F[Search presentation]
D --> F
Technical reviewBest possible solution: Keep the existing search owner and receipt-based presentation, and adapt affected palette assertions to wait for Solid settlement without weakening their behavior checks. Do we have a high-confidence way to reproduce the issue? Exact-head CI records the failing palette assertions, and source inspection explains the asynchronous settlement mismatch; no target code was executed during this review. Is this the best way to solve the issue? Observing the admitted promise follows the repository's Solid recipe and preserves one search owner; the consumer-test cutover needs completion. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 70a1e9aa0f97. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +29. Total +29 across 2 files. Added test files: 0. View PR surface stats
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 21, 2026, 6:18 PM ET / 22:18 UTC. |
|
ClawSweeper status: applying reviewed decision. I am applying the reviewed decision for this pull request: refactor(ui): derive palette search readiness from its admitted read This is item 1/1 in the current shard. Shard 1/1. This transient lease prevents a newer review from overlapping label, comment, or close mutations. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Merged via squash.
|
…penclaw#179958) * refactor(ui): derive command palette search readiness * fix(ui): isolate palette search receipt identity * test(ui): await attached Details session metadata
Whole assigned-scope syntax census, exact merge base
f365d7852ae1→ candidate. Unchanged cells show one value. These are candidates for source audit, including plain-owner and foreign-DOM contracts; they are not unqualified migration debt.The new read is a promise-returning receipt memo (not an
asyncfunction), so the syntax-only async-memo count does not increase. The touched-file table below records that adoption.What Problem This Solves
The command palette kept a separate pending boolean beside its admitted session search. This change exposes that existing search promise and lets Solid present readiness while the plain owner retains query debounce, IME, connection scope, request generations, and expected error outcomes.
User Impact
Search feedback and keyboard selection keep their existing behavior while readiness follows the admitted search. No migration or user action is required.
Why This Change Was Made
A synchronous memo narrows the stable receipt identity before the page-lifetime async memo consumes it under a search-only
Loading/Erroredboundary.latestkeeps static commands and the listbox available, andisPendingsupplies the search indicator andaria-busy. Changing the query, entering a prompt, closing, or disconnecting still retires the original search through the existing owner. There is no new RPC, copied result state, or cancellation owner.Evidence
ForcomputationCatalog readiness remains derived from the shared model reader and its existing admitted catalog receipt. Expected session-search failures stay recorded by the owner so a failed best-effort search never appears as successful zero results; the boundary covers unexpected rejected reads/render failures. The catalog pending affordance is a separate remaining async-read cutover; its shared owner already exposes an onRead receipt and is next in this lane. Expected error outcomes remain owner facts.
CI initially caught seven general palette cases where keyboard and row publications restarted the same resolved promise. The stable receipt identity now isolates those publications from async readiness, retaining immediate selection behavior. The general suite passes after correction. The earlier CI boot-render-storm failure matches scheduled main by exact test name; all other failures remain subject to exact-head attribution.
Synthetic captures use a held session read and a rejected session read at 1000×720. Both sides retain the same static commands, search status, and visible failure outcome. All four full frames were inspected; the final warmed fixture capture reported no browser errors.
Coupled Details readiness correction
Exact prior-head CI 39688671784 also exposed
Chat header and delegated work > keeps new batches collapsed until Subagents is opened manually without duplicate wait status. Its optional.chat-details-sessionmetadata section can legitimately be empty and have no visible geometry. The test now waits for attachment to establish implementation arrival. The visible Details panel, removal of its loading status, and visible subagent content assertions remain. This is not attributed to main.The exact base and prior head each passed a focused replay; the corrected test passed its focused replay (1/1, 50.99s). Scoped typed lint and independent P0–P2 review pass. Production source and the paired build are unchanged by this one-line test correction; fresh
ci:fullremains the landing evidence for the replacement head.