Skip to content

Commit 56bd284

Browse files
committed
fix: open terminal links in default browser and fix hook return values
1 parent b8c6445 commit 56bd284

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src-node/claude-code-agent.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,12 @@ async function _runQuery(requestId, prompt, projectPath, model, signal, locale,
430430
matcher: "Read",
431431
hooks: [
432432
async (input) => {
433+
if (!input || !input.tool_input) {
434+
return {};
435+
}
433436
const filePath = input.tool_input.file_path;
434437
if (!filePath) {
435-
return undefined;
438+
return {};
436439
}
437440
try {
438441
const result = await nodeConnector.execPeer("getFileContent", { filePath });
@@ -466,7 +469,7 @@ async function _runQuery(requestId, prompt, projectPath, model, signal, locale,
466469
} catch (err) {
467470
console.warn("[Phoenix AI] Failed to check dirty state:", filePath, err.message);
468471
}
469-
return undefined;
472+
return {};
470473
}
471474
]
472475
},

0 commit comments

Comments
 (0)