xonecas.io
62159
Sy

symb / commit 7c2c2da

fix: click file paths to open on tool response

xonecas2026-02-14 7c2c2da4125dae01acf45b7d187c2219bb816771 parent e5da8c4

1 file changed

internal/tui/mouse.go+9−1
@@ -239,7 +239,15 @@ func (m *Model) isClickableLine(lineIdx int) bool {
239239 return false
240240 }
241241 if m.convEntries[entryIdx].kind == entryToolResult {
242- return true
242+ // Entries with a file path (Read/Edit/Create) are always clickable.
243+ if m.convEntries[entryIdx].filePath != "" {
244+ return true
245+ }
246+ // Others (Grep/Shell) only if the line itself contains a file path.
247+ if lineIdx < len(lines) {
248+ return filePathRe.MatchString(ansi.Strip(lines[lineIdx]))
249+ }
250+ return false
243251 }
244252 if m.convEntries[entryIdx].kind == entryUndo {
245253 return true