Repository navigation
fix: keep chat usable when link previews cannot load - #174757
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 maintainer review before merge. What this changesThis PR decouples chat startup from optional link previews and restores title hints when preview loading fails. Example: Open Chat and hover https://example.com/field-guide while the optional preview chunk is unavailable.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a source-confirmed chat-loading defect still present on current main, and review found no actionable introduced bug. Priority: P1 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI passes pane connection, agent, session, and reader context into a behavior-only native host; the existing hover owner requests previews through the Gateway and delegates fallback hints to the shared title owner. flowchart TD
A[Chat pane] --> B[Native hover host]
B --> C[Lazy preview loader]
C --> D[Existing hover owner]
D --> E[Gateway preview requests]
C --> F[Shared title owner]
Technical reviewBest possible solution: Keep preview loading optional while preserving the existing hover owner, pane context, and shared title fallback. Do we have a high-confidence way to reproduce the issue? Current main statically imports the optional preview implementation into Chat, establishing the failure path without executing target code; the earlier unmerged alternative also records a reproduction. Is this the best way to solve the issue? The patch repairs the loading and DOM-ownership boundaries directly, reuses existing preview and tooltip owners, and introduces no configuration or persisted-state change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against efe05bcb8b39. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +57, Tests +63. Total +120 across 7 files. Added test files: 0. View PR surface stats
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 16, 2026, 6:40 PM ET / 22:40 UTC. |
|
Merged via squash.
|
* fix: preserve chat through optional preview loading * fix: satisfy hover host and preview test lint contracts
What Problem This Solves
Fixes: chat can fail to boot when its optional link-preview runtime cannot load, and the first hover can be lost when that runtime upgrades the chat wrapper.
User Impact
Chat and About retain title hints when previews are unavailable. When previews are available, the first eligible hover opens its preview without moving the pointer again. No configuration or migration is required.
Why This Change Was Made
Keep the chat wrapper lazy and behavior-only: the existing hover owner still owns requests, timers and cleanup, but no second renderer adopts the caller-owned transcript. Regenerate the measured boot manifest so the optional runtime is no longer required for chat startup. If loading fails, release the reader hint reservation and notify the existing title owner without replaying input or retrying recursively.
This is a separate CI prerequisite for #174655 because it repairs a pre-existing loading boundary rather than expanding that menu change.
Evidence
display: contentsverified before and after failure against the existing boot-loaded CSS.odin-autoreview(model_provider=openai_api_direct); review caught the reader-specific fallback gap, which was reproduced as a failing browser test and repaired. A fresh P0–P2 review of the two lint repairs also returned scoped-clean before commit. Whole touched browser test file audited; no assertions removed or relaxed.Simplification: removes the Solid passthrough renderer/WeakMap path; the native host only replays pre-upgrade properties and delegates to the existing owner.