PEP-273: /gitea из кэша и по 50 строк, ссылки веба без предзагрузки #281

Merged
peppa-bot merged 6 commits from task/pep-273 into main 2026-11-27 05:30:44 +00:00
Showing only changes of commit d743b38f31 - Show all commits

View File

@ -131,7 +131,17 @@ describe("Зависший раннер перезапускается", () => {
await p.waitLog("turn 0", (e) => e.ev === "prompt");
await new Promise((r) => setTimeout(r, 1500));
const t0 = Date.now();
await tickAt(new Date(t0)); // remembers the screen
// Remember the screen once it has settled: on a busy machine the agent may still be drawing
// after a fixed pause, and a change seen by the next tick counts as activity (flaky in CI).
let seen: string | undefined;
await waitFor("screen settled", async () => {
await tickAt(new Date(t0));
const now = (await sess(sid)).watchState?.screen;
const same = !!now && now === seen;
seen = now;
if (!same) await new Promise((r) => setTimeout(r, 300));
return same;
});
await tickAt(new Date(t0 + 10 * MIN), 5 * MIN); // stalled → alert
const s = await sess(sid);
assert.equal(s.status, "stalled");