You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
V2 TUI: URL truncation in tool calls hides the hostname #55235
In OpenCode V2 TUI, long URLs in tool call summaries are truncated in the middle, sometimes hiding the entire hostname.
For example:
fetch [method=GET, url=https://ra...0.0/code/lib/cli/src/generate.ts]
This makes it impossible to determine which domain the agent is accessing without inspecting the full tool call.
Expected behavior
URL truncation should preserve the scheme and hostname, even when the available display width is limited.
For example:
fetch [method=GET, url=https://raw.githubusercontent.com/.../generate.ts]
The hostname is particularly important for understanding and auditing the agent's network activity.
Actual behavior
The URL is truncated without regard to its structure, potentially hiding the hostname while preserving less important portions of the path.
Related issues
Thanks for the report, @yoshi-taka, and for the screenshot!
To restate the request: when a tool-call summary line in the V2 TUI is too long, long URLs should be shortened in a way that keeps the scheme and hostname. For example, https://raw.githubusercontent.com/.../generate.ts rather than https://ra...0.0/code/lib/cli/src/generate.ts. That way you can always see which domain the agent is accessing.
I looked at the code. In v2.0.28 the summary line is built as tool [key=value, ...], and if it's too wide the whole line gets cut in the middle. That cut doesn't know there's a URL in it, so the hostname can end up hidden. The same behavior is still on the current main branch. Maintainers will consider making this URL-aware.
Activity
opencode-agent commentedon Oct 13, 2026
Thanks for the report, @yoshi-taka, and for the screenshot!
To restate the request: when a tool-call summary line in the V2 TUI is too long, long URLs should be shortened in a way that keeps the scheme and hostname. For example,
https://raw.githubusercontent.com/.../generate.tsrather thanhttps://ra...0.0/code/lib/cli/src/generate.ts. That way you can always see which domain the agent is accessing.I looked at the code. In v2.0.28 the summary line is built as
tool [key=value, ...], and if it's too wide the whole line gets cut in the middle. That cut doesn't know there's a URL in it, so the hostname can end up hidden. The same behavior is still on the current main branch. Maintainers will consider making this URL-aware.Related issues: