Skip to content

feat(vscode-lm): port six Copilot model entries - #2032

Merged
edelauna merged 1 commit into
Zoo-Code-Org:mainfrom
simurg79:port/vscode-lm-copilot-models-pr13
Oct 14, 2026
Merged

edelauna merged 1 commit into
Zoo-Code-Org:mainfrom
simurg79:port/vscode-lm-copilot-models-pr13

Conversation

@simurg79

@simurg79 simurg79 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Port simurg79/Roo-Code#13 into Zoo Code from upstream head 922db52fdf24fd102fbf4056f33b0136b60ea0ee.

  • Add six VS Code LM / GitHub Copilot catalog entries: Claude Opus 5, Claude Sonnet 5, GPT-5.6 Luna/Sol/Terra, and Gemini 3.6 Flash.
  • Preserve upstream row metadata and ordering, with exact-row, ordering, and internal/alias exclusion tests.
  • Limit this PR to the provider catalog and its focused tests. No version bump, PR Token Optimization — Context Reduction and LLM-Assisted Compression #14 changes, or unrelated streaming-branch commits.
  • Built as one isolated commit on Zoo-Code-Org/Zoo-Code main at 839fd6c03, not on the previous streaming feature branch.

This expands model coverage while retaining the existing default and model-limit semantics.

I have used this code for multiple months without any hiccup. I will have more PRs coming in to add newer model support for vscode-lm.

Validation

Rerun in the isolated publication worktree:

  • pnpm --dir packages/types exec vitest run src/__tests__/vscode-llm.spec.ts — 15 tests passed.
  • pnpm --dir packages/types check-types — passed.
  • pnpm --dir packages/types exec eslint --max-warnings=0 src/providers/vscode-llm.ts src/__tests__/vscode-llm.spec.ts — passed; suppression pruning also found no suppressions.
  • git diff --check and staged diff check — passed.
  • Verified the isolated patch and both file hashes exactly match the completed local port; the PR contains only two files and one commit.

Validation reused the existing Windows dependency installation (Vitest reported 4.1.9; the package manifest declares 4.1.11), rather than performing a fresh lockfile installation. The prior implementation was independently reviewed, per the publication handoff. Publication and verification were AI-assisted.

Related issue and documentation

No approved Zoo Code issue was supplied or identified for this exact port; the source PR is linked above. No issue is claimed closed by this PR.

No separate documentation or visual snapshot changes: this is a catalog-data and regression-test port, with the limit provenance recorded beside the catalog.

Port simurg79/Roo-Code#13 at 922db52fdf24fd102fbf4056f33b0136b60ea0ee without its version bump or PR Zoo-Code-Org#14 changes. Preserve advertised unverified Opus 5 and Gemini 3.6 Flash limits and cover exact rows, ordering, and exclusions.
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: Zoo-Code-Org/Zoo-Code/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 71dd8bc7-7c4a-45a9-8c27-b39c96d1d957

📥 Commits

Reviewing files that changed from the base of the PR and between 839fd6c and 9ac861b.


📒 Files selected for processing (2)
  • packages/types/src/__tests__/vscode-llm.spec.ts
  • packages/types/src/providers/vscode-llm.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📜 Recent review details
🧰 Additional context used
📓 Path-based instructions (4)
For persisted settings, verify the complete schema/storage/runtime/webview round trip, shared default semantics, and focused true plus false/unset tests.

⚙️ CodeRabbit configuration file

Files:

  • packages/types/src/__tests__/vscode-llm.spec.ts
  • packages/types/src/providers/vscode-llm.ts

Require regression coverage at the lowest valid harness with behavior-focused assertions, including relevant negative, error, false/unset, and boundary cases.

⚙️ CodeRabbit configuration file

Files:

  • packages/types/src/__tests__/vscode-llm.spec.ts

Check strict typing and exhaustive behavior across normal, boundary, error, cancellation, retry, and compatibility paths.

⚙️ CodeRabbit configuration file

Files:

  • packages/types/src/__tests__/vscode-llm.spec.ts
  • packages/types/src/providers/vscode-llm.ts

Act as an adversarial second-opinion reviewer.

⚙️ CodeRabbit configuration file

Files:

  • packages/types/src/__tests__/vscode-llm.spec.ts
  • packages/types/src/providers/vscode-llm.ts

🔇 Additional comments (2)
packages/types/src/providers/vscode-llm.ts (1)

20-22: LGTM!

Also applies to: 24-35, 84-95, 132-167, 240-251


packages/types/src/__tests__/vscode-llm.spec.ts (1)

18-38: LGTM!

Also applies to: 40-50, 62-64



📝 Summary

Summary by CodeRabbit

  • New Features
    • Added Claude Opus 5, Claude Sonnet 5, GPT-5.6 Luna, GPT-5.6 Sol, GPT-5.6 Terra, and Gemini 3.6 Flash to the VS Code language model catalog.
    • Model entries include capability and token-limit information, including context-window and maximum input-token limits.

Walkthrough

The VS Code LM catalog adds six model entries: Claude Opus 5, Claude Sonnet 5, three GPT-5.6 variants, and Gemini 3.6 Flash. Tests assert their metadata and ordering, and exclude three utility IDs.

Changes

VS Code LLM catalog

Layer / File(s) Summary
Add model catalog entries
packages/types/src/providers/vscode-llm.ts
The catalog adds six models with capability metadata and context-window and input-token limits. Comments describe the source and verification status of token limits.
Test catalog metadata and ordering
packages/types/src/__tests__/vscode-llm.spec.ts
Tests assert exact metadata for six model families, expected model ID ordering, and the absence of auto, copilot-utility, and copilot-utility-small.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature


Merge Risk: ⚪ Minimal · up to 9ac86

The catalog additions have focused coverage, and no concrete user-facing risk is identified. The change appears ready for normal merge checks.

Pre-merge checks · Passed 7 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Description check Warning The description explains the implementation and validation steps, but it does not satisfy the required issue-link section or complete the template checklist. It explicitly states that no approved Zoo … Link this PR to an approved Zoo Code GitHub issue by replacing the placeholder with Closes: #<issue-number>. Complete the required template sections and checklist, including the test procedure and contribution-guidelines confirmation.
Passed Passed checks (7 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Regression Evidence Passed The PR changes only the VS Code LM catalog and its focused unit test. The new test asserts the complete metadata object and token limits for all six added rows, verifies each required ordering group, …
Security Boundaries Passed No changed path meets a security failure condition. packages/types/src/providers/vscode-llm.ts adds only static model identifiers and numeric metadata. `packages/types/src/tests/vscode-llm.spec.…
Persistence Integrity Passed The pull request changes only a static VS Code LM catalog and its tests. The catalog adds in-memory metadata rows; it does not perform persistence, file writes, asynchronous operations, rollback, or p…
Lifecycle Resource Cleanup Passed PASS. The pull request changes only static VS Code model metadata and unit tests. The changed code adds object-literal entries and assertions; it does not add listeners, watchers, timers, tasks, provi…
Title check Passed The title clearly summarizes the main change: adding six VS Code LM Copilot model entries.

Full details: Description check

Explanation

The description explains the implementation and validation steps, but it does not satisfy the required issue-link section or complete the template checklist. It explicitly states that no approved Zoo Code issue was supplied.


  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review status

Thanks for contributing. This comment tracks the review sequence and the next action.

Current step: Awaiting fresh human maintainer or CODEOWNER approval.

Automated review is complete for the latest commit but does not replace human approval.

Review-state labels are managed by this workflow; do not edit them manually. community-approved is managed the same way — do not add or remove it manually. It signals a fresh community code approval for the current head as an advisory priority only; maintainer review is still required.

@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot added coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit labels Oct 12, 2026
@github-actions github-actions Bot added awaiting-maintainer CodeRabbit approved; waiting for a human maintainer and removed coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit labels Oct 12, 2026

@edelauna edelauna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving - with a comment if you wanted to update in a future PR

version: "claude-opus-5",
name: "Claude Opus 5",
supportsToolCalling: true,
maxInputTokens: 935793,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maxInputTokens here (and for gemini-3.6-flash at line 250) comes from the advertised picker cache and is marked unverified in the header. Since the condense gate reads this field, would a too-high ceiling mean we never condense before the API rejects the request? Is it worth verifying these two with the same binary search used for sonnet-5 and gpt-5.6, or keeping them lower until measured?

@edelauna
edelauna added this pull request to the merge queue Oct 14, 2026
Merged via the queue into Zoo-Code-Org:main with commit f315cf4 Oct 14, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-maintainer CodeRabbit approved; waiting for a human maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants