fix(vscode-ide-companion): preserve explicit null context limits#3098
Conversation
Preserve server-provided null context limits instead of replacing them with derived values for known models. Also remove the unused browser tokenLimits helper after the webview context-usage refactor.
📋 Review SummaryThis PR is a well-crafted follow-up to #2874 that fixes how explicit 🔍 General Feedback
🎯 Specific Feedback🟢 Medium
🔵 Low
✅ Highlights
|
tanzhenxin
left a comment
There was a problem hiding this comment.
Review
Clean follow-up to #2874. Deletes the duplicated 196-line tokenLimits.ts, preserves explicit null context limits from ACP, and consolidates state-clearing into resetConversationState. Good test coverage.
Verdict
APPROVE
3e64b4d
into
QwenLM:fix/2847-vscode-new-session-minimal
Summary
contextLimit: nullvalues from ACP instead of overriding them with a derived known-model limitcontextLimitutils/tokenLimits.tshelper after the context-usage refactor in fix(vscode): force fresh ACP session on new-session action #2874Testing
cd packages/vscode-ide-companion && npm run lintcd packages/vscode-ide-companion && npm run check-typescd packages/vscode-ide-companion && npx vitest run src/utils/acpModelInfo.test.ts src/utils/imageSupport.bundle.test.tscd packages/vscode-ide-companion && npm run build:devContext
fix/2847-vscode-new-session-minimalso the original bugfix PR can stay focused while the review polish lands separately.