From da5c2839d7a682e217cc443b9e54e2713c6eb3cb Mon Sep 17 00:00:00 2001 From: Gustave-241021 <2909789120@qq.com> Date: Mon, 8 Dec 2025 22:18:06 +0800 Subject: [PATCH] fix: ignore mouse clicks when `isProjectInit` is active (#1561) --- internal/tui/page/chat/chat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tui/page/chat/chat.go b/internal/tui/page/chat/chat.go index f09f9782b0c77207fc9b96209f5714263236c11f..1d638a6f8b5fef587256d1b9a7d8e6fd805a787e 100644 --- a/internal/tui/page/chat/chat.go +++ b/internal/tui/page/chat/chat.go @@ -181,7 +181,7 @@ func (p *chatPage) Update(msg tea.Msg) (util.Model, tea.Cmd) { } return p, nil case tea.MouseClickMsg: - if p.isOnboarding { + if p.isOnboarding || p.isProjectInit { return p, nil } if p.compact { @@ -210,7 +210,7 @@ func (p *chatPage) Update(msg tea.Msg) (util.Model, tea.Cmd) { } return p, nil case tea.MouseReleaseMsg: - if p.isOnboarding { + if p.isOnboarding || p.isProjectInit { return p, nil } if p.compact {