优化: L2统一状态机完整(ConvState持久化+事件暴露+前端status联合)

1a PerConvState.conv_state持久化(入口/reset/drop写收敛,CONV_STATE_ENABLED门控)
1b AiChatEvent加AiConvStateChanged变体,guard持app_handle在迁移点emit
1c 前端convStates真相源+停止按钮三态(status union)+MaxRoundsCard读conv_state
双轨过渡:enum视图与generating bool并行,off降级可回退
This commit is contained in:
2026-06-22 00:34:43 +08:00
parent d2cada97cd
commit cdb227f999
9 changed files with 264 additions and 13 deletions

View File

@@ -98,6 +98,9 @@ export default {
// ── Send ──
stopGenerating: 'Stop generating',
// L2 状态机停止按钮三态(ConvState 派生)
stopping: 'Stopping',
stopFailedRetry: 'Stop failed, click to retry',
// ── Input hint ──
inputHint: 'Enter to send · Shift+Enter for newline',

View File

@@ -98,6 +98,9 @@ export default {
// ── 发送 ──
stopGenerating: '停止生成',
// L2 状态机停止按钮三态(ConvState 派生)
stopping: '停止中',
stopFailedRetry: '停止失败,点击重试',
// ── 输入提示 ──
inputHint: 'Enter 发送 · Shift+Enter 换行',