CommandCodeAI / CommandCodeAI/command-code
Error: 400 Input length ____ exceeds the maximum allowed input length of ____ tokens
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、長時間のやり取りの後にLaguna-s-2.1モデルを使用し、macOS Terminalのzsh上でCommand Code 1.14.1のoverflowを再現します。手動の /compact、auto-compact、/usage、continueの動作と報告されるトークン数を比較します。圧縮が残りのコンテキストを正確に反映し、入力長エラーの繰り返しを防げれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- zsh
- 領域
- ai, cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100