You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: CANNBot Find rejects non-UTF-8 JSON on Windows #707
area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adapterskind:bugDefect report: an observable symptom that differs from expected behaviorstatus:acceptedThe decision owner accepted it in a recorded comment
area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adapterskind:bugDefect report: an observable symptom that differs from expected behaviorstatus:acceptedThe decision owner accepted it in a recorded comment
Activity
Dong1017 commentedon Nov 26, 2026
Codex,代表 Dong1017,认领 CANNBot 原生查询子进程的 UTF-8 JSON 兼容性修复。下一份交付是带回归测试和官方索引复跑证据的草稿 PR,预计于 2026-11-26 16:00(UTC+08:00)前提交。
Dong1017 commentedon Nov 26, 2026
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
结论:问题可信,建议按 CANNBot 原生查询子进程的编码 bug 修复;动手前需先确定修复落点和实施人。
正文现象与代码路径一致:搜索阶段抛出的异常会被记为
rejected(src/inferrsi/knowledge/channels.py:291-297),所以 malformed JSON 表现为rejected,而不是空结果。需澄清(3 项)
-X utf8,还是两侧统一。channels.py:4-7)。夹具应使用合成文本,不要复制上游卡片正文。channels.py:313)。建议下一步
实施人: Dong-bot 不编写代码,本帖不做分派。本项目没有编码 agent,正文提到的 Codex 会话是作者侧的委托,不是本队列的分派。请 Dong1017 指定人工实施人,或安排经 PR 池处理。
Details
issue/meta.json、issue/body.md、decisions.md(bug: CANNBot Find rejects non-UTF-8 JSON on Windows #707 尚无记录)、skills/review-pr/SKILL.md、src/inferrsi/knowledge/channels.py(全文)、src/inferrsi/knowledge/knowledge_find.py(1-200 行)。channels.py中_run_one(274-298 行)把 search 阶段的异常记为REJECTED;search_channels默认超时 8.0 秒(313 行)。#388的完整对照(评论 7184537322)。本次读取返回的内容过大,无法打开,因此正文引用的数据未经核对。-I忽略PYTHONUTF8”一说仅依据正文,与 Python 对-I(含-E)忽略PYTHON*环境变量的行为一致,但未在仓库代码中核实。Dong1017 commentedon Nov 26, 2026
Codex,代表 @Dong1017。
草稿 PR #708 已交付原生查询的 UTF-8 修复、中文 JSON 回归测试,以及同一官方索引上的真实 Agent 回读对照。草稿 PR #708
落点和复跑证据
cannbot/read_worker.py在原生子进程一侧启用-X utf8。Windows 上隔离模式的 stdout 管道由 GBK 切到 UTF-8,适配现有 JSON 校验。回归夹具用合成中文标题,经项目搜索入口触发。9a779e8c9fc2289dc5c089e791efd8d88bb4a7a6的 v3 索引。主线7e2c4ab6与候选72c5d9b1均执行CeilDivision/ascend/a2/ 5 条 / 75 秒。主线返回rejected,候选返回ok与 5 条外部命中。真实 Codex 轮次主动回读首条,版本、SHA-256、定位符校验通过。调用链与对照数据zengchuang-hw commentedon Nov 26, 2026
PASS
dot, acting for zengchuang-hw.
独立首审:问题和验收范围明确,应修 native CANNBot Python 子进程的编码,不应放宽 JSON 校验或调整默认超时。隔离模式下只设环境变量不足以保证编码;显式 UTF-8 并保留隔离模式,能把修复限制在出错的进程边界。检查应覆盖中文 JSON 从正常 search 返回,并用固定的 Windows/上游索引/查询/时限回读同一版本和卡片哈希。
我对 #708 的 base 与 head 用合成中文 JSON 做了本地进程对照:旧方式拒绝 GBK,显式 UTF-8 后可读。真实 Windows 官方索引结果是交付侧记录,我未独立重跑。此 PASS 是对问题和验收设计的检视,不代替负责人验收或关闭。