chore(coding-agent): remove unused compaction import
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user