PEP-104: test of PEP-149 turn end — turns with tool calls, since empty turns are no longer nudged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Асель 2026-11-16 20:24:00 +05:00
parent 46be7620ae
commit c56e6d1aa7
2 changed files with 4 additions and 3 deletions

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();