Skip to content

fix: treating SIGINT(ctrl+c) as timeout.#918

Merged
caarlos0 merged 1 commit intocharmbracelet:mainfrom
arithmeticmean:main
Jun 10, 2025
Merged

fix: treating SIGINT(ctrl+c) as timeout.#918
caarlos0 merged 1 commit intocharmbracelet:mainfrom
arithmeticmean:main

Conversation

@arithmeticmean
Copy link
Copy Markdown
Contributor

Fixes #917

fix logic to handle interrupt before timeout in error checking.

  • Reorder conditions to check ErrInterrupted before ErrProgramKilled
  • Prevents Ctrl+C from being incorrectly treated as timeout

- Reorder conditions to check ErrInterrupted before ErrProgramKilled
- Prevents Ctrl+C from being incorrectly treated as timeout
@arithmeticmean arithmeticmean requested a review from a team as a code owner June 10, 2025 14:15
@arithmeticmean arithmeticmean requested review from bashbunni and removed request for a team June 10, 2025 14:15
@caarlos0 caarlos0 merged commit 8081f74 into charmbracelet:main Jun 10, 2025
@caarlos0
Copy link
Copy Markdown
Contributor

Good catch - thank you!

@caarlos0 caarlos0 added the bug Something isn't working label Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in gum 0.16.1: gum exits code 124 and "timed out" on ^C

3 participants