Repository navigation
fix(agent-core-v2): preserve raw bytes in task output tails - #4886
Merged
sailist merged 2 commits intoNov 13, 2026
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
sailist
approved these changes
Nov 13, 2026
7723qqq
pushed a commit
to 7723qqq/kimi-code
that referenced
this pull request
Nov 15, 2026
Port MoonshotAI#4844: CronCreate/CronDelete and MCP authenticate calls never fold, the authorization link stays visible (and click-inert) while the call is running, the reason stays visible after a failure, and compact density unfolds to rows instead of cards. Disable the external-subagent deadline when subagent.timeoutMs is 0 (MoonshotAI#4868). The in-process path already guards on a positive timeout inside the task service, so only executionBackend armed an immediate deadline. Record MoonshotAI#4886 as equivalent: task output tails are already read as raw bytes from the byte store, so the UTF-8 split that upstream fixed cannot occur here.
This was referenced Nov 19, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirement or Bug
订阅后台 Bash 输出时,首屏读取日志末尾的一段字节。窗口从多字节字符中间开始时,首屏可能出现乱码,后续输出去重使用的字节偏移也可能算错。
Bug Reproduction Steps
background-ready💡\n并保持任务运行。task.watch订阅该任务,设置tail_bytes: 3。��\n。修复后首段从偏移 20 返回一个换行符。Root Cause
主日志路径按字节截取后先解码成字符串,再转回 Buffer。残缺 UTF-8 字节已被替换成
�,原始 3 字节膨胀成 7 字节。WebSocket 层因此无法按原字节对齐窗口。Code Changes
刷新待写输出后,在同一文件句柄上获取大小并按范围读取原始字节。继续由 WebSocket 层跳过窗口开头残缺的 UTF-8 字节。主日志优先,主日志不存在时沿用旧目录的读取路径。
Behavior Changes and Affected Users
验证覆盖了持久化层的原始字节和偏移、WebSocket 输出、真实 Bash 进程的 3 字节窗口。未运行 Windows 全量验证。
验证详情
agent-core-v2类型检查和改动文件 lint 通过。Checklist
gen-changesetsand included the patch release note.