mirror of
https://github.com/Hmbown/DeepSeek-TUI.git
synced 2026-09-03 06:50:13 +08:00
- Every session entry carries id + parentId, leafId tracks active position, in-memory tree projects from journal, context rebuilds root->leaf. - Tree operations as commands: /tree (render), /branch (move leaf only, never rewrites history), /fork (new session from any node, interactive picker per #576 via /fork picker), /resume (picker + foreign-session import/export container). - branch_summary and compaction entries are first-class SessionEntryKind variants (data shape lands now, strategies deferred). - Spawn-depth tracking on SessionMetadata and Journal; fork increments. - Foreign-session import/export via SessionImportContainer so /resume can ingest sessions from other agents. - SavedSession journal migration: old linear messages -> journal entries with linked parent chain, leaf = last; new sessions write both journal and derived messages for compat. Atomic write/fsync/crash-checkpoint and MAX_SESSIONS=50 preserved. - Shares entry shape with compaction (same SessionEntry envelope). Co-depends on #5261 engine split (core journal placeholder already landed in parallel work on same branch).
26 KiB
Executable File
26 KiB
Executable File