Skip to content

docs(onboarding): normalize inline Info callout to block form - #94510

Closed
ZengWen-DT wants to merge 1 commit into
openclaw:mainfrom
ZengWen-DT:fix/94504-zh-onboarding-inline-callout
Closed

ZengWen-DT wants to merge 1 commit into
openclaw:mainfrom
ZengWen-DT:fix/94504-zh-onboarding-inline-callout

Conversation

@ZengWen-DT

@ZengWen-DT ZengWen-DT commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fixes the mojibake reported in the CLI step's Info callout on the deployed zh-CN onboarding page (Chinese character encoding issues #94504): it renders as Info□^8□ □□□□3□K□D□□ while every other Chinese string on the page renders correctly.
  • docs/start/onboarding.md was the only source doc using the inline single-line <Info>This step is optional</Info> form; every other callout in docs/** uses the block form. Normalizes this one to the block form.
  • Leaves all surrounding step content unchanged (diff is +3/-1, callout only).

Linked context

Closes #94504

Real behavior proof

  • Behavior or issue addressed: The zh-CN onboarding page renders the CLI step's Info callout as mojibake (Info□^8□ □□□□3□K□D□□) while the surrounding Chinese renders correctly. Still reproducible on https://docs.openclaw.ai/zh-CN/start/onboarding today (2026-06-18).
  • Real environment tested: the live deployed docs site (docs.openclaw.ai/zh-CN/start/onboarding) in a desktop browser plus the raw payload it ships, the same site's quickstart page as a block-form control, and the local source checkout. I could not rerun the downstream openclaw/docs translation/deploy pipeline, so I have no post-deploy screenshot of this page after the fix.
  • Root cause / premise evidence: This is a render-time bug, not source corruption and not a font problem. The payload Mintlify ships for this page contains the callout as clean, valid UTF-8 — <Info>此步骤为可选</Info> — yet the browser renders that node as garble. The only structural difference between this broken callout and every callout that renders fine is inline-vs-block: this page held the single inline <Info>...</Info> in all of docs/**. A block-form <Info> carrying Chinese renders cleanly on the same live site (quickstart shows 快速开始现已并入…).
  • Before evidence (bug reproduced on main): Reporter + my own browser load of the live page show the CLI-step callout as Info□^8□ □□□□3□K□D□□. The shipped bytes confirm the source feeding that render is clean UTF-8:
$ curl -s https://docs.openclaw.ai/zh-CN/start/onboarding -o onb.html
$ off=$(grep -aob '<Info>' onb.html | head -1 | cut -d: -f1)
$ dd if=onb.html bs=1 skip=$off count=40 2>/dev/null | xxd
00000000: 5c75 3030 3363 496e 666f 5c75 3030 3365  <Info>
00000010: e6ad a4e6 ada5 e9aa a4e4 b8ba e58f afe9  ................
00000020: 8089 5c75 3030 3363                       ..<
$ printf '\xe6\xad\xa4\xe6\xad\xa5\xe9\xaa\xa4\xe4\xb8\xba\xe5\x8f\xaf\xe9\x80\x89\n' | iconv -f utf-8 -t utf-8
此步骤为可选

So the source is byte-correct; the corruption happens when Mintlify renders the inline JSX callout with multibyte children.

  • Exact steps or command run after this patch: git diff --numstat HEAD~1..HEAD, grep -rnE '<Info>[^<]+</Info>' docs --include='*.md' --include='*.mdx', git diff --check HEAD~1..HEAD.
  • Evidence after fix:
$ git diff --numstat HEAD~1..HEAD -- docs/start/onboarding.md
3	1	docs/start/onboarding.md

$ grep -rnE '<Info>[^<]+</Info>' docs --include='*.md' --include='*.mdx'
(no matches)

$ git diff --check HEAD~1..HEAD
(clean)
  • Observed result after fix: the callout now uses the block form used by the rest of docs/**; no inline single-line Info callout remains in the source, so the one source shape that reproduces the render-time garble is gone.
  • What was not tested: I could not rerun the downstream openclaw/docs translation + Mintlify deploy, so I have no screenshot of this specific page rendering clean after the change. The block-form control (quickstart) renders Chinese cleanly on the live site, which is the closest available after-signal.
  • Proof limitations or environment constraints: The deployed "after" for this exact page is only observable once a maintainer merges and the docs site re-translates and rebuilds. The before (live garble) and premise (clean shipped bytes + block-form control) are independently verifiable today from any machine via the commands above.

Tests and validation

  • git diff --check HEAD~1..HEAD
  • grep -rnE '<Info>[^<]+</Info>' docs --include='*.md' --include='*.mdx' (no inline callouts remain)

Risk checklist

Did user-visible behavior change? Yes (docs render shape only — inline callout becomes block callout)

Did config, environment, or migration behavior change? No

Did security, auth, secrets, network, or tool execution behavior change? No

Highest-risk area: the single Info callout's MDX shape.

How is that risk mitigated? It now matches the block form used by every other callout in docs/**; the diff is +3/-1 and touches nothing else.

Current review state: maintainer review and CI. A maintainer with docs-deploy access is the only one who can confirm the live zh-CN render after re-deploy, since the deployed "after" is downstream of merge.

AI-assisted (Claude Code). Proof above was run manually.

The inline single-line <Info>This step is optional</Info> is the only
inline JSX callout in the docs. On the deployed site its multibyte
translated content renders as mojibake (reported on the zh-CN page),
while every other callout uses the block form and renders correctly.
Normalize this callout to the conventional block form.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS proof: supplied External PR includes structured after-fix real behavior proof. labels Jun 18, 2026
@ZengWen-DT
ZengWen-DT marked this pull request as ready for review June 18, 2026 08:42
@clawsweeper

clawsweeper Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 25, 2026, 4:52 AM ET / 08:52 UTC.

Summary
The PR changes the onboarding CLI step Info callout in docs/start/onboarding.md from inline JSX to multiline block-form Info.

PR surface: Docs +2. Total +2 across 1 file.

Reproducibility: yes. Current main and v2026.6.10 still contain the inline Info callout at docs/start/onboarding.md:82, and the linked issue plus live-page/source evidence tie that source shape to the zh-CN mojibake symptom.

Review metrics: none identified.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #94504
Summary: The canonical user problem is the zh-CN onboarding callout mojibake report; this PR is a viable candidate fix, while one older open block-form PR and several closed unmerged attempts overlap the same source line.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P1] The exact zh-CN deployed after-state can only be verified after the docs sync, translation, and Mintlify publish pipeline runs from the merged source change.
  • [P1] One other open PR targets the same source line, so maintainers should land one canonical fix and close or decline the duplicate candidate.

Maintainer options:

  1. Decide the mitigation before merge
    Land this block-form Info patch as the canonical source-doc fix if maintainers want to preserve callout styling, then verify the public zh-CN onboarding page after docs deployment and close the linked issue plus duplicate PRs.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair is needed; maintainers should choose and land one overlapping candidate, then verify the deployed zh-CN page after publish.

Security
Cleared: The diff changes one Markdown docs file and does not touch executable code, workflows, dependencies, lockfiles, secrets, permissions, or supply-chain surfaces.

Review details

Best possible solution:

Land this block-form Info patch as the canonical source-doc fix if maintainers want to preserve callout styling, then verify the public zh-CN onboarding page after docs deployment and close the linked issue plus duplicate PRs.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main and v2026.6.10 still contain the inline Info callout at docs/start/onboarding.md:82, and the linked issue plus live-page/source evidence tie that source shape to the zh-CN mojibake symptom.

Is this the best way to solve the issue?

Yes for the narrow page-specific fix. The block-form Info change preserves the callout UI better than the italic-text workaround while removing the inline component shape implicated by the report.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 33d7a2a3f714.

Label changes

Label justifications:

  • P3: This is a low-risk docs-only rendering fix for one onboarding callout with no runtime, config, migration, dependency, or security surface touched.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed

PR surface:

Docs +2. Total +2 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 1 +2

What I checked:

Likely related people:

  • wanglu241: Current blame for the CLI Step and inline Info callout points to commit 875e26e, which added the current docs/start/onboarding.md file containing the affected block. (role: current-line source author; confidence: high; commits: 875e26e4bbb3; files: docs/start/onboarding.md)
  • Josh Lehman: The current-line blame commit was committed by Josh Lehman, making him a useful routing candidate for the latest copied-forward source state. (role: current-line committer; confidence: medium; commits: 875e26e4bbb3; files: docs/start/onboarding.md)
  • steipete: Path history and shortlog show many prior updates to the onboarding docs page and related onboarding wording, including CLI package-manager and setup wizard wording changes. (role: frequent onboarding docs contributor; confidence: high; commits: 7807e1ef0516, 5287ae3c06cf, 1dd4f92ea275; files: docs/start/onboarding.md)
  • sebslight: Earlier path history shows Seb Slight/Sebastian commits around the Step-based onboarding docs structure and rendering cleanup that carried this page forward. (role: onboarding docs feature-history contributor; confidence: medium; commits: c18452598aa0, c8f4bca0c421, 3011b00d39e9; files: docs/start/onboarding.md, docs/docs.json)
  • vincentkoc: Recent history shows a release/docs refresh touching docs/start/onboarding.md, so Vincent Koc is adjacent to the current shipped docs state even though not the primary source-line owner. (role: recent docs area contributor; confidence: low; commits: aa69b12d0086; files: docs/start/onboarding.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chinese character encoding issues

1 participant