web: run pipelines from the browser and quiet background chat

Add the Run pipeline dialog with prompt, server directory and a per-run
notification choice; add --notify auto/on/off to run and retry; move the live
tool call onto the tool-count line and tick the reasoning duration; stop chat
frames from repainting a different screen.
This commit is contained in:
2026-10-20 12:56:47 +01:00
parent f7a3a49f94
commit 0d7e81362f
17 changed files with 428 additions and 80 deletions
+24 -16
View File
@@ -6241,20 +6241,23 @@ try {
"the running tool",
);
await new Promise((resolve) => setTimeout(resolve, 1300));
const runningIndicator = await indicator();
const runningChip = await page.evaluate(`(() => {
const chip = document.querySelector("#chatTranscript .chat-tool-chip");
return {
current: chip?.querySelector(".chat-tool-current")?.textContent ?? "",
spinner: !!chip?.querySelector(".chat-tool-spinner"),
indicator: !!document.querySelector("#chatRunning"),
};
})()`);
if (
!runningIndicator ||
!runningIndicator.spinner ||
runningIndicator.label !== "Running a tool…" ||
!/^· \d/.test(runningIndicator.elapsed) ||
runningIndicator.tools.length < 1
!runningChip.spinner ||
!runningChip.current.includes("shell") ||
!runningChip.current.includes("npm run build") ||
runningChip.indicator
) {
throw new Error(`C5: the running indicator is wrong: ${JSON.stringify(runningIndicator)}`);
throw new Error(`C5: the current-tool chip is wrong: ${JSON.stringify(runningChip)}`);
}
console.log(
` running indicator: spinner=${runningIndicator.spinner}, "${runningIndicator.label}", "${runningIndicator.elapsed}", ` +
`${runningIndicator.tools.length} running-tool line(s) — "${runningIndicator.tools[0].text}"`,
);
console.log(` current tool on the count line: "${runningChip.current}" (no second indicator)`);
await shot("57-chat-running.png");
// 3. A second running tool that started 61 s ago (protocol `time.ran`): the
@@ -6276,13 +6279,18 @@ try {
],
"the long-running tool",
);
const longCall = await indicator();
const longLine = longCall?.tools.find((line) => line.long !== "");
if (!longLine || !longLine.longTinted || !longLine.long.includes("long")) {
throw new Error(`C5: no tinted long-running tool line: ${JSON.stringify(longCall)}`);
const longCall = await page.evaluate(`(() => {
const chip = document.querySelector("#chatTranscript .chat-tool-chip");
return {
current: chip?.querySelector(".chat-tool-current")?.textContent ?? "",
long: chip?.querySelector(".chat-tool-long")?.textContent ?? "",
};
})()`);
if (!longCall.current.includes("npm run long") || !longCall.long.includes("long")) {
throw new Error(`C5: the long-running tool is not on the count line: ${JSON.stringify(longCall)}`);
}
const agentsWithTwoIds = await agentCount();
console.log(` long-call line: "${longLine.text}${longLine.long}" tinted=${longLine.longTinted}`);
console.log(` long-call chip: "${longCall.current}${longCall.long}"`);
if (agentsWithTwoIds - agentBefore > 1) {
throw new Error(`C5: two assistant message ids fragmented the live turn into ${agentsWithTwoIds} bubbles`);
}