Skip to content

fix(site): keep navigation current and restore section links - #36

Merged
steipete merged 2 commits into
mainfrom
fix/phase5-site-navigation
Sep 12, 2026
Merged

fix(site): keep navigation current and restore section links#36
steipete merged 2 commits into
mainfrom
fix/phase5-site-navigation

Conversation

@steipete

@steipete steipete commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

A slow documentation fetch could overwrite a newer page after tab navigation, leaving Notes selected while People was displayed. Give each navigation ownership of its fetch result, including errors and cache writes. The viewer also attempted to navigate to section IDs that Markdown rendering never generated; assign collision-free heading IDs while reserving all explicit article anchors.

Four initial regressions reproduced stale successes, stale failures, same-slug revisits, and missing section targets. The expanded suite additionally covers Unicode fragments, duplicate headings, and explicit heading/non-heading anchors. All 14 Node tests pass. The browser and tests now load the shared scripts/site.js directly; this removes the brittle HTML-extraction regex flagged by CodeQL, without suppressing any check. Isolated Codex autoreview is scoped-clean at P0–P2 after fixing its explicit-anchor collision finding.

Live proof through the real Chrome profile and the retained shared extension relay: delay the People response, navigate to Notes, then let People finish. Before: hash=#/notes, label docs/notes.md, heading People. After: the same hash/label retain heading Notes. Navigating to #/imports#sync-preview-only finds and scrolls to Sync (preview-only). The screenshots contain only public documentation and synthetic examples.

Before: Notes selected but stale People content displayed

After: Notes stays visible when the older request finishes

@clawsweeper

clawsweeper Bot commented Sep 12, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

Comment thread scripts/site-navigation.test.mjs Fixed
@clawsweeper

clawsweeper Bot commented Sep 12, 2026

Copy link
Copy Markdown

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(site): keep navigation current and restore section links This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit a73c2a9 into main Sep 12, 2026
12 checks passed
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.

2 participants