mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-05 21:32:46 +02:00
Handle compose box clearing in copilot
This commit is contained in:
parent
2e9a81dfba
commit
2a5176119a
1 changed files with 4 additions and 1 deletions
|
|
@ -68,9 +68,12 @@ const App = forwardRef(function App({
|
|||
function handleUserMessage(prompt: string) {
|
||||
setMessages([...messages, {
|
||||
role: 'user',
|
||||
content: prompt,
|
||||
content: prompt
|
||||
}]);
|
||||
setResponseError(null);
|
||||
// Set loading immediately after adding user message
|
||||
// This ensures ComposeBox clears and disables right away
|
||||
setLoadingResponse(true);
|
||||
}
|
||||
|
||||
const handleApplyChange = useCallback((
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue