Repository navigation
fix(id-web): collect list-nested link reference definitions (relative indent) (#8360) - #11224
Conversation
… indent) (#8360) collect_link_reference_definitions applied its indent > 3 indented-code skip to the RAW line, so a definition nested in a list item at raw indent >= 4 but relative indent 0-3 from the item content column was dropped before collection. Track the enclosing list items content columns (new list_item_columns helper in markdown_scan.rs, built on the container-prefix machinery) and apply the skip to the relative indent. Regression tests: list-nested definition collected (bullet and ordered), genuinely indented code in an item still not collected, no-blank-line paragraph continuation still not collected.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
agent-note:v1 (PR disposition, lane any-a, task 20131) Codex findings gate: the Codex review on this PR did NOT complete — the review summary (2026-11-17T10:35:57Z, commit 3fc7542) states "We couldn't complete this review" and the connector's follow-up names Codex usage limits as the cause. I checked the PR's inline review comments this pass: there are none. So there are no Codex findings to disposition — the gate is satisfied as "review attempted, no findings posted", not "findings ignored". Verification status (2026-11-17, lane any-a): ran |
Fixes #8360
collect_link_reference_definitionsapplied itsindent > 3indented-code skip to the RAW line, so a link reference definition nested in a list item — raw indent ≥ 4, relative indent 0–3 from the item's content column — was dropped before collection and the unused definition was lost on save:Fix, per the issue's shape: track the enclosing list items' content columns while scanning (new
list_item_columnshelper inmarkdown_scan.rs, built on the recorded container-prefix machinery — marker column + content column, tab-aware, withstrip_marker_padding's five-or-more-padding rule) and apply the indented-code skip to the indent relative to the innermost item's content column. Blank lines do not disturb the stack (loose lists); a new item replaces the levels at or outside its marker column; a plain line dedented past an item's content column leaves it.Regression tests (new
#[cfg(test)]module on the collector): list-nested definition collected (bullet and ordered markers); a genuinely indented code line inside an item (relative indent 4) still NOT collected; the no-blank-line paragraph-continuation case still NOT collected.Verification note: the local
cargo test -p id-webrun is currently blocked by a pre-existing break on main, unrelated to this change:id-worldsfails with E0004 (ClientFrame::Pointer/Hovernot covered atworld_session/session_core.rs:18andworld_session/mod.rs:1449) — reproduced on the clean base with these changes stashed. This PR's checks will stay red until that lands; the four new tests are ready to run the moment it does.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.