Skip to content

fix(cli): hide root workdir suffix in tool output#28060

Open
samiralibabic wants to merge 1 commit into
anomalyco:devfrom
samiralibabic:fix/root-workdir-tool-title
Open

fix(cli): hide root workdir suffix in tool output#28060
samiralibabic wants to merge 1 commit into
anomalyco:devfrom
samiralibabic:fix/root-workdir-tool-title

Conversation

@samiralibabic
Copy link
Copy Markdown

@samiralibabic samiralibabic commented May 17, 2026

Issue for this PR

Closes #28058

Type of change

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

What does this PR do?

Suppresses the tool-display location suffix when the formatted workdir/path is .. This keeps root workdirs from rendering noisy headers like in ., while preserving meaningful locations such as in apps/api for Bash, Glob, and Grep display paths.

How did you verify your code works?

  • bun test test/cli/run/tool.test.ts test/cli/run/scrollback.surface.test.ts (16 pass, 0 fail)
  • bun typecheck (passes)
  • bun prettier --check packages/opencode/src/cli/cmd/run/tool.ts packages/opencode/test/cli/run/tool.test.ts (passes)
  • git diff --check (passes)

Screenshots / recordings

N/A. This is CLI transcript text formatting covered by tests.

Checklist

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

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tool transcript headers render root workdir as in .

1 participant