feat(session): held 超时自动收口 + 状态胶囊模型名点击换绑

1) engine 新增 held sweeper:超过 agent.auto_complete_ms(默认 30min,0=关)自动
   held→completed,纯状态动作不清绑定,SSE 与手动断开同链路;扫描间隔随阈值自适应
   (生产≤60s,测试短阈值秒级)。示例配置同步。
2) 前端保持中/已终止时胶囊里的模型名可直接点击,复用选择模型弹窗换绑;
   该场景下隐藏冗余的独立「选择模型」按钮(completed 等无模型名场景保留)。
This commit is contained in:
2026-09-29 09:42:35 +08:00
parent 86862b9e51
commit b500ddce93
5 changed files with 58 additions and 8 deletions
+3
View File
@@ -833,6 +833,9 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
.status-pill.held { background: #fff4dc; color: #8a6400; }
.status-pill.queued { background: #e9edff; color: var(--active); }
.status-pill.cancelled { background: #fdecea; color: #b3382c; }
/* 状态胶囊里的模型名 = 「更换模型」入口(held/cancelled 下可点,与独立「选择模型」同一弹窗,见 sessions.js updatePhaseBar) */
.status-pill .pill-model { cursor: pointer; border-bottom: 1px dashed currentColor; }
.status-pill .pill-model:hover { opacity: .7; }
@keyframes pill-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
/* 微信绑定内联卡(账户页):登录码用服务端 SVG 内联渲染(非 <img>,无坏图帧);未就绪时占位不跳高 */
.wx-qr { display: flex; justify-content: center; align-items: center; margin: 10px 0 4px; min-height: 236px; }