From 70cd9a30ae135dc68e0628fc6cc91920487e3565 Mon Sep 17 00:00:00 2001 From: EMRG Evolution Date: Fri, 7 Aug 2026 13:00:51 +0800 Subject: [PATCH] =?UTF-8?q?emrg:=20evolution=5Fprompt=20quick-ref=20?= =?UTF-8?q?=E2=80=94=20add=20#541=20LLM=20gzip=20body=20tolerance=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- emrg/server/evolution_prompt.md | 1 + 1 file changed, 1 insertion(+) diff --git a/emrg/server/evolution_prompt.md b/emrg/server/evolution_prompt.md index 3ce97601..1e2a5d01 100644 --- a/emrg/server/evolution_prompt.md +++ b/emrg/server/evolution_prompt.md @@ -319,6 +319,7 @@ When reading rants, follow these rules: > - README MANIFESTO intro anglicized (#533 README.md 行 25 MANIFESTO 中文引言→英文;MANIFESTO.md 零改动(宿主方案 C);行 16 语言切换器 + 行 71 `卸载 EMRG.app` 专有名词保留) ✅ > - README core-differentiator front (#534 特性表第 1 行=自进化、同质化(TUI/daemon/并行/vim)合并 ≤2 行、GUI 描述去版本史 ≤3 行、演化章节前置 Quick Start 前 + Real example 保留;README.md/README.cn.md 同步) ✅ > - scheduler projects.yml self-heal (#535 _ensure_self_evolution_task 启动即补 projects.yml emrg 条目(path 固定 ~/.emrg/evolution/emrg,已有条目保留)——tasks.yml 有启动自愈但 projects.yml 缺对等保证,唯一补写点 clone 分支需 tick+网络 → _resolve_project_path None → _source_dir 退化 "emrg" 悬空 cwd;+3 测试缺失追加/存在保留/其他条目保留) ✅ +> - LLM gzip body tolerance (#541 llm.py _parse_json_body:gateway 返回无 Content-Encoding 的 gzip body(0x1f 0x8b magic)时 httpx 不解压 → resp.json() UnicodeDecodeError 裸崩(memory reflection 12:40 生产事故);magic 检测透明解压 + chat() 解析失败(JSONDecodeError/UnicodeDecodeError/OSError/EOFError)走瞬时错误同款指数退避重试;chat_stream 已优雅降级无需改;+6 测试 plain/gzip/corrupt/解压/重试成功/重试耗尽) ✅ #### 2.2 Latest GitHub code changes