fix(perf+sdk/ime): ①perf net_json 缺 network 对象闭合括号 → 全量 JSON 根对象不闭合/非法(MeowPanel /api/system jv_parse 失败根因,真机+python 双重证实)②IME flush 挂起(meow_gfx_flush_hold): 阻塞循环整周期只记脏、IME画完一次原子上屏,根治 on_tick 进度条与键盘同区两刷频闪 ③TextField on_change 只标脏不重画→改 meow_ui_invalidate 真重画,输入实时回显
meow_svc_perf fa073bf9→7ea196de; meow_ui.a d814d0ed→ece0ecdb; hello 2ce09466→f45ba051; launcher 9ca4c5e8→bd37c8b0(重链) 宿主验证: test_ime_fix/test_p1p2p3_repro/test_meow_ui_widgets 全 PASS; perf_host all 输出经 python json 校验合法
This commit is contained in:
1 parent
08c70aa14c
commit
896f391fee
9 files changed
+23
-5
No files matched your search
@@ -427,12 +427,13 @@ static void net_json(sbuf_t *s, const char *hostname)
|
||||
net_bluetooth_json(s);
|
||||
sA(s, "},\"hostname_local\":");
|
||||
const char *hn = (hostname && hostname[0] && strcmp(hostname, "-")) ? hostname : NULL;
|
||||
if (!hn) { sA(s, "null"); return; }
|
||||
if (!hn) { sA(s, "null"); sA(s, "}"); return; }
|
||||
char hl[96];
|
||||
size_t l = strlen(hn);
|
||||
if (l >= 6 && !strcmp(hn + l - 6, ".local")) snprintf(hl, sizeof hl, "%s", hn);
|
||||
else snprintf(hl, sizeof hl, "%s.local", hn);
|
||||
sA_str(s, hl);
|
||||
sA(s, "}"); /* 闭合 network 对象(缺它则 agg_json 收尾的 "}" 只闭合 network,根对象不闭合 → JSON 非法) */
|
||||
}
|
||||
|
||||
/* ---------------- 聚合 JSON(subset 位掩码;与 MEOWPANEL_PROTOCOL §3.1 .data 对齐) ---------------- */
|
||||
|
||||
Reference in new issue
Block a user