Skip to content

Conversation

@krissetto
Copy link
Contributor

Fixes stream cancellation logic in the TUI by stopping and removing all spinners, allowing the user to send followup messages, and adds a message indicating to the user that the stream has been canceled


Screenshot

Screenshot From 2025-10-24 13-49-30

Closes #597

@krissetto krissetto self-assigned this Oct 24, 2025
@krissetto krissetto requested a review from a team as a code owner October 24, 2025 12:04
ScrollToBottom() tea.Cmd
AddShellOutputMessage(content string) tea.Cmd
AddSystemMessage(content string) tea.Cmd
RemoveSpinner()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of making this public it would be nicer maybe to have a command that is sent down to all the components that tell them that the stream is cancelled, WDYT? Just asking

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, I changed this

Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one quesion

Also adds a message indicating that the stream has been canceled

Signed-off-by: Christopher Petito <[email protected]>
@krissetto krissetto force-pushed the fix-stream-cancelation-tui branch from f157d62 to b70d802 Compare October 24, 2025 12:23
@rumpl rumpl merged commit 2514c3c into docker:main Oct 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cancelling a stream breaks the TUI

2 participants