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
- Detect file paths in output
- Render using
file:// protocol prefix for clickability
- 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
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
file://protocol prefix for clickability/open <filename>to open recent filesEnvironment