0
代码介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
0
  1. PilotDeck
  2. /
  3. src
  4. /
  5. agent
  6. /
  7. runtime
GGucc1fix(agent): post-routing compaction for smaller context-window models
5b6d6bb0创建于 8 天前历史提交
文件最后提交记录最后更新时间
AgentRuntimeConfig.ts
fix(agent): post-routing compaction for smaller context-window models When tokenSaver routes from a large-window model (e.g. sonnet 200k) to a smaller one (e.g. qwen 32k), compaction still evaluated against the original model's window — never triggering for the routed model's actual limit. Split router.stream() into decide()+execute() in AgentLoop and insert a second tryAutoCompact pass using the routed model's maxContextTokens when it is smaller than the agent's default. Co-authored-by: Cursor <cursoragent@cursor.com> 8 天前
AgentRuntimeDependencies.ts
fix(agent): post-routing compaction for smaller context-window models When tokenSaver routes from a large-window model (e.g. sonnet 200k) to a smaller one (e.g. qwen 32k), compaction still evaluated against the original model's window — never triggering for the routed model's actual limit. Split router.stream() into decide()+execute() in AgentLoop and insert a second tryAutoCompact pass using the routed model's maxContextTokens when it is smaller than the agent's default. Co-authored-by: Cursor <cursoragent@cursor.com> 8 天前
PlanTodoState.ts
feat(todo): add TodoWrite plan execution flow Require plan-driven sessions to initialize and refresh TodoWrite checklists before side-effecting tools run, and render markdown todo updates in the web UI. Co-authored-by: Cursor <cursoragent@cursor.com> 15 天前