Repository navigation
fix(ui): accented workspace file links open an empty chat - #148097
Conversation
|
🦞👀 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. |
|
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. |
be9b713 to
075f2b3
Compare
2f484c5 to
5be8edb
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 12:55 PM ET / 16:55 UTC (Revision 6). ClawSweeper reviewWhat this changesRecognizes 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 Review scores
Verification
How this fits togetherControl 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +45, Docs +1. Total +46 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
075f2b3 to
a25a14e
Compare
5be8edb to
b2f299c
Compare
b2f299c to
c5ce10a
Compare
c5ce10a to
4608edb
Compare
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.
4608edb to
2be13e5
Compare
|
Merged via squash.
|
…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.



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.mdnavigated 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
4608edb47bebrebases the identical Unicode fix onto mainac7de4a3427eand 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
2be13e514e8dresolves the inventory overlap with main6fd4d0d52a9f: 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
2be13e514e8dpassed CI34869224478, including the required gate, with no failed jobs. Latest exact-head ClawSweeper review has no actionable findings. A combined real-key replay on integration44bc709547aalso 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.