Skip to content

fix(protocol): keep one context-budget reminder (v1.3.173) - #451

Merged
dofastted merged 2 commits into
mainfrom
fix/sonnet-budget-cache-read
Oct 15, 2026
Merged

dofastted merged 2 commits into
mainfrom
fix/sonnet-budget-cache-read

Conversation

@dofastted

@dofastted dofastted commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

版本

1.3.173

问题

Sonnet 5 等不支持对话中途 role=system 的型号,会把每一轮 <total_tokens> 提醒抬进缓存断点后面的 system 尾块。尾块每轮变长,cache_read 停在工具和官方前缀(现场约 80.5K),后面的对话每轮整段 cache_creation。

改动

整段 system 只留一条预算提醒。官方前缀里的那条不动。混在其他内容里的 system-reminder 不会被拆掉结束标签。

部署

控制面 overlay。无迁移,不必 wrap-cli/sync。

备份:/opt/vm2api/.deploy-bak-vm2api-1.3.173-20261015T090740Z

verify-live.py 1.3.173:exit 0。version_file、health、panel、vms、web、docker_up 10/10、docker_identity 不变、conversation 200。

Lifting every historical role=system turn appended another identical
total_tokens reminder after the cache breakpoint, so reads froze around
80K and the conversation was rewritten each turn.
@cursor

cursor Bot commented Oct 15, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 6a151a33-8280-4418-ab14-3c4f475881b6)

@dofastted
dofastted merged commit 02a5718 into main Oct 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant