The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): show the next clarify question after a chat-bar answer
xxxigm448b319f33cc
diff --git a/apps/desktop/src/components/assistant-ui/clarify/index.tsx b/apps/desktop/src/components/assistant-ui/clarify/index.tsxindex dd12005f82a..1bb815a7392 100644--- a/apps/desktop/src/components/assistant-ui/clarify/index.tsx+++ b/apps/desktop/src/components/assistant-ui/clarify/index.tsx@@ -47,12 +47,18 @@ function ClarifyToolLive(props: ToolCallMessagePartProps) {const [answered, setAnswered] = useState(false)const settledResults = useStore($settledClarifyResults)const requestId = requestIdByToolCall.get(rowKey)- const settledResult = requestId && request?.requestId !== requestId ? settledResults[requestId] : undefined+ // The chat bar settles a one-question card as soon as it is answered. The+ // gateway then sends the next question as a new request on this same row.+ // That live request replaces the settlement, or the next question never+ // appears and the next chat-bar line is taken as its answer.+ const nextRequest = Boolean(request && request.requestId !== requestId)- if (request && !settledResult && request.requestId !== requestId) {+ if (request && nextRequest) {requestIdByToolCall.set(rowKey, request.requestId)}+ const settledResult = !nextRequest && requestId ? settledResults[requestId] : undefined+const undelivered = useUndeliveredClarify(sessionId, messageRunning && !request && !answered && !settledResult)if (settledResult) {