Repository navigation
fix(shared): link file paths in over-indented lists for thread search - #43735
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceReal web app, fresh synthetic databases, Replay (dev), dark theme, 1280×800 viewport on both commits. Seeded the reported Markdown with seven spaces after the first hyphen, opened the completed thread, pressed Ctrl+F, checked the normally indented control, then searched Proven: the scenario fails on base and passes on head. Base shows
Not shown:
|





Problem
Find in thread misses the displayed file-chip label when an assistant puts an absolute file path in an over-indented list item. Web/desktop chat already shows a clickable
app.ts · L42chip, but shared search extraction indexes the raw path.Deterministic repro on
origin/main(a066eb0935da44bbb16571638138c218bfdbf775): render the exact synthetic Markdown- /Users/me/app.ts:42(seven spaces after the hyphen), then press Ctrl+F and search forapp.ts · L42. Observed: zero matches. Expected: one match. At the parser boundary,searchableMessageSegments({ role: "assistant", text: "- /Users/me/app.ts:42", streaming: false })returns["/Users/me/app.ts:42"]instead of["app.ts · L42"]. The evidence transcript includes the full Node command to run frompackages/sharedon either revision, and the scratch Replay scenario exercises the same Ctrl+F flow with an expanded CLI-originated user message and a free Replay turn.Change
Run absolute-file-path linking after list indentation recovery in both shared remark configurations, so recovered paragraph nodes receive the same links as normal list text. This fixes web/desktop in-thread search without changing their existing file-chip rendering; native mobile uses a separate renderer. No provider, wire, or translation changes are needed.
Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
[]instead of the file URL), and search extraction fails with the raw path instead of the chip label.markdownPipeline.test.tsandthreadFindText.test.tspass in three consecutive full runs. Coverage retains literal inline, indented, and fenced code, raw anchors, shortened paths, and existing Windows handling.vp run check:changed: exit 0 on the clean committed head, including format, lint, both knip passes, all 37 affected typechecks, and 49 tests across three affected files.vp run scenarios:provewith the linked scratch scenario: exit 0. The expanded CLI-originated user message and free Replay turn show0/0on base and1/1with the chip highlighted on head. The exact assistant fixture is also covered by the parser transcript.Not shown: native mobile rendering, Electron shell/IPC, live provider output, remote/relay/tunnel connections, and physical devices.
Authored by GPT-6.1 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).