Skip to content

Commit 3be7d1c

Browse files
committed
core: track agent and model used in each session
Store the active agent and model in the session table so users can see which configuration was used when browsing session history. This helps identify sessions that used specific agents or models for easier filtering and organization.
1 parent 0983235 commit 3be7d1c

12 files changed

Lines changed: 1822 additions & 75 deletions

File tree

packages/opencode/migration/20260428004200_add_session_path/snapshot.json

Lines changed: 124 additions & 52 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE `session` ADD `agent` text;--> statement-breakpoint
2+
ALTER TABLE `session` ADD `model` text;

0 commit comments

Comments
 (0)