Skip to content

Commit 1fb8bfb

Browse files
committed
style(tui): fix staticcheck deprecations in tool-step expansion
1 parent e053470 commit 1fb8bfb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/tui/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
304304
return m, nil
305305

306306
case tea.MouseMsg:
307-
if msg.Type == tea.MouseLeft && m.panel == panelNone && !m.ac.open {
307+
if msg.Action == tea.MouseActionPress && msg.Button == tea.MouseButtonLeft && m.panel == panelNone && !m.ac.open {
308308
// Viewport content begins below the header (2 rows).
309309
top := 2
310310
if msg.Y >= top && msg.Y < top+m.vp.Height {

internal/tui/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func (m *Model) renderMessage(msg message, msgIdx, lineOffset int) (string, []st
291291
}
292292
thinkingLines := 0
293293
if t := strings.TrimSpace(thinking); t != "" {
294-
line := th.thinkStyle.Copy().Width(max(m.vp.Width-4, 8)).Render("… " + collapse(t))
294+
line := th.thinkStyle.Width(max(m.vp.Width-4, 8)).Render("… " + collapse(t))
295295
b.WriteString(line)
296296
thinkingLines = lineCount(line)
297297
}

0 commit comments

Comments
 (0)