Skip to content

fix(ui): accented workspace file links open an empty chat - #148097

Merged
steipete merged 2 commits into
mainfrom
codex/qa-unicode-file-links
Sep 14, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/qa-unicode-file-links

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

The settings prerequisite #147970 merged as ecf6da80114479bd9147244adb889da81d62312f, and the shared fixture-assertion blocker is resolved upstream in #148129. This PR now targets main and contains only its reviewed follow-up changes. Rebasing onto main preserved the patch exactly; prior review and inspected live proof are retained. Exact-head hosted CI and the required gate now pass.

What Problem This Solves

Clicking a valid workspace file link such as qa-café/index.md navigated the Control UI to an empty chat route instead of opening the file preview. The Markdown parser decoded the URL correctly, but its ASCII-only path grammar rejected the accented directory and left an ordinary browser link behind.

User Impact

Accented, CJK, decomposed, and numeric Unicode path segments open through the existing workspace-file handler. Mouse clicks, Enter, and Space preserve the current conversation and open the intended file. Path spelling, line targets, ASCII extension rules, and ordinary URL/session handling remain unchanged.

Why This Change Was Made

Extend the existing shared file-reference grammar to Unicode letters, marks, and numbers. Keep detection and dispatch in their existing owners, including authored Markdown links, inline code, and scanned prose. Update the chat documentation with the observed accented-path example.

Evidence

The original code failed five parsing regressions and three rendered-transcript activation cases. The candidate passes 274 related tests, canonical UI test type graphs, focused lint, formatting, and whitespace checks. Independent whole-change review found no actionable P0–P2 issues.

Live isolated Chromium reproduced the bad navigation using a real-model-generated fictional café project, then verified that the repaired link opens the actual file in the side panel. Click, Enter, and Space all preserve the conversation. The served JavaScript was byte-matched to the candidate build. The same session also exercised Discard and Save on an accented-path Markdown file and restored its exact original bytes. No browser exceptions occurred. All data in proof captures is synthetic.

A clean rebase onto the reviewed settings fix retains the identical patch. All 274 tests pass again, and canonical startup proof is 358,720 B against the unchanged 361,938 B limit. A fresh combined live replay opens the café index by mouse, staffing with Enter, and checklist with Space; a new fork retains its project and opens the generated accented-path audit.

The before/after images were inspected and visibly attached in the originating chat. Matching PR embeds and final exact-head CI are required before landing.

Inspected before/after screenshots and live proof.

The latest rebase onto the consolidated settings head preserves the identical follow-up patch; targeted tests and a fresh independent P2 review pass. A fresh build at 5be8edb and combined live replay with the reviewed fork backend now pass: served JavaScript byte-matches the build, startup is 357,467 B across seven requests, Japanese paths open by mouse, and a decomposed-accent filename opens with Enter without normalization. Twelve CSV records and eight sessions were independently verified. No browser exceptions occurred.

CI recovery status — September 14, 2026

The exact-head CI run completed 69 jobs before stalling on 33 unassigned jobs. After verifying zero executing jobs and no assigned runners or executed steps, one documented failed-job recovery ended in GitHub startup_failure before creating a second attempt. Local and live proof remain valid; hosted landing proof is incomplete.

Current head 4608edb47beb rebases the identical Unicode fix onto main ac7de4a3427e and includes the separately reviewed two-line wizard test-routing repair. Hosted CI exposed recovery/provenance integration tests running without their required host-owned SQLite broker; routing them through the existing database-worker lane preserves production behavior and every assertion. The final inventory matches the reviewed repair exactly. Fresh validation passes 274 UI tests, 99 scoped-config checks, 120 routing tests, and 16 wizard cases (509 total). Prior independent reviews and inspected live screenshots are retained. Exact-head hosted CI now passes (run34869224478). Earlier recovery attempts encountered GitHub startup and checkout failures, followed by the now-repaired wizard routing failure; no test deadline or assertion was relaxed.

Current head 2be13e514e8d resolves the inventory overlap with main 6fd4d0d52a9f: upstream already routes inference recovery through database workers, so this PR retains only the provenance entry. The final inventory is byte-identical to the previously reviewed and tested repair, and all product commits remain patch-identical. Recovery refs and prior proof are preserved. Exact-head CI now passes (run34869224478).

