修复: max_iterations 不收敛卡死 + stopBtnState 残留红

This commit is contained in:
lxy
2026-07-21 00:31:59 +08:00
parent 0b68c5bed9
commit 365af554da
3 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -244,8 +244,8 @@ const stopBtnState = computed<'idle' | 'stop' | 'stopping' | 'retry'>(() => {
if (cs === 'stopping') return 'stopping'
if (cs === 'error') return 'retry'
if (cs === 'generating' || cs === 'compressed') return 'stop'
// conv_state 未收到(idle 或 null)→ 回退旧 streaming bool
return store.state.streaming ? 'stop' : 'idle'
// cs === null (conv_state idle 收敛删项) 或 cs === 'idle' → 发送态
return 'idle'
})
// ── 技能 `/` 联想 ──