File tree Expand file tree Collapse file tree 5 files changed +3
-22
lines changed
Expand file tree Collapse file tree 5 files changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ export const VALID_CONFIG_KEYS = new Set([
101101 "$schema" ,
102102 "enabled" ,
103103 "debug" ,
104- "showUpdateToasts" ,
105104 "pruneNotification" ,
106105 "pruneNotificationType" ,
107106 "turnProtection" ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424import { isIgnoredUserMessage } from "../messages/utils"
2525import { assignMessageRefs } from "../message-ids"
2626import { getCurrentParams , getCurrentTokenUsage , countTokens } from "../strategies/utils"
27- import { deduplicate , supersedeWrites , purgeErrors } from "../strategies"
27+ import { deduplicate , purgeErrors } from "../strategies"
2828import { saveSessionState } from "../state/persistence"
2929import { sendCompressNotification } from "../ui/notification"
3030import { NESTED_FORMAT_OVERLAY , FLAT_FORMAT_OVERLAY } from "../prompts/internal-overlays"
@@ -116,7 +116,6 @@ export function createCompressTool(ctx: ToolContext): ReturnType<typeof tool> {
116116 assignMessageRefs ( ctx . state , rawMessages )
117117
118118 deduplicate ( ctx . state , ctx . logger , ctx . config , rawMessages )
119- // supersedeWrites(ctx.state, ctx.logger, ctx.config, rawMessages)
120119 purgeErrors ( ctx . state , ctx . logger , ctx . config , rawMessages )
121120
122121 const searchContext = buildSearchContext ( ctx . state , rawMessages )
Original file line number Diff line number Diff line change @@ -287,20 +287,3 @@ export function formatPrunedItemsList(
287287
288288 return lines
289289}
290-
291- export function formatPruningResultForTool (
292- prunedIds : string [ ] ,
293- toolMetadata : Map < string , ToolParameterEntry > ,
294- workingDirectory ?: string ,
295- ) : string {
296- const lines : string [ ] = [ ]
297- lines . push ( `Context pruning complete. Pruned ${ prunedIds . length } tool outputs.` )
298- lines . push ( "" )
299-
300- if ( prunedIds . length > 0 ) {
301- lines . push ( `Semantically pruned (${ prunedIds . length } ):` )
302- lines . push ( ...formatPrunedItemsList ( prunedIds , toolMetadata , workingDirectory ) )
303- }
304-
305- return lines . join ( "\n" ) . trim ( )
306- }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type {
66
77export type DcpTuiClient = TuiPluginInput [ "client" ]
88
9- export type { DcpContextBreakdown , DcpMessageStatus }
9+ export type { DcpMessageStatus }
1010
1111export interface DcpActiveBlockInfo {
1212 topic : string
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const compactTokenCount = (value: number): string => {
4040const buildMessageRuns = (
4141 statuses : DcpMessageStatus [ ] ,
4242) : { count : number ; status : DcpMessageStatus } [ ] => {
43- if ( statuses . length === 0 ) return [ { count : 1 , status : "pruned" } ]
43+ if ( statuses . length === 0 ) return [ ]
4444
4545 // Group consecutive same-status messages into runs
4646 const runs : { count : number ; status : DcpMessageStatus } [ ] = [ ]
You can’t perform that action at this time.
0 commit comments