Skip to content

Commit 0fad4fe

Browse files
committed
Fix remaining tempDir references to use runtimeTempDir
TypeScript compilation errors revealed four places that still used tempDir: - aiService.ts: Early tool creation for sentinel detection - ipcMain.ts: executeBash IPC handler - todo.ts: Todo write tool (2 locations) All now use runtimeTempDir to match the ToolConfiguration interface.
1 parent ce0e24d commit 0fad4fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/services/aiService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export class AIService extends EventEmitter {
425425
const earlyAllTools = await getToolsForModel(modelString, {
426426
cwd: process.cwd(),
427427
runtime: earlyRuntime,
428-
tempDir: os.tmpdir(),
428+
runtimeTempDir: os.tmpdir(),
429429
secrets: {},
430430
});
431431
const earlyTools = applyToolPolicy(earlyAllTools, toolPolicy);

src/services/tools/todo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const createTodoWriteTool: ToolFactory = (config) => {
116116
description: TOOL_DEFINITIONS.todo_write.description,
117117
inputSchema: TOOL_DEFINITIONS.todo_write.schema,
118118
execute: async ({ todos }) => {
119-
await writeTodos(config.tempDir, todos);
119+
await writeTodos(config.runtimeTempDir, todos);
120120
return {
121121
success: true as const,
122122
count: todos.length,
@@ -134,7 +134,7 @@ export const createTodoReadTool: ToolFactory = (config) => {
134134
description: TOOL_DEFINITIONS.todo_read.description,
135135
inputSchema: TOOL_DEFINITIONS.todo_read.schema,
136136
execute: async () => {
137-
const todos = await readTodos(config.tempDir);
137+
const todos = await readTodos(config.runtimeTempDir);
138138
return {
139139
todos,
140140
};

0 commit comments

Comments
 (0)