goose icon indicating copy to clipboard operation
goose copied to clipboard

CLI sometimes exits with a single Ctrl +C command (Ubuntu 25.04)

Open danielrosehill opened this issue 4 months ago • 2 comments

Title: Inconsistent Interrupt Behavior in Goose CLI

Description: While using the Goose CLI on Ubuntu 25.04, I have encountered an inconsistency with the interrupt behavior. Typically, pressing Ctrl-C should stop the current output without exiting the CLI. However, occasionally, a single Ctrl-C behaves as if two Ctrl-Cs were pressed, causing the CLI to exit and resulting in loss of chat history.

Steps to Reproduce:

  1. Run Goose CLI on Ubuntu 25.04.
  2. Begin a process that generates ongoing output.
  3. Press Ctrl-C to interrupt the output.
  4. Observe whether the CLI stops the output or exits completely.

Expected Behavior: Pressing Ctrl-C should stop the ongoing output without closing the CLI, preserving the chat history.

Actual Behavior: Inconsistent behavior:

  • Sometimes, the CLI stops the output as expected.
  • Occasionally, the CLI exits unexpectedly, losing the chat history.

Environment:

  • Operating System: Ubuntu 25.04

Additional Information: The issue seems to be intermittent and does not occur consistently. A clear pattern or specific trigger for the behavior has not yet been identified. Further investigation is required to determine underlying cause.

danielrosehill avatar Aug 21 '25 20:08 danielrosehill

hmm, I can't reproduce this. do you have any more thoughts on how we could consistently?

DOsinga avatar Oct 06 '25 17:10 DOsinga

looks like we can reproduce this. you just have to be fast enough

DOsinga avatar Oct 31 '25 19:10 DOsinga