generated from nhcarrigan/template
fix: properly track isProcessing state to block duplicate message submission
The isProcessing field existed on conversations but was never set to true in production code, making all submission guards effectively no-ops. - Add setProcessingForConversation to conversations store and claude.ts - Set isProcessing=true after send_prompt succeeds in handleSubmit and handleQuickAction - Set isProcessing=false when claude:state emits idle, success, or error - Add tests for the new setProcessingForConversation logic
This commit is contained in:
@@ -41,6 +41,7 @@ export const claudeStore = {
|
||||
setWorkingDirectory: conversationsStore.setWorkingDirectory,
|
||||
setWorkingDirectoryForConversation: conversationsStore.setWorkingDirectoryForConversation,
|
||||
setProcessing: conversationsStore.setProcessing,
|
||||
setProcessingForConversation: conversationsStore.setProcessingForConversation,
|
||||
addLine: conversationsStore.addLine,
|
||||
addLineToConversation: conversationsStore.addLineToConversation,
|
||||
updateLine: conversationsStore.updateLine,
|
||||
|
||||
Reference in New Issue
Block a user