claudecodeui icon indicating copy to clipboard operation
claudecodeui copied to clipboard

Stop Button doesn't work

Open AlexanderHanff opened this issue 1 year ago • 4 comments

Not sure if this is a MacOS issue but when using claudecodeui in Brave Browser on MacOS, the red "Stop" button doesn't stop Claude (he just keeps on going).

Seems to be intermittent (although sadly most of the time it fails but it will sometimes (rarely) trigger).

This is a very expensive bug when Claude decides to go off the rails as it chews up tokens like crazy - we need our stop button to work.

AlexanderHanff avatar Jul 13 '25 00:07 AlexanderHanff

Hi @AlexanderHanff 👋 I'd like to help with this issue. Could you please assign it to me? I'll start investigating the Stop button behavior and work on a fix.

IDevSharma1 avatar Jul 13 '25 06:07 IDevSharma1

Thanks @IDevSharma1 that would be great !

viper151 avatar Jul 13 '25 07:07 viper151

I've opened a PR to fix the Stop button behavior using AbortController: #92. It reliably cancels generation now with UI feedback. Please let me know if anything needs tweaking.

IDevSharma1 avatar Jul 16 '25 12:07 IDevSharma1

This has now been fixed. #92

viper151 avatar Aug 12 '25 13:08 viper151