@@ -83,6 +83,11 @@ func (m Model) handleMouse(msg tea.MouseMsg) (tea.Model, tea.Cmd) {
8383 }
8484 }
8585
86+ // --- Hover: clear when outside conv area --------------------------------
87+ if _, isMotion := msg.(tea.MouseMotionMsg); isMotion && !inRect(x, y, m.layout.conv) {
88+ m.hoverConvLine = -1
89+ }
90+
8691 // --- Editor: forward with original coords (left pane starts at 0) -------
8792 if inRect(x, y, m.layout.editor) {
8893 var cmd tea.Cmd
@@ -121,6 +126,15 @@ func (m Model) handleMouse(msg tea.MouseMsg) (tea.Model, tea.Cmd) {
121126 if m.convDragging && m.convSel != nil && totalLines > 0 {
122127 m.convSel.active = m.convPosFromScreen(x, y, totalLines)
123128 }
129+ // Update hover state
130+ if totalLines > 0 {
131+ lineIdx := m.visibleStartLine() + (y - m.layout.conv.Min.Y)
132+ if lineIdx >= 0 && lineIdx < totalLines && m.isClickableLine(lineIdx) {
133+ m.hoverConvLine = lineIdx
134+ } else {
135+ m.hoverConvLine = -1
136+ }
137+ }
124138
125139 case tea.MouseReleaseMsg:
126140 m.convDragging = false
@@ -188,6 +202,28 @@ func (m Model) translateMouse(msg tea.MouseMsg, offX, offY int) tea.Msg {
188202 return msg
189203 }
190204
205+// isClickableLine returns true if the wrapped line at lineIdx is clickable
206+// (tool result entry or contains a file path reference).
207+func (m *Model) isClickableLine(lineIdx int) bool {
208+ lines := m.wrappedConvLines() // ensures convLineSource is also fresh
209+ src := m.convLineSource
210+ if lineIdx < 0 || lineIdx >= len(src) {
211+ return false
212+ }
213+ entryIdx := src[lineIdx]
214+ if entryIdx < 0 || entryIdx >= len(m.convEntries) {
215+ return false
216+ }
217+ if m.convEntries[entryIdx].kind == entryToolResult {
218+ return true
219+ }
220+ if lineIdx >= len(lines) {
221+ return false
222+ }
223+ plain := ansi.Strip(lines[lineIdx])
224+ return filePathRe.MatchString(plain)
225+}
226+
191227 // handleConvClick resolves a click on a wrapped conversation line.
192228 // If the line belongs to a tool result entry, the full content is opened in
193229 // the editor. Otherwise, if the line contains a file path reference