diff options
| author | Dax Raad <[email protected]> | 2025-05-29 15:10:23 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-29 15:10:23 -0400 |
| commit | 4fa4246c106ba32fa097211205bb900890c95416 (patch) | |
| tree | e6c42972f2e57c55cf0d2b639b2c24847086c187 | |
| parent | 0fe72864f294ead2d989dbc33f8002f68d44e853 (diff) | |
| download | opencode-4fa4246c106ba32fa097211205bb900890c95416.tar.gz opencode-4fa4246c106ba32fa097211205bb900890c95416.zip | |
Fix working indicator to only show when message is incomplete
🤖 Generated with opencode
Co-Authored-By: opencode <[email protected]>
| -rw-r--r-- | internal/tui/components/chat/messages.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/tui/components/chat/messages.go b/internal/tui/components/chat/messages.go index ec2cf2cbf..f1b35935c 100644 --- a/internal/tui/components/chat/messages.go +++ b/internal/tui/components/chat/messages.go @@ -238,7 +238,12 @@ func (m *messagesCmp) working() string { t := theme.CurrentTheme() baseStyle := styles.BaseStyle() - task := "Working..." + task := "" + + lastMessage := m.app.Messages[len(m.app.Messages)-1] + if lastMessage.Metadata.Time.Completed == nil { + task = "Working..." + } // lastMessage := m.app.Messages[len(m.app.Messages)-1] // if hasToolsWithoutResponse(m.app.Messages) { // task = "Waiting for tool response..." |
