Add quick actions to sessions
Rename, AI retitle, pin and archive, reached from the "..." button on every session row and in the chat header. Sessions carry one lifecycle state (normal, pinned, archived) rather than independent flags, so the sidebar groups them without an unrepresentable pinned-and-archived case. The AI retitle runs as a one-shot against the transient KV cache through a new CheckpointTarget::OneShot, leaving no session or checkpoint behind while still reporting as local work in the metrics. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1
migrations/20260725120000_add_session_state/down.sql
Normal file
1
migrations/20260725120000_add_session_state/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE sessions DROP COLUMN state;
|
||||
2
migrations/20260725120000_add_session_state/up.sql
Normal file
2
migrations/20260725120000_add_session_state/up.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE sessions ADD COLUMN state TEXT NOT NULL DEFAULT 'normal'
|
||||
CHECK (state IN ('normal', 'pinned', 'archived'));
|
||||
Reference in New Issue
Block a user