Merge pull request #1606 from code-yeongyu/fix/658-tools-ctx-directory

fix: use ctx.directory instead of process.cwd() in tools for Desktop app support
This commit is contained in:
YeonGyu-Kim
2026-02-07 19:12:25 +09:00
committed by GitHub
11 changed files with 296 additions and 295 deletions
+8
View File
@@ -86,6 +86,10 @@ import {
createTaskGetTool,
createTaskList,
createTaskUpdateTool,
createGrepTools,
createGlobTools,
createAstGrepTools,
createSessionManagerTools,
} from "./tools";
import {
CATEGORY_DESCRIPTIONS,
@@ -542,6 +546,10 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
const allTools: Record<string, ToolDefinition> = {
...builtinTools,
...createGrepTools(ctx),
...createGlobTools(ctx),
...createAstGrepTools(ctx),
...createSessionManagerTools(ctx),
...backgroundTools,
call_omo_agent: callOmoAgent,
...(lookAt ? { look_at: lookAt } : {}),