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:
parent
46be7620ae
commit
c56e6d1aa7
4
apps/web/next-env.d.ts
vendored
4
apps/web/next-env.d.ts
vendored
@ -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.
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user