PEP-104: Stop-хук не подгоняет пустой ход #96

Open
peppa-bot wants to merge 4 commits from task/pep-104 into main
2 changed files with 4 additions and 3 deletions
Showing only changes of commit c56e6d1aa7 - Show all commits

View File

@ -1,7 +1,7 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
import "./.next/dev/types/root-params.d.ts";
import "./.next/types/routes.d.ts";
import "./.next/types/root-params.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@ -67,7 +67,8 @@ const taskEvents = (taskId: number, type: string) => db.select().from(events).wh
describe("Конец хода — это ход работы, а не вопрос", () => {
test("Агент закончил ход, статус задачи тот же", async () => {
const tp = await project({ turns: [[{ say: "Начал." }], [{ say: "Продолжаю." }], [{ say: "Жду проверок" }]] });
// PEP-104: only a turn with tool calls is nudged.
const tp = await project({ turns: [[{ mcp: "update_task", args: { task: "1", status: "in_progress" } }, { say: "Начал." }], [{ mcp: "update_task", args: { task: "1", status: "in_progress" } }, { say: "Продолжаю." }], [{ mcp: "update_task", args: { task: "1", status: "in_progress" } }, { say: "Жду проверок" }]] });
const p = await core.getProject(db, tp.key);
await core.updateTask(db, await core.resolveTask(db, tp.taskKey), { status: "in_progress" });
const sid = await tp.start();