Hide context rings without live snapshots

This commit is contained in:
kris
2026-04-06 14:58:30 +08:00
parent 5782804df3
commit 6d90123092
4 changed files with 30 additions and 20 deletions

View File

@@ -65,11 +65,11 @@ public class WechatSurfaceMapperConversationStatusTest {
assertEquals("上下文稳定", row.contextStatusLabel);
assertEquals("safe", row.contextStatusLevel);
assertEquals(0, row.contextUsagePercent);
assertEquals(true, row.contextIndicatorVisible);
assertEquals(false, row.contextIndicatorVisible);
}
@Test
public void toConversationRow_usesSafeContextDefaultsWhenIndicatorMissing() {
public void toConversationRow_hidesContextIndicatorWhenIndicatorMissing() {
JSONObject item = new StubJSONObject()
.withString("threadTitle", "北区试产线回归")
.withInt("activityIconCount", 0);
@@ -79,7 +79,7 @@ public class WechatSurfaceMapperConversationStatusTest {
assertEquals("上下文稳定", row.contextStatusLabel);
assertEquals("safe", row.contextStatusLevel);
assertEquals(0, row.contextUsagePercent);
assertEquals(true, row.contextIndicatorVisible);
assertEquals(false, row.contextIndicatorVisible);
}
private static final class StubJSONObject extends JSONObject {