Skip to content

[FEATURE]: Make local file paths clickable in terminal output #19005

@Xi0ng8

Description

@Xi0ng8

Problem

When opencode generates files (reports, documents, images, etc.), the file paths displayed in the terminal are not clickable. Users have to manually copy the path and run open <path> to view the files.

Current Behavior

File paths appear as plain text in the terminal, requiring manual copy-paste to open.

Expected Behavior

File paths should be rendered as clickable links using the file:// protocol, similar to how iTerm2, VS Code Terminal, and other modern CLI tools handle local paths.

Use Case

When running tasks that generate multiple files (reports, charts, documents), users need to quickly open and review these files. Currently, they must manually navigate and open each file.

Suggested Implementation

  1. Detect file paths in output
  2. Render using file:// protocol prefix for clickability
  3. Or provide a command like /open <filename> to open recent files

Environment

  • OS: macOS
  • Terminal: iTerm2 / Terminal.app
  • Use case: Generating reports, charts, and documentation files

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions