fix(ui): Stop button shows Send during tool execution

This commit is contained in:
chziyue
2026-03-25 22:57:34 +08:00
committed by Radek Sienkiewicz
parent 54cd0859d3
commit 0ed29fcc55

View File

@@ -893,7 +893,7 @@ function renderSlashMenu(
export function renderChat(props: ChatProps) {
const canCompose = props.connected;
const isBusy = props.sending || props.stream !== null;
const isBusy = props.sending || props.stream !== null || props.canAbort;
const canAbort = Boolean(props.canAbort && props.onAbort);
const activeSession = props.sessions?.sessions?.find((row) => row.key === props.sessionKey);
const reasoningLevel = activeSession?.reasoningLevel ?? "off";