Commit 8c06b4f
committed
feat(core): add session metadata support
Persist session metadata in the session store and expose it across the session APIs and SDK so clients can round-trip metadata during create, get, update, list, and fork operations.
Add a JSON metadata column to the session table, thread metadata through the session model/projectors, and normalize empty metadata responses to {}.
Support full metadata replacement on session update, add copyMetadata to session forks with default copy behavior, regenerate the session SDK surface, and cover the behavior with server/session tests plus a migration for existing databases.1 parent c57c531 commit 8c06b4f
11 files changed
Lines changed: 1684 additions & 3 deletions
File tree
- packages
- opencode
- migration/20260417072500_session-metadata
- src
- server/routes/instance
- session
- test
- server
- session
- sdk/js/src/v2/gen
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments