Skip to content

fix(ui): avoid truncating workspace paths in assistant text#14584

Merged
adamdotdevin merged 1 commit intodevfrom
fix/web-workspace-path-truncation-14557
Feb 26, 2026
Merged

fix(ui): avoid truncating workspace paths in assistant text#14584
adamdotdevin merged 1 commit intodevfrom
fix/web-workspace-path-truncation-14557

Conversation

@nexxeln
Copy link
Member

@nexxeln nexxeln commented Feb 21, 2026

Issue for this PR

Closes #14557

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes a UI truncation bug where assistant message text replaced every occurrence of the working directory (for example /workspace) and unintentionally broke inline code and markdown links.
This PR removes path rewriting from assistant freeform text and keeps path relativization only for path-specific UI labels, using a safer prefix-based trim.

How did you verify your code works?

N/A

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@adamdotdevin adamdotdevin merged commit 270d084 into dev Feb 26, 2026
11 checks passed
@adamdotdevin adamdotdevin deleted the fix/web-workspace-path-truncation-14557 branch February 26, 2026 21:42
figloalds pushed a commit to figloalds/opencode that referenced this pull request Feb 27, 2026
jonathanmiddleton pushed a commit to jonathanmiddleton/opencode that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[opencode web] some text disappeared。example:/workspace/projects/cnb. will show /projects/cnb

2 participants