Reduce Android realtime heartbeat noise

This commit is contained in:
kris
2026-04-10 13:25:05 +08:00
parent 0cba837ed3
commit c4dbfc7398
6 changed files with 308 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
import test from "node:test";
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
test("android root page does not force a full list refresh for initial context snapshots", async () => {
const source = await readFile(
new URL("../android/app/src/main/java/com/hyzq/boss/MainActivity.java", import.meta.url),
"utf8",
);
assert.doesNotMatch(
source,
/"conversation\.context_indicator\.updated"[\s\S]{0,120}return true;/,
"context indicator snapshots are payload-only hints and should not trigger a full Android list reload",
);
});