fix(agent): bound push suppression to observed browser attention

This commit is contained in:
2026-10-14 23:06:34 -07:00
parent f534f76b23
commit 5833a0868e
13 changed files with 194 additions and 37 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ test("attention is per-tab, ordered, focused while idle, and recent input persis
c.interact(); const report = c.report(); failure.reject(new Error("offline")); await assert.rejects(report); await c.report();
const id = randomUUID(), frame = JSON.parse(agentAuthFrame("fixture-token", "2", id));
assert.equal(frame.clientKind, "web"); assert.equal(frame.presenceSessionId, id);
assert.equal(JSON.parse(agentAuthFrame(null, "0", "not-an-id")).clientKind, undefined);
assert.deepEqual(JSON.parse(agentAuthFrame(null, "0", "not-an-id")), { type: "auth", token: null, after: "0", clientKind: "web" });
});
test("read frames validate source/cursor and preserve existing read semantics", () => {