Merge branch 'main' into web-chat-create

# Conflicts:
#	web/PARITY.md
#	web/src/app.js
#	web/test/chat.test.mjs
#	web/test/ui-smoke.mjs
This commit is contained in:
2026-10-19 14:31:08 +01:00
11 changed files with 2339 additions and 80 deletions
+24
View File
@@ -293,6 +293,30 @@ test("a run action throws when the reply has no run detail", async () => {
await assert.rejects(() => repo.cancelRun(7), ProtocolError);
});
test("subscribeRuns sends exactly the blank any-workspace watch and no run_ids", async () => {
const { repo, ws } = connected();
ws.reply = (frame) => ({ id: frame.id, type: "subscribe" });
await repo.subscribeRuns();
assert.deepEqual(lastFrame(ws), { type: "subscribe", workspace: "" });
});
test("unsubscribeRuns sends exactly {type:'unsubscribe'}", async () => {
const { repo, ws } = connected();
ws.reply = (frame) => ({ id: frame.id, type: "unsubscribe" });
await repo.unsubscribeRuns();
assert.deepEqual(lastFrame(ws), { type: "unsubscribe" });
});
test("subscribeRuns is not sent while the page is not connected", async () => {
FakeWebSocket.instances = [];
const client = new PipelinesClient({ WebSocketImpl: FakeWebSocket });
const repo = new PipelinesRepository(client);
await assert.rejects(() => repo.subscribeRuns(), { name: "NotConnectedError" });
assert.equal(FakeWebSocket.instances.length, 0);
});
// ---- The composer's own commands (C8/C9) ----------------------------------
test("chatPrompt trims the text, sends the operation and native message ids, and omits files when empty", async () => {