Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(agent): keep the chat composer focused while streaming

Amruth Pillai7c7dbaf21d05
diff --git a/apps/web/src/routes/agent/-components/agent-chat.tsx b/apps/web/src/routes/agent/-components/agent-chat.tsx
index dc0596248..272e7ddea 100644
--- a/apps/web/src/routes/agent/-components/agent-chat.tsx
+++ b/apps/web/src/routes/agent/-components/agent-chat.tsx
@@ -1079,7 +1079,9 @@ function AgentChatComposer({
<Textarea
value={input}
rows={1}
- disabled={isReadOnly || isStreaming}
+ // Not disabled while streaming: the browser blurs a disabled field, so the caret would
+ // jump out of the composer on every send. `send` already ignores calls mid-stream.
+ disabled={isReadOnly}
onChange={(event) => onInputChange(event.target.value)}
onKeyDown={(event) => {
if (event.nativeEvent.isComposing) return;