Repository navigation
fix(ui): open workspace links with spaces and emoji - #152179
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 7:07 PM ET / 23:07 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR broadens explicit Markdown workspace-file links to handle spaces, emoji, and punctuation, preserves conservative prose detection, and updates documentation and regression coverage. Merge readiness✅ Ready for maintainer review This remains a useful, well-supported fix: current main and the latest release still reject the affected filenames. No actionable introduced defects were found, and the inspected before/after evidence supports the intended behavior. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns file references in chat Markdown into workspace-file buttons. Activating a button requests the file through the existing session-scoped Gateway API and displays it beside the conversation. flowchart TD
A[Chat Markdown] --> B[Classify link destination]
B --> C[Workspace file button]
B --> D[URL or session link]
C --> E[Mouse or keyboard activation]
E --> F[Session workspace file request]
F --> G[File preview beside chat]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +105, Docs +3. Total +108 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep filename recognition in the shared Markdown owner while preserving existing session routing, workspace access checks, and conservative automatic detection. Do we have a high-confidence way to reproduce the issue? Yes, from source: render an encoded workspace link such as notes/caf%C3%A9%20note.md on current main and its filename fails file classification. Supplied before/after UI evidence corroborates the failure; this review did not execute target code. Is this the best way to solve the issue? Yes. Broadening only explicitly delimited filenames repairs the existing flow without introducing another parser owner or relaxing prose detection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aa6d12cc1041. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
…rent-main-20260918 * origin/main: (1925 commits) fix(ui): preserve person picker selection and profile photos (#152194) feat(meetings): summarize meetings during live capture (#151957) refactor(watch): share delivery status text formatting (#152228) fix(skills): detach idle reviews from foreground plugin scope (#152235) fix(mcp): stop cancelled question tests leaking into later cases (#152215) fix: show pasted text as compact chat chips (#151618) refactor(config): share diagnostic container scanning (#149099) fix(whatsapp): admit debounce candidates independently (#112001) fix(release): qualify 2026.7.34 frozen SDK (#152230) fix(sessions): notify Home about new sessions by default (#152068) fix(ui): open workspace links with spaces and emoji (#152179) fix(update): reconcile completed updates after interrupted verification (#152202) fix: reduce repeated update validation for large agent fleets (#151678) docs: clarify WebChat commentary attachment compatibility (#152225) fix(worktrees): keep provisioning inspection under the Git output cap (#150532) fix(ui): unify fullscreen widget menu typography (#152223) test(gateway): synchronize unstable task registry scans (#152213) fix: restore automation creation for remote administrators (#151291) improve: defer internal agent-turn execution imports until use (#151935) fix(agents): resume private child results in channel conversations (#152207) ...
Related: #148097
What Problem This Solves
Fixes explicitly authored workspace file links navigating away from the current chat when a filename contains spaces, emoji, percent signs, or ordinary punctuation. In live QA, the accented and emoji filenames opened empty chats; the percent-sign filename opened an unauthorized document page instead of the file.
User Impact
Encoded Markdown links such as
[Read notes](notes/caf%C3%A9%20note.md)open the intended workspace file. Filename spelling, including compound emoji and literal percent sequences, is preserved.Why This Change Was Made
Explicit Markdown destinations already delimit the filename, so they now use a broader filename grammar than paths detected in prose or inline code. Existing URL/session classification, line suffixes, and workspace access checks stay with their current owners. The existing file-link test group moves intact into its own sibling file to stay within the line cap.
Evidence
The matched candidate Gateway/UI build is verified and healthy. All seven existing files open through the real browser with exact sidebar paths/content and the unchanged original chat route: café, Japanese, emoji, percent sign, compound family emoji, punctuation, and a literal
%20filename. Mouse, native Enter, and native Space activation are covered. Both inspected screenshots have been visibly delivered in the originating chat and verified rendered in this PR (both images complete at 2832 × 1414). The UI live and screenshot gates are complete. Native preparation, merge, remote verification, and cleanup completed; landed as9a57a35aaf3ee516bea0955e27d6116af59f44f6.The first local browser invocation stopped before tests because the host's temporary filesystem quota was exhausted; the unchanged test passed using the task's home temporary directory. No deadline, assertion, or baseline was weakened.
Before
Clicking the encoded
café note.mdworkspace link navigates to an empty chat instead of opening the existing file.After
The same encoded café link opens the existing file with its exact content in Files and retains the original chat. The matched candidate renders all seven encoded links as workspace buttons with exact file paths.
All seven actual file opens passed, and both public images were verified fully rendered.