Skip to content

Commit 5cbc162

Browse files
committed
fix: remove confusing 'unsaved editor content' from Read hook response
The Read hook's denial message mentioned 'unsaved editor content' which caused Claude to misinterpret it as an error blocking its edits.
1 parent 84c9eaf commit 5cbc162

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-node/claude-code-agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async function _runQuery(requestId, prompt, projectPath, model, signal) {
255255
: line;
256256
return String(offset + i + 1).padStart(6) + "\t" + truncated;
257257
}).join("\n");
258-
formatted = filePath + " (unsaved editor content, " +
258+
formatted = filePath + " (" +
259259
lines.length + " lines total)\n\n" + formatted;
260260
console.log("[Phoenix AI] Serving dirty file content for:", filePath);
261261
return {

0 commit comments

Comments
 (0)