Skip to content

Commit 411fe26

Browse files
committed
chore: remove dead code
1 parent 46ae8bc commit 411fe26

File tree

5 files changed

+3
-22
lines changed

5 files changed

+3
-22
lines changed

lib/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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",

lib/tools/compress.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
import { isIgnoredUserMessage } from "../messages/utils"
2525
import { assignMessageRefs } from "../message-ids"
2626
import { getCurrentParams, getCurrentTokenUsage, countTokens } from "../strategies/utils"
27-
import { deduplicate, supersedeWrites, purgeErrors } from "../strategies"
27+
import { deduplicate, purgeErrors } from "../strategies"
2828
import { saveSessionState } from "../state/persistence"
2929
import { sendCompressNotification } from "../ui/notification"
3030
import { 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)

lib/ui/utils.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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-
}

tui/shared/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {
66

77
export type DcpTuiClient = TuiPluginInput["client"]
88

9-
export type { DcpContextBreakdown, DcpMessageStatus }
9+
export type { DcpMessageStatus }
1010

1111
export interface DcpActiveBlockInfo {
1212
topic: string

tui/slots/sidebar-top.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const compactTokenCount = (value: number): string => {
4040
const 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 }[] = []

0 commit comments

Comments
 (0)