fix: let agent finish tool-heavy chat tasks
This commit is contained in:
1 parent
46dea81631
commit
3a0e0fb0b6
4 files changed
+53
-21
No files matched your search
@@ -5,6 +5,7 @@ import path from "node:path";
|
||||
import test from "node:test";
|
||||
import {
|
||||
buildChatRequesterContext,
|
||||
chatToolBudgetInstruction,
|
||||
chatReplyLanguageInstruction,
|
||||
containsBotMention,
|
||||
createRepositorySnapshot,
|
||||
@@ -50,6 +51,11 @@ test("PR chat replies in the language of the latest user comment", () => {
|
||||
);
|
||||
});
|
||||
|
||||
test("PR chat must finish within its tool budget without asking to continue", () => {
|
||||
assert.match(chatToolBudgetInstruction(), /Do not ask the user whether to continue/);
|
||||
assert.match(chatToolBudgetInstruction(), /return the best complete final answer/);
|
||||
});
|
||||
|
||||
test("PR chat recognizes @bot and the configured bot login", () => {
|
||||
assert.equal(containsBotMention("@bot can this merge?", "github-actions[bot]"), true);
|
||||
assert.equal(containsBotMention("Could @github-actions explain this?", "github-actions[bot]"), true);
|
||||
|
||||
Reference in new issue
Block a user