Skip to content

fix(ui): open workspace links with spaces and emoji - #152179

Merged
steipete merged 2 commits into
mainfrom
codex/authored-workspace-links
Sep 18, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/authored-workspace-links

Conversation

@steipete

@steipete steipete commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Original parser regressions failed for the intended missing file-link classification. All nine original transcript click/Enter/Space cases for the three broken filenames failed; accented-directory and Japanese controls passed.
  • The same maintained browser regression fails on the original parser and passes with the fix, verifying exact file requests, returned content, target line, and unchanged chat URL.
  • Final local proof: 194 Markdown cases, 41 registered transcript cases, and all 7 maintained workspace-file browser cases passed.
  • All three canonical UI test type graphs, UI production typing, scoped typed lint/style/format, and the remaining selected changed-check guards passed. Unrelated core test graphs were omitted for this UI-only change.
  • Independent Codex review found no actionable P0–P2 issues. The fresh integration review raised one incorrect premise about bare line-suffixed filenames; source inspection and all seven existing filename-matrix cases confirm that branch already uses the authored grammar. No code change was needed.
  • The original CI run passed all UI jobs but failed the unchanged native PR-provisioning test. Separate PR #152209 repaired and proved that supervisor boundary and is now landed. This branch incorporates that main commit through a normal merge; fresh exact-head CI35403998238 is fully green.
  • After integration, all seven maintained browser cases and the seven-name parser matrix pass. The five UI source/test files, parser/activation callers, and dependency lockfile are unchanged; only a separate upstream attachment-progress documentation paragraph was merged.

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 %20 filename. 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 as 9a57a35aaf3ee516bea0955e27d6116af59f44f6.

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.md workspace link navigates to an empty chat instead of opening the existing file.

Before: the café workspace-file link opens an empty chat

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.

After: the café workspace-file link opens the existing file in the current chat

All seven actual file opens passed, and both public images were verified fully rendered.

@clawsweeper

clawsweeper Bot commented Sep 18, 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
steipete marked this pull request as ready for review September 18, 2026 21:42
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 18, 2026
@steipete steipete changed the title fix(ui): workspace links with spaces and emoji navigate away fix(ui): open workspace links with spaces and emoji Sep 18, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 7:07 PM ET / 23:07 UTC (Revision 5).

ClawSweeper review

What this changes

The 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
Reviewed head: 31d96667532d13241b301391c7185316595fbda3

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level repair with strong visible proof, preserved routing boundaries, and useful regression coverage.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots directly show the changed Markdown classification outcome: the café link opens actual file content beside the original conversation instead of an empty chat. The captured body reports matched-build real-browser verification of all seven filename forms and mouse/keyboard activation; maintained browser tests provide supplemental coverage.
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 directly show the changed Markdown classification outcome: the café link opens actual file content beside the original conversation instead of an empty chat. The captured body reports matched-build real-browser verification of all seven filename forms and mouse/keyboard activation; maintained browser tests provide supplemental coverage.
Evidence reviewed 8 items Focused production change: The introduced parser change selects a broader segment grammar only for authored destinations; scanned prose and inline code retain their existing grammar. Bare filenames and line-suffixed filenames both use the selected grammar.
Still necessary on current main: Fetched main still shares the restrictive letter/mark/number filename segments between authored links and scanned text, excluding the spaces, percent signs, and emoji addressed here.
Latest-release comparison: The supplied latest release, v2026.9.4, uses the earlier ASCII-only segment grammar and does not contain this repair. The release file was inspected through GitHub REST after local historical-object reads failed.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +105, Docs +3. Total +108 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 1 13 13 0
Tests 4 484 379 +105
Docs 1 4 1 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 501 393 +108

Review metrics

Metric Value Why it matters
Production versus test growth Production net 0 lines; tests net +105 lines The larger displayed diff primarily relocates existing tests while expanding meaningful filename and activation coverage.

Technical review

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

Labels

Label justifications:

  • P2: This fixes a bounded workspace-link navigation defect without evidence of a broader runtime or onboarding outage.
  • 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 directly show the changed Markdown classification outcome: the café link opens actual file content beside the original conversation instead of an empty chat. The captured body reports matched-build real-browser verification of all seven filename forms and mouse/keyboard activation; maintained browser tests provide supplemental coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots directly show the changed Markdown classification outcome: the café link opens actual file content beside the original conversation instead of an empty chat. The captured body reports matched-build real-browser verification of all seven filename forms and mouse/keyboard activation; maintained browser tests provide supplemental coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots directly show the changed Markdown classification outcome: the café link opens actual file content beside the original conversation instead of an empty chat. The captured body reports matched-build real-browser verification of all seven filename forms and mouse/keyboard activation; maintained browser tests provide supplemental coverage.

Evidence

What I checked:

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 (4 earlier review cycles)
  • reviewed 2026-09-18T21:52:32.874Z sha d3f3025 :: blocked before merge. :: none
  • reviewed 2026-09-18T21:58:37.943Z sha d3f3025 :: needs changes before merge. :: none
  • reviewed 2026-09-18T22:05:11.562Z sha d3f3025 :: blocked before merge. :: none
  • reviewed 2026-09-18T22:12:08.958Z sha d3f3025 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 18, 2026
@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 18, 2026
@steipete
steipete merged commit 9a57a35 into main Sep 18, 2026
163 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the codex/authored-workspace-links branch September 18, 2026 23:24
vincentkoc added a commit that referenced this pull request Sep 18, 2026
…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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
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: L 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