Current exact head 2be13e514e8d passed CI34869224478, including the required gate, with no failed jobs. Latest exact-head ClawSweeper review has no actionable findings. A combined real-key replay on integration 44bc709547a also opened Japanese paths by mouse, accented paths with Enter, and CSV files with Space; reload and draft resizing preserved state with no browser errors. Previously inspected screenshot embeds remain the visual proof.

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@steipete

Copy link
Copy Markdown
Contributor Author

Inspected synthetic-only before/after proof: the original links were ordinary navigation anchors; repaired links dispatch through the workspace-file handler. The final image shows a real file opened with Space on the rebased candidate. Mouse and Enter also pass, and the served bundle was byte-matched to the build. These captures are visibly attached in the originating chat.

Before: accented paths navigate instead of opening files

After: accented paths use workspace file actions

Rebased candidate: Space opens the actual accented-path checklist

@steipete steipete self-assigned this Sep 14, 2026
@steipete
steipete force-pushed the codex/qa-runtime-config-reentry branch from be9b713 to 075f2b3 Compare September 14, 2026 08:52
@steipete
steipete force-pushed the codex/qa-unicode-file-links branch from 2f484c5 to 5be8edb Compare September 14, 2026 08:58
@steipete
steipete marked this pull request as ready for review September 14, 2026 08:59
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 12:55 PM ET / 16:55 UTC (Revision 6).

ClawSweeper review

What this changes

Recognizes Unicode workspace file links in chat Markdown, adds parsing and activation regressions, updates documentation, and routes a wizard integration test through the existing database-worker lane.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary: current main and v2026.9.4 retain the ASCII-only grammar. No actionable patch defects were found, and the inspected proof supports the repaired file-preview behavior.

Priority: P2
Reviewed head: 2be13e514e8d0d9822555d97fd5c1ec3f0384bed

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level fix with meaningful parsing and activation regressions, inspected real UI proof, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the changed Markdown file actions and an actual accented-path file preview; the captured isolated Chromium account reports click, Enter, and Space success with a matched served bundle. The production grammar is byte-identical to the previously demonstrated head.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots show the changed Markdown file actions and an actual accented-path file preview; the captured isolated Chromium account reports click, Enter, and Space success with a matched served bundle. The production grammar is byte-identical to the previously demonstrated head.
Evidence reviewed 9 items Current main still needs the fix: The fetched main revision still restricts file segments to ASCII letters and numbers, rejecting the reported accented relative destination.
Latest release retains the same restriction: The v2026.9.4 source also contains the ASCII-only file grammar; the requested behavior is not already supplied by the latest identified release.
Introduced change preserves existing owners: The pinned merge-base delta expands file segments and token endings to Unicode letters, marks, and numbers. Extension rules, line parsing, event dispatch, and path spelling remain with their existing implementations.
Findings None None.
Security None None.

How this fits together

Control UI converts file references in chat messages into workspace preview actions. Its Markdown parser classifies the destination before mouse or keyboard activation dispatches it to the existing file handler.

flowchart LR
  A[Chat Markdown] --> B[Decode link destination]
  B --> C{Workspace file reference?}
  C -->|Yes| D[File action with original path]
  C -->|No| E[Ordinary link handling]
  D --> F[Mouse or keyboard activation]
  F --> G[Workspace file preview]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +45, Docs +1. Total +46 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 5 5 0
Tests 3 52 7 +45
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 59 13 +46

Review metrics

None.

Technical review

Best possible solution:

Keep Unicode recognition in the shared file grammar while preserving original path bytes, existing navigation distinctions, and the workspace preview handler.

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

Yes: current main rejects qa-café/index.md in the shared grammar, leaving an ordinary navigation link; the supplied Chromium evidence demonstrates the corresponding user flow. This review did not execute a reproduction.

Is this the best way to solve the issue?

Yes: extending the existing grammar repairs all shared Markdown forms without introducing a second parser, navigation owner, or configuration option.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3c08384584f5.

Labels

Label justifications:

  • P2: Repairs a bounded chat navigation defect affecting workspace files with Unicode names.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after screenshots show the changed Markdown file actions and an actual accented-path file preview; the captured isolated Chromium account reports click, Enter, and Space success with a matched served bundle. The production grammar is byte-identical to the previously demonstrated head.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots show the changed Markdown file actions and an actual accented-path file preview; the captured isolated Chromium account reports click, Enter, and Space success with a matched served bundle. The production grammar is byte-identical to the previously demonstrated head.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots show the changed Markdown file actions and an actual accented-path file preview; the captured isolated Chromium account reports click, Enter, and Space success with a matched served bundle. The production grammar is byte-identical to the previously demonstrated head.

