(
message: string,
imageMap?: Map<string, Buffer>,
)
| 666 | }; |
| 667 | |
| 668 | const handleUserMessage = async ( |
| 669 | message: string, |
| 670 | imageMap?: Map<string, Buffer>, |
| 671 | ) => { |
| 672 | // Check if this is a resume request (empty message after interruption) |
| 673 | if (await handleResumeRequest(message)) { |
| 674 | return; |
| 675 | } |
| 676 | |
| 677 | // Clear interrupted state if user types a new message |
| 678 | if (wasInterrupted && message !== "") { |
| 679 | setWasInterrupted(false); |
| 680 | } |
| 681 | |
| 682 | // Use the common message processing logic |
| 683 | await processMessage(message, imageMap, false); |
| 684 | }; |
| 685 | |
| 686 | const handleInterrupt = () => { |
| 687 | // In remote mode, send interrupt signal to server |
no test coverage detected