chore(coding-agent): remove unused compaction import

This commit is contained in:
Mario Zechner
2026-03-27 04:11:43 +01:00
parent 7fe7081745
commit 46f5b798f9

View File

@@ -47,7 +47,6 @@ import {
VERSION, VERSION,
} from "../../config.js"; } from "../../config.js";
import { type AgentSession, type AgentSessionEvent, parseSkillBlock } from "../../core/agent-session.js"; import { type AgentSession, type AgentSessionEvent, parseSkillBlock } from "../../core/agent-session.js";
import type { CompactionResult } from "../../core/compaction/index.js";
import type { import type {
ExtensionContext, ExtensionContext,
ExtensionRunner, ExtensionRunner,
@@ -4576,10 +4575,6 @@ export class InteractiveMode {
return; return;
} }
await this.executeCompaction(customInstructions);
}
private async executeCompaction(customInstructions?: string): Promise<CompactionResult | undefined> {
if (this.loadingAnimation) { if (this.loadingAnimation) {
this.loadingAnimation.stop(); this.loadingAnimation.stop();
this.loadingAnimation = undefined; this.loadingAnimation = undefined;
@@ -4587,9 +4582,9 @@ export class InteractiveMode {
this.statusContainer.clear(); this.statusContainer.clear();
try { try {
return await this.session.compact(customInstructions); await this.session.compact(customInstructions);
} catch { } catch {
return undefined; // Ignore, will be emitted as an event
} }
} }