PEP-272: /api/health анониму — только ok; без X-Powered-By, script-src в CSP, аватар по https #282

Merged
peppa-bot merged 9 commits from task/pep-272 into main 2026-11-27 05:30:40 +00:00
Showing only changes of commit 1341d61a05 - Show all commits

View File

@ -129,7 +129,18 @@ describe("Зависший раннер перезапускается", () => {
const p = await storyAtWork({ turns: [[{ say: "Думаю." }, { hang: true }]], resumeTurns: [[{ say: "Отвис." }]] });
const sid = await p.start();
await p.waitLog("turn 0", (e) => e.ev === "prompt");
await new Promise((r) => setTimeout(r, 1500));
// The hung agent's screen must settle first: under a loaded CI a fixed pause was too short, the
// reply landed between ticks and the watchdog rightly saw "activity" (PEP-272 CI run 360).
const pane = (await sess(sid)).tmuxName;
await waitFor("hung reply on screen", async () => (await runner.tmux.capturePane(pane)).includes("Думаю."));
let prev = "";
await waitFor("screen settled", async () => {
const now = await runner.tmux.capturePane(pane);
const same = now === prev;
prev = now;
if (!same) await new Promise((r) => setTimeout(r, 700));
return same;
});
const t0 = Date.now();
await tickAt(new Date(t0)); // remembers the screen
await tickAt(new Date(t0 + 10 * MIN), 5 * MIN); // stalled → alert