Add heuristic to suggest fix code output (#45)

Add heuristic to fix code output
This commit is contained in:
Will Chen
2025-04-29 11:34:21 -07:00
committed by GitHub
parent 37928a9017
commit 672bd790fa
5 changed files with 72 additions and 3 deletions

View File

@@ -239,6 +239,14 @@ const getProposalHandler = async (
path: refactorTarget.path,
});
}
if (
writeTags.length === 0 &&
latestAssistantMessage.content.includes("```")
) {
actions.push({
id: "write-code-properly",
});
}
}
// Get all chat messages to calculate token usage