Evidence

What I checked:

  • Current main still needs the fix: The fetched main revision still restricts file segments to ASCII letters and numbers, rejecting the reported accented relative destination. (ui/src/components/markdown-file-links.ts:3, 3c08384584f5)
  • Latest release retains the same restriction: The v2026.9.4 source also contains the ASCII-only file grammar; the requested behavior is not already supplied by the latest identified release. (ui/src/components/markdown-file-links.ts:3, 3a9d69db306c)
  • Introduced change preserves existing owners: The pinned merge-base delta expands file segments and token endings to Unicode letters, marks, and numbers. Extension rules, line parsing, event dispatch, and path spelling remain with their existing implementations. (ui/src/components/markdown-file-links.ts:3, 2be13e514e8d)
  • Parser-to-preview causal path: Authored destinations are decoded before classification; recognized files lose href and receive file-action attributes. The rendered transcript dispatches those attributes through the existing workspace-file callback for clicks, Enter, and Space. (ui/src/components/markdown-parser.ts:386, 2be13e514e8d)
  • Inspected real UI proof: Inspected prepared proof-image-1.png, proof-image-2.png, and proof-image-3.png from the media manifest. They show ordinary links before, file-action presentation after, and actual qa-café/checklist.md content in the preview. The captured body and linked comment describe isolated Chromium execution, mouse/Enter/Space success, synthetic data, served-bundle matching, and delivery in the originating chat: fix(ui): accented workspace file links open an empty chat #148097 (comment).
  • Proof continuity across reviewed heads: GitHub contents reads at 5be8edb and the previous reviewed c5ce10a returned blob 2f9809c2578b3d8a0d7c9aedab8bf4afe1124489, matching the current production module. Local historical comparison failed fetching unavailable objects with HTTP 403; the bounded GitHub reads established module identity instead. Prior structured review contains no findings to re-raise. (ui/src/components/markdown-file-links.ts:3, 5be8edbabc5a)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-14T09:24:22.771Z sha 5be8edb :: needs changes before merge. :: none
  • reviewed 2026-09-14T09:50:02.250Z sha 5be8edb :: needs changes before merge. :: none
  • reviewed 2026-09-14T12:58:08.574Z sha c5ce10a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T13:40:32.179Z sha c5ce10a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T15:37:21.469Z sha c5ce10a :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 14, 2026
@steipete
steipete force-pushed the codex/qa-runtime-config-reentry branch from 075f2b3 to a25a14e Compare September 14, 2026 11:07
@steipete
steipete force-pushed the codex/qa-unicode-file-links branch from 5be8edb to b2f299c Compare September 14, 2026 11:11
Base automatically changed from codex/qa-runtime-config-reentry to main September 14, 2026 12:44
@steipete
steipete force-pushed the codex/qa-unicode-file-links branch from b2f299c to c5ce10a Compare September 14, 2026 12:45
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 14, 2026
@steipete steipete closed this Sep 14, 2026
@steipete steipete reopened this Sep 14, 2026
@steipete
steipete force-pushed the codex/qa-unicode-file-links branch from c5ce10a to 4608edb Compare September 14, 2026 16:09
Recognize accented, decomposed, and CJK path segments without changing file spelling or URL handling. Preserve workspace preview behavior for authored links, prose, code, and keyboard activation.
Recovery and provenance integration cases use the host-owned SQLite broker. Keep them in the existing isolated forked lane so real config writes reach their intended ownership assertions. Production admission and test assertions remain unchanged.
@steipete
steipete force-pushed the codex/qa-unicode-file-links branch from 4608edb to 2be13e5 Compare September 14, 2026 16:30
@steipete
steipete merged commit 90345c6 into main Sep 14, 2026
137 of 138 checks passed
@steipete
steipete deleted the codex/qa-unicode-file-links branch September 14, 2026 17:38
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
…48097)

* fix(ui): open Unicode workspace file references

Recognize accented, decomposed, and CJK path segments without changing file spelling or URL handling. Preserve workspace preview behavior for authored links, prose, code, and keyboard activation.

* test(wizard): route real config writes through database workers

Recovery and provenance integration cases use the host-owned SQLite broker. Keep them in the existing isolated forked lane so real config writes reach their intended ownership assertions. Production admission and test assertions remain unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

1 participant