CommandCodeAI / CommandCodeAI/command-code
Error: 400 Input length ____ exceeds the maximum allowed input length of ____ tokens
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
Summary
When using the ~recently released "Laguna-s-2.1" model, which appears to do a considerable amount of 'thinking', I have regularly encountered the message "Error: 400 Input length ____ exceeds the maximum allowed input length of ____ tokens" (in many cases, with a very small minority :: <~100/100000'th overflow) after interacting with a project's code for awhile. Shortly thereafter, it will refuse to compact (yet still emit too large an input, thus rendering the 'task' effectively unable to complete). The first few such can usually be overcome by a manual /compact (which seems to compact more than the 'auto-compact' sort), followed by 'continue'. After which command, it fails to 'continue' even when 'compact' is claimed to have 'saved' hundreds of thousands of tokens. At which point I have to switch to DeepSeek-V4-Flash-0731 or similar to ~complete. Commands such as "/usage" do not appear to show useful information about the issue.
Expected Behavior
It would seem to me that if context is indeed irretrievably ~overstuffed, then that should be reflected by the /compact command
Actual Behavior
manual /compact claims to recover many tokens, yet overflow errors continue
Steps to reproduce the issue
As shown in report overview
Command Code Version
1.14.1
Operating System
macOS
Terminal/IDE
OSX 'Terminal' w / cmd
Shell
zsh
Session file (optional)
No response
Fix prompt (optional)
No response
Additional context
No response
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 macOS Terminal 上使用 zsh,并在经过长时间交互后使用 Laguna-s-2.1 模型,复现 Command Code 1.14.1 中的溢出。比较手动 /compact、auto-compact、/usage 和 continue 的行为及报告的 token 数;当压缩准确反映剩余上下文并防止输入长度错误反复发生时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- zsh
- 领域
- ai, cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100