Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The native renderers number tasks across the whole document, so the index names one task; check that task's state and text instead of filtering every task. Drop assertions the cross-block case now covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Tapping the first of two identically labeled unchecked tasks in a mobile PR description reverts when a code block separates the tasks. The matcher invents possible index restarts, although the bundled native renderers keep task indices across views.
Deterministic repro on
origin/main(0df79074ad5f21478b616fe812746c0896ec90d7) — run from the repository root aftervp i:Observed: one markdown segment, then
[null,28]. Expected: the same segment, then[2,28]; index 0 must resolve to the first marker so its tap can be saved.Change
Match only the task at the native document index within the supplied markdown segment, retaining checked-state, rendered-label, and attachment guards. Both iOS and Android use this shared matcher; update existing tests that assumed native indices restarted after code blocks and quotes. Web and desktop use a different checkbox path and need no change; no contracts, providers, connection modes, or UI copy change.
Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
AssertionError: expected [ null, 28 ] to deeply equal [ 2, 28 ].vp test run packages/shared/src/markdownTaskList.test.ts: all 5 tests pass in 3 consecutive head runs, covering duplicate labels, nested and quoted tasks, fenced look-alikes, hard breaks, stale indices/state, and attachments.vp run check:changed: exit 0.[null,28]to[2,28].SegmentRenderer.mand AndroidRenderedSegment.kt.Not shown:
Authored by GPT-6.1 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).