Repository navigation
docs(releases): keep the release-notes nav group to version routes - #140353
Conversation
PR #140319 split the 2.17 MB v2026.8.1 page into 23 child pages and added every child to the "Release notes" nav group. That breaks the route-shape invariant asserted in test/scripts/docs-sync-publish.test.ts: for (const page of releaseNotes.slice(1)) { expect(page).toMatch(/^releases\/\d{4}\.\d{1,2}\.\d+$/); } Child routes such as releases/2026.8.1/messaging do not match, so "keeps generated locale navigation aligned with English routes" failed on main. The docs-only change classification skips that lane, so the break landed on main rather than on the PR, exactly as the comment above the assertion predicts. The children stay published and reachable: all 23 carry an inbound link, 15 from the parent index and the rest from their sibling pagination. Only the nav entries are removed, which also keeps the sidebar from listing 23 sub-pages under one release. Validated: check-docs-mdx (775 files), docs-link-audit 8292 links 0 broken, --anchors 0 broken, format-docs --check clean.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 2:06 PM ET / 18:06 UTC. ClawSweeper reviewWhat this changesRemoves the 23 v2026.8.1 section routes from the release sidebar while retaining their pages and links from the release index. Merge readiness✅ Ready for maintainer review Keep open: current main still violates the release-navigation assertion, and this focused correction preserves the linked release content. No blocking defect was found. Priority: P3 Review scores
Verification
How this fits togetherThe documentation navigation config controls the release sidebar and feeds generated locale navigation. Release content is copied separately into the publishing repository. flowchart TD
A[Navigation config] --> B[Release sidebar]
A --> C[Generated locale navigation]
B --> D[Version index]
D --> E[Section and maintenance pages]
F[Documentation source files] --> G[Published documentation]
E --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs -24. Total -24 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep release versions in the sidebar and use each version's index to expose its detailed sections without changing published URLs. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main supplies nested section routes to an existing assertion that accepts only version routes. The test was inspected but not executed. Is this the best way to solve the issue? Yes: changing the navigation preserves the existing assertion and the release-page split while retaining index-based access to every removed sidebar destination. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 96bf3652adab. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* origin/main: (25 commits) docs(releases): keep the release-notes nav group to version routes (#140353) fix(ui): hide trust wrappers in imported chat history fix(subagents): subagent list building decodes unrelated saved prompts in large session stores (#139540) test(process): share relay startup fixtures (#140345) refactor(doctor): inline GitHub skill discovery inputs (#140343) refactor(ui): share channel status type definitions (#140331) refactor: simplify queue state and infrastructure dispatch (#140311) fix: require saved agent turns before update verification succeeds (#140274) fix(update): keep the service profile when switching to Git (#140263) fix(ui): prevent image avatars overlapping mobile chat (#140341) fix(test): accept release subpages in docs route shape (#140337) refactor(plugins): share uninstall mutation ownership (#140322) refactor(agents): use canonical tool execution arguments (#140280) perf(cli): keep inference metadata and domain help lazy (#140327) refactor(plugins): simplify self-hosted setup results (#140332) refactor(config): reuse parent lookup for unset operations (#140326) fix(plugins): preserve exact installed-index mutation receipts (#140328) test(agents): simplify MCP and LSP boundary fixtures (#140312) fix(ui): preserve literal source previews and copied whitespace (#140306) fix: OpenCode Go/Zen requests are missing the required x-opencode-session header (#137464) ...
PR #140353 removed the 23 child routes from the "v2026.8.1 sections" group, which left the group and its "Maintenance changes" subgroup empty. An empty group renders as a dead sidebar heading. Nav page count is unchanged at 598. Validated: docs-sync-publish "keeps generated locale navigation aligned with English routes" passes, check-docs-mdx 775 files, docs-link-audit 8291 links 0 broken.
…penclaw#140353) PR openclaw#140319 split the 2.17 MB v2026.8.1 page into 23 child pages and added every child to the "Release notes" nav group. That breaks the route-shape invariant asserted in test/scripts/docs-sync-publish.test.ts: for (const page of releaseNotes.slice(1)) { expect(page).toMatch(/^releases\/\d{4}\.\d{1,2}\.\d+$/); } Child routes such as releases/2026.8.1/messaging do not match, so "keeps generated locale navigation aligned with English routes" failed on main. The docs-only change classification skips that lane, so the break landed on main rather than on the PR, exactly as the comment above the assertion predicts. The children stay published and reachable: all 23 carry an inbound link, 15 from the parent index and the rest from their sibling pagination. Only the nav entries are removed, which also keeps the sidebar from listing 23 sub-pages under one release. Validated: check-docs-mdx (775 files), docs-link-audit 8292 links 0 broken, --anchors 0 broken, format-docs --check clean.
PR openclaw#140353 removed the 23 child routes from the "v2026.8.1 sections" group, which left the group and its "Maintenance changes" subgroup empty. An empty group renders as a dead sidebar heading. Nav page count is unchanged at 598. Validated: docs-sync-publish "keeps generated locale navigation aligned with English routes" passes, check-docs-mdx 775 files, docs-link-audit 8291 links 0 broken.
What
Removes 23
releases/2026.8.1/<area>child routes from the Release notes nav group. The pages stay published and reachable.Why
#140319 split the 2.17 MB
v2026.8.1page into 23 child pages and added each to the nav. That breaks an invariant asserted intest/scripts/docs-sync-publish.test.ts:releases/2026.8.1/messagingdoes not match, so keeps generated locale navigation aligned with English routes started failing onmain.The docs-only change classification skips that test lane, so the break landed on main instead of on the PR — exactly what the comment above the assertion warns about:
Reachability
All 23 children keep an inbound link — 15 from the parent index, the rest from sibling pagination — verified by scanning every
/releases/2026.8.1/<slug>reference indocs/. Removing them from nav also stops the sidebar listing 23 sub-pages under a single release.Validation