File tree Expand file tree Collapse file tree 4 files changed +0
-10
lines changed
Expand file tree Collapse file tree 4 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ export function createSessionState(): SessionState {
7676 } ,
7777 toolParameters : new Map < string , ToolParameterEntry > ( ) ,
7878 toolIdList : [ ] ,
79- lastToolPrune : false ,
8079 lastCompaction : 0 ,
8180 currentTurn : 0 ,
8281 variant : undefined ,
@@ -102,7 +101,6 @@ export function resetSessionState(state: SessionState): void {
102101 }
103102 state . toolParameters . clear ( )
104103 state . toolIdList = [ ]
105- state . lastToolPrune = false
106104 state . lastCompaction = 0
107105 state . currentTurn = 0
108106 state . variant = undefined
Original file line number Diff line number Diff line change @@ -43,12 +43,6 @@ export function syncToolCache(
4343 turnProtectionTurns > 0 &&
4444 state . currentTurn - turnCounter < turnProtectionTurns
4545
46- if ( part . tool === "compress" ) {
47- state . lastToolPrune = true
48- } else {
49- state . lastToolPrune = false
50- }
51-
5246 if ( state . toolParameters . has ( part . callID ) ) {
5347 continue
5448 }
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ export interface SessionState {
4747 stats : SessionStats
4848 toolParameters : Map < string , ToolParameterEntry >
4949 toolIdList : string [ ]
50- lastToolPrune : boolean
5150 lastCompaction : number
5251 currentTurn : number
5352 variant : string | undefined
Original file line number Diff line number Diff line change @@ -51,5 +51,4 @@ export function resetOnCompaction(state: SessionState): void {
5151 state . prune . messages = new Map < string , number > ( )
5252 state . compressSummaries = [ ]
5353 state . contextLimitAnchors = new Set < string > ( )
54- state . lastToolPrune = false
5554}
You can’t perform that action at this time.
0 commit comments