Reduce Android realtime heartbeat noise
This commit is contained in:
16
tests/android-root-realtime-noise.test.ts
Normal file
16
tests/android-root-realtime-noise.test.ts
Normal 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",
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user