Skip to content

fix(id-web): collect list-nested link reference definitions (relative indent) (#8360) - #11224

Merged
dezren39 merged 1 commit into
mainfrom
queue/20131-8360-link-ref-list-indent
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20131-8360-link-ref-list-indent

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #8360

collect_link_reference_definitions applied its indent > 3 indented-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:

- item

    [unused]: /keep

Fix, per the issue's shape: track the enclosing list items' content columns while scanning (new list_item_columns helper in markdown_scan.rs, built on the recorded container-prefix machinery — marker column + content column, tab-aware, with strip_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-web run is currently blocked by a pre-existing break on main, unrelated to this change: id-worlds fails with E0004 (ClientFrame::Pointer/Hover not covered at world_session/session_core.rs:18 and world_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.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… 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.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 10:35
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T10:35:57.039665Z
We couldn’t complete this review. Comment @codex review to try again.
3fc7542 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2e3bff2d-cb30-4233-a113-f0c1c3dadecc
Commits

Reviewing files that changed from the base of the PR and between 901dcc4 and 3fc7542.

Files selected for processing: 2

  • pkgs/id/crates/id-web/src/markdown/markdown_scan.rs
  • pkgs/id/crates/id-web/src/markdown/parse_helpers.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@dezren39

Copy link
Copy Markdown
Member Author

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 cargo test -p id-web in a clean worktree at current origin/main (557dd4f) plus exactly this PR's two files. The build still fails in the DEPENDENCY crate id-worlds with the same pre-existing E0004 break this PR's body describes (ClientFrame::Pointer/Hover not covered, world_session matches) — tracked as #11250 (also #11208). The four new regression tests in this PR therefore still cannot execute until #11250 lands. Task 20131 is being dep-blocked on #11250; when it clears, the next lane re-runs the suite and merges this PR.

@dezren39
dezren39 merged commit d1c2b67 into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20131-8360-link-ref-list-indent branch November 17, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

id(web): collect link reference definitions indented relative to a list item's content column

1 participant