File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -84,21 +84,20 @@ export async function ensureSessionInitialized(
8484 logger . info ( "session ID = " + sessionId )
8585 logger . info ( "Initializing session state" , { sessionId : sessionId } )
8686
87- // Clear previous session data
8887 resetSessionState ( state )
8988 state . sessionId = sessionId
9089
9190 const isSubAgent = await isSubAgentSession ( client , sessionId )
9291 state . isSubAgent = isSubAgent
9392 logger . info ( "isSubAgent = " + isSubAgent )
9493
95- // Load session data from storage
94+ state . lastCompaction = findLastCompactionTimestamp ( messages )
95+
9696 const persisted = await loadSessionState ( sessionId , logger )
9797 if ( persisted === null ) {
9898 return ;
9999 }
100100
101- // Populate state with loaded data
102101 state . prune = {
103102 toolIds : persisted . prune . toolIds || [ ]
104103 }
You can’t perform that action at this time.
0 commit comments