diff --git a/src/cli/run/events.test.ts b/src/cli/run/events.test.ts index 2afc216f..502db862 100644 --- a/src/cli/run/events.test.ts +++ b/src/cli/run/events.test.ts @@ -318,14 +318,8 @@ describe("event handling", () => { // given const ctx = createMockContext("my-session") const state: EventState = { + ...createEventState(), mainSessionIdle: true, - mainSessionError: false, - lastError: null, - lastOutput: "", - lastPartText: "", - currentTool: null, - hasReceivedMeaningfulWork: false, - messageCount: 0, } const payload: EventPayload = { diff --git a/src/plugin-handlers/tool-config-handler.ts b/src/plugin-handlers/tool-config-handler.ts index e488d2da..381dbb55 100644 --- a/src/plugin-handlers/tool-config-handler.ts +++ b/src/plugin-handlers/tool-config-handler.ts @@ -99,9 +99,9 @@ export function applyToolConfig(params: { } params.config.permission = { - ...(params.config.permission as Record), webfetch: "allow", external_directory: "allow", + ...(params.config.permission as Record), task: "deny", }; }