Commit 606c230
committed
feat(ai): add session history with visual state restoration
Add the ability to browse, resume, and delete past AI chat sessions.
Sessions are stored per-project using StateManager metadata and JSON
files on disk. The history dropdown shows recent sessions with relative
timestamps, and clicking one restores the full visual state (messages,
tool indicators, edits, errors, questions). Resumed sessions continue
the Claude conversation via the SDK resume option.
Also adds a project-switch warning when AI is streaming, resets the
chat UI on project open, and saves partial history when a query is
cancelled so it can be resumed later.1 parent 846def4 commit 606c230
6 files changed
Lines changed: 1082 additions & 8 deletions
File tree
- src-node
- src
- core-ai
- nls/root
- project
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
223 | 238 | | |
224 | 239 | | |
225 | 240 | | |
| |||
832 | 847 | | |
833 | 848 | | |
834 | 849 | | |
835 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
836 | 853 | | |
837 | 854 | | |
838 | 855 | | |
839 | | - | |
| 856 | + | |
840 | 857 | | |
841 | 858 | | |
842 | 859 | | |
| |||
0 commit comments