wip(agent): P0进度快照(会话历史/AskUser/取消)

This commit is contained in:
2026-06-23 15:18:02 +08:00
parent bd129fc160
commit c177e0ce77
7 changed files with 9966 additions and 3 deletions
@@ -0,0 +1,9 @@
-- Agent Workbench conversation history.
--
-- Adds a `transcript` column holding the full multi-turn message history of an
-- agent session as a JSON array (the SDK's `Vec<Message>`, serde-serialized).
-- Each `/api/agent/chat` round-trip loads this transcript into the agent before
-- the turn and writes the updated transcript back when the turn completes, so a
-- session resumed by id sees everything that happened in prior turns. NULL/empty
-- means a fresh session with no history yet.
ALTER TABLE agent_sessions ADD COLUMN transcript TEXT;