优化绑定旧模型

This commit is contained in:
2026-09-02 11:17:43 +08:00
parent 0cec940a75
commit 853bcdfece
4 changed files with 39 additions and 8 deletions
+2 -1
View File
@@ -556,7 +556,8 @@ CREATE TABLE sessions (
title TEXT DEFAULT '', -- 会话标题(可由 AI 生成或用户填写)
status TEXT NOT NULL, -- queued | active | held | completed | cancelled
phase TEXT NOT NULL DEFAULT 'planning', -- planning | execution
model_id TEXT, -- 绑定的模型 ID(ds1/ds2/ds3),排队时为空
model_id TEXT, -- 当前绑定的模型 ID(ds1/ds2/ds3),释放/排队时为空
last_model_id TEXT, -- 最近用过的模型;释放后新消息优先回绑,被占才另选空闲
created_at INTEGER NOT NULL,
updated_at INTEGER NOT NULL,
completed_at INTEGER,