Logging cleanup

This commit is contained in:
cte 2026-01-11 18:45:14 -08:00
parent 4ac8a460db
commit 4b4afceeb6
2 changed files with 3 additions and 15 deletions

View file

@ -342,13 +342,6 @@ export class AcpSession implements IAcpSession {
*/
cancel(): void {
if (this.promptState.isProcessing()) {
// === TEST LOGGING: Cancel triggered ===
const currentState = this.extensionHost.client.getAgentState()
this.logger.info(
"Session",
`CANCEL TASK: sending cancelTask (state=${currentState.state}, running=${currentState.isRunning}, streaming=${currentState.isStreaming}, ask=${currentState.currentAsk || "none"})`,
)
this.isCancelling = true
// Content continues flowing to the client during cancellation so users
// see what the LLM was generating when cancel was triggered.

View file

@ -39,7 +39,6 @@ import {
type ModeChangedEvent,
} from "./events.js"
import { AgentLoopState, type AgentStateInfo } from "./agent-state.js"
import { testLog } from "./test-logger.js"
// =============================================================================
// Extension Client Configuration
@ -430,16 +429,10 @@ export class ExtensionClient {
* Use this to interrupt a task that is currently processing.
*/
cancelTask(): void {
// === TEST LOGGING: Cancel triggered ===
const currentState = this.store.getAgentState()
testLog.info(
"ExtensionClient",
`CANCEL TASK: sending cancelTask (state=${currentState.state}, running=${currentState.isRunning}, streaming=${currentState.isStreaming}, ask=${currentState.currentAsk || "none"})`,
)
const message: WebviewMessage = {
type: "cancelTask",
}
this.sendMessage(message)
}
@ -475,6 +468,7 @@ export class ExtensionClient {
type: "terminalOperation",
terminalOperation: "continue",
}
this.sendMessage(message)
}
@ -488,6 +482,7 @@ export class ExtensionClient {
type: "terminalOperation",
terminalOperation: "abort",
}
this.sendMessage(message)
}