Repository navigation
[6233] 附件转换 PDF 在 ready 或 error 后清理 - #4766
Merged
Merged
Conversation
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.
What
将 .tmu/.tm/.stem 附件转换出的 PDF 改为仅供 ingest 使用的临时文件:
dispatch_attachment_ingest按 taskId 登记宿主转换 PDF。onAttachmentReady与onAttachmentError在事件入口删除 PDF,并尝试删除为空的 UUID 父目录;即使面板已关闭也能清理。任务文档:LiiiLabs/dev-agent#257。
Why
转换 PDF 不会被第二次使用。附件抽取完成后,LLM 只按 sha256 读取 extract/result.json,长期保留转换 PDF 只会增加磁盘占用。
真假插件协议
本次只读核实 liii 源码,未修改 liii。
验证
~/.local/bin/xmake b --yes qt_chat_controller_test && ~/.local/bin/xmake r qt_chat_controller_test:43 passed,0 failed;覆盖 ready 删除、error 删除及普通 PDF 保留。~/.local/bin/xmake b --yes stem && ~/.local/bin/xmake r chat-protocol-test:78 correct,0 failed;覆盖删除 PDF 后的假插件缓存闭环。gf fmt --changed-since=main、gf fmt --check、git diff --check:通过。🤖 Generated with Claude Code