Repository navigation
fix(limits): 把插件宿主 agent 日志纳入限额扫描来源 - #118
Open
Demons12341 wants to merge 1 commit into
Open
Demons12341 wants to merge 1 commit into
Demons12341 wants to merge 1 commit into
Conversation
原先按 PRD D1 认为 CodeBuddyExtension/Logs 只是 CN IDE 真身的重复记录而不扫,但实测 2026-09-27 的一次真实 429 只落在插件宿主 agent 日志里,两个 IDE 的 exthost 树 0 命中,不扫就整条漏掉。新增 LogFormat::Agent 与 ScanSource::AgentLog,与两个 IDE 共用 scanIdeLogs 开关。
Demons12341
force-pushed
the
fix/limits-plugin-host-log
branch
from
September 28, 2026 01:49
85099bb to
c4fa89c
Compare
This branch has not been deployed
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.
问题
原先按 PRD D1「插件宿主共享根
CodeBuddyExtension/Logs/CodeBuddyIDE/与 CN IDE 真身重复记录同一次 429」而不扫。但该结论在当前版本已不成立:实测 2026-09-27 的一次真实 429(
code=6004、「您的使用量已超出频率限制」、modelId=deepseek-v4.1-flash、conversationId=d8231a1e…)只出现在这里的插件宿主 agent 日志,两个 IDE 的 exthost 树里没有 —— 不扫就整条漏掉,账号页没有限额标记。修复
LogFormat::Agent:行首时间戳按 WorkBuddy 解析([2026/9/27 13:27:37.109]非补零写法),事件 id / 模型线索 / 鉴权行与两个 IDE 同构,所以归因按 IDE 复用plugin_host_logs_root()与ScanSource::AgentLog(bit 5)、ScanRoots.agent_log_root;与两个 IDE 共用scanIdeLogs开关,Logs/<宿主>/<日期>/*.log逐个宿主扫、排序保证结果稳定(账号, 模型)聚合会把它们并成一条(hitCount累加),不会重复展示新增回归测试
plugin_host_agent_log_parses_uid_reset_and_model(用本机实测原文)。