Skip to content

fix(catalog): restore DeepSeek V4 context window on routed rebuilds - #1226

Merged
lidge-jun merged 4 commits into
lidge-jun:devfrom
iF2007:fix/deepseek-jawcode-metadata
Aug 8, 2026
Merged

fix(catalog): restore DeepSeek V4 context window on routed rebuilds#1226
lidge-jun merged 4 commits into
lidge-jun:devfrom
iF2007:fix/deepseek-jawcode-metadata

Conversation

@iF2007

@iF2007 iF2007 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

DeepSeek routed models (deepseek-v4-flash / deepseek-v4-pro) were rebuilt with a 128k context window on every catalog sync, overwriting the user's configured value. Root cause: the registry entry had no jawcodeBundle, so resolveJawcodeProvider("deepseek") returned undefined and the strict-fields fallback wrote 128000. A provider saved under a title-cased key ("DeepSeek") missed the alias table a second time because lookup was case-sensitive.

Fix:

  • src/providers/registry.ts: add jawcodeBundle: "deepseek" to the DeepSeek entry and set modelContextWindows to the official 1,048,576. The DeepSeek V4 (flash/pro) parameters — including the 1,048,576 context window, 384k max output, text-only input, and high default reasoning effort — come from DeepSeek's official Codex integration docs: https://api-docs.deepseek.com/quick_start/agent_integrations/codex/
  • scripts/generate-jawcode-metadata.ts + src/generated/jawcode-model-metadata.ts: fold provider-name case in resolveJawcodeProvider so "DeepSeek" resolves like "deepseek"; regenerate the snapshot with the 1,048,576 window.
  • Tests: aliases now include deepseek, DeepSeek resolves, registry context windows updated, and a new catalog test asserts routed deepseek entries restore 1,048,576 instead of the 128k fallback.

Verification

  • bun run typecheck passes.
  • bun test tests/provider-registry-parity.test.ts tests/jawcode-metadata-sync.test.ts — 35 pass.
  • bun test tests/codex-catalog.test.ts — 120 pass.
  • bun test for the catalog/adjacent suites (admission/restore/golden/prewarm/vision-sidecar/oauth/cursor) — all green.
  • Regeneration guard: generated snapshot matches a fresh run of the generator against the fixed jawcode source.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed. (No user-facing docs change: the value now matches the official spec; no config surface changed.)
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Review readiness checklist

This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:

  • All CI tests are green on my local testing.

  • I pushed my PR to the latest dev commit.

  • I resolved all correct Codex and CodeRabbit findings.

  • My PR is ready for review.

Summary by CodeRabbit

  • Improvements
    • Updated DeepSeek V4 Flash and Pro to support 1,048,576-token context windows.
    • Added compatibility aliases for deprecated DeepSeek model IDs.
    • Improved provider recognition with case-insensitive matching.
    • Enhanced model discovery when DeepSeek models are missing from the model list.
    • Updated metadata to reflect text-only capabilities and automatic compaction limits.
    • Improved compatibility with DeepSeek model metadata and catalog resolution.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Deterministic PR hygiene checks passed.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

✅ READY

  • all PR quality gates passed; the review readiness checklist is complete.

Review readiness checklist

  • ✅ All CI tests are green on my local testing.
  • ✅ I pushed my PR to the latest dev commit.
  • ✅ I resolved all correct Codex and CodeRabbit findings.
  • ✅ My PR is ready for review.

4/4 boxes ticked.

This pull request is already Ready for Review.
The review-ready label marks this PR as ready; review automation runs independently. If no CodeRabbit review appears, comment @coderabbitai review to request one.
Maintainers: @lidge-jun @Ingwannu @Wibias

@github-actions
github-actions Bot marked this pull request as draft August 7, 2026 16:24
@github-actions github-actions Bot added the bug Something isn't working label Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 27b29966-ebeb-44b9-b52c-0aa4eb3749d1

📥 Commits

Reviewing files that changed from the base of the PR and between 8a80428 and 7f53648.

📒 Files selected for processing (2)
  • src/codex/catalog/parsing.ts
  • tests/codex-catalog.test.ts

📝 Walkthrough

Walkthrough

DeepSeek V4 now uses the deepseek Jawcode metadata bundle and a 1,048,576-token context window. Provider resolution accepts case-insensitive aliases. Catalog tests cover metadata, compaction, modalities, and augmentation.

Changes

DeepSeek Jawcode metadata

Layer / File(s) Summary
Provider alias and registry metadata
scripts/generate-model-metadata.ts, src/providers/registry.ts, scripts/model-metadata.source.json, src/codex/catalog/parsing.ts, tests/provider-registry-parity.test.ts
Provider resolution checks the original alias and its lowercase form. The DeepSeek registry uses the deepseek bundle, records legacy model IDs as aliases, and updates both V4 context windows. Catalog augmentation includes DeepSeek. Parity tests cover alias mapping and case-insensitive resolution.
Catalog context and routing validation
tests/provider-registry-parity.test.ts, tests/codex-catalog.test.ts
Tests validate 1,048,576-token context and max-input windows, derived auto-compaction, text-only modalities, metadata resolution, and augmentation when discovery returns no rows.

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

Possibly related PRs

Suggested reviewers: ingwannu, lidge-jun, wibias

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: restoring the DeepSeek V4 context window during catalog rebuilds.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@iF2007
iF2007 marked this pull request as ready for review August 7, 2026 16:37
@github-actions
github-actions Bot marked this pull request as draft August 7, 2026 16:38
@iF2007
iF2007 marked this pull request as ready for review August 7, 2026 16:39
@github-actions
github-actions Bot marked this pull request as draft August 7, 2026 16:39
@iF2007
iF2007 marked this pull request as ready for review August 7, 2026 16:39

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/providers/registry.ts`:
- Around line 1296-1300: Update the DeepSeek registry entry around jawcodeBundle
and models to reconcile the outdated dates and identifiers: use a verification
date that has already occurred, and remove deepseek-chat/deepseek-reasoner
unless compatibility aliases are confirmed supported; if retaining them,
document the explicit post-deprecation compatibility reason. Ensure the current
offerings use deepseek-v4-flash and deepseek-v4-pro as appropriate.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1a502224-4de9-4f42-8086-ea8408a1d09a

📥 Commits

Reviewing files that changed from the base of the PR and between 3e60b1d and 21bedee.

⛔ Files ignored due to path filters (1)
  • src/generated/jawcode-model-metadata.ts is excluded by !**/generated/**
📒 Files selected for processing (4)
  • scripts/generate-jawcode-metadata.ts
  • src/providers/registry.ts
  • tests/codex-catalog.test.ts
  • tests/provider-registry-parity.test.ts

Comment thread src/providers/registry.ts Outdated
@Wibias
Wibias marked this pull request as draft August 7, 2026 18:04
@iF2007
iF2007 marked this pull request as ready for review August 8, 2026 01:44
@github-actions
github-actions Bot marked this pull request as draft August 8, 2026 01:44
@iF2007
iF2007 marked this pull request as ready for review August 8, 2026 02:17
@github-actions
github-actions Bot marked this pull request as draft August 8, 2026 02:17
@iF2007
iF2007 force-pushed the fix/deepseek-jawcode-metadata branch from 07b7e42 to ad4459a Compare August 8, 2026 02:21
@github-actions
github-actions Bot marked this pull request as ready for review August 8, 2026 02:23
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@github-actions[bot] have exceeded the limit for the number of chat messages per hour. Please wait 48 minutes and 19 seconds before sending another message.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@github-actions[bot] have exceeded the limit for the number of chat messages per hour. Please wait 48 minutes and 8 seconds before sending another message.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@github-actions[bot] have exceeded the limit for the number of chat messages per hour. Please wait 47 minutes and 56 seconds before sending another message.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@github-actions[bot] have exceeded the limit for the number of chat messages per hour. Please wait 47 minutes and 45 seconds before sending another message.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@github-actions[bot] have exceeded the limit for the number of chat messages per hour. Please wait 47 minutes and 34 seconds before sending another message.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@github-actions[bot] have exceeded the limit for the number of chat messages per hour. Please wait 47 minutes and 23 seconds before sending another message.

Repository owner deleted a comment from coderabbitai Bot Aug 8, 2026
Repository owner deleted a comment from coderabbitai Bot Aug 8, 2026
Repository owner deleted a comment from coderabbitai Bot Aug 8, 2026
Repository owner deleted a comment from coderabbitai Bot Aug 8, 2026
Repository owner deleted a comment from coderabbitai Bot Aug 8, 2026
Repository owner deleted a comment from coderabbitai Bot Aug 8, 2026
Repository owner deleted a comment from coderabbitai Bot Aug 8, 2026

@Ingwannu Ingwannu left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The underlying fix is still valuable: current dev still has the DeepSeek V4 context values at 1,000,000 and the direct DeepSeek registry entry does not select the deepseek metadata bundle. However, this branch now conflicts with dev, and the metadata pipeline changed after the PR was built. scripts/generate-jawcode-metadata.ts and src/generated/jawcode-model-metadata.ts were replaced by the vendored scripts/model-metadata.source.json -> scripts/generate-model-metadata.ts -> src/generated/model-metadata.ts pipeline, with a byte-for-byte sync guard.\n\nPlease rebase onto current dev, update the vendored source/registry rather than the retired generated paths, regenerate with bun run generate:model-metadata, and keep the focused routed-catalog regression plus tests/model-metadata-sync.test.ts green. I am requesting changes because the current conflicting branch cannot be merged safely, not because the reported context-cap issue is invalid.

@Wibias
Wibias marked this pull request as draft August 8, 2026 09:24
iF2007 added 3 commits August 8, 2026 18:31
DeepSeek routed models were rebuilt with a 128k context window after
every sync because the registry entry had no jawcodeBundle, so the
catalog metadata restore step could not resolve the provider and the
strict-fields fallback overwrote the window. Users who saved the
provider under a title-cased key ("DeepSeek") also missed the alias
table, which was case-sensitive.

Add jawcodeBundle: "deepseek" to the registry entry and fold provider
case in resolveJawcodeProvider, then regenerate the metadata snapshot
with the official 1,048,576-token window for both V4 models. Routed
deepseek entries now restore 1,048,576 instead of the 128k fallback.
deepseek-chat/deepseek-reasoner were deprecated upstream on 2026-07-24 15:59 UTC
and official identifiers are now deepseek-v4-flash/deepseek-v4-pro. The aliases
stay in the registry only as compatibility aliases so existing saved configs
and requests keep validating and routing; the comment now documents that
post-deprecation reason instead of a stale future-dated note.
…a pipeline

The metadata pipeline was de-jawcoded upstream: the bundled snapshot now
lives at scripts/model-metadata.source.json and generates
src/generated/model-metadata.ts. Move the DeepSeek V4 context-window fix
onto that pipeline (1048576 for flash and pro per DeepSeek's official
Codex setup docs) and regenerate the committed output so routed rebuilds
stop falling back to the 128k strict-fields default.
@iF2007
iF2007 force-pushed the fix/deepseek-jawcode-metadata branch from ad4459a to 8a80428 Compare August 8, 2026 10:37
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- Current commit ---'
git rev-parse HEAD

printf '%s\n' '--- Relevant file outlines ---'
ast-grep outline src/codex/catalog/parsing.ts --items all --match 'JAWCODE|Routed' --view expanded
ast-grep outline src/codex/catalog/provider-fetch.ts --items all --match 'augmentRoutedModelsWithJawcodeMetadata' --view expanded

printf '%s\n' '--- Allowlist, guard, and augmentation implementation ---'
rg -n -C 16 -P '\bJAWCODE_CATALOG_AUGMENT_PROVIDERS\b|\baugmentRoutedModelsWithJawcodeMetadata\s*\(' \
  src/codex/catalog tests/codex-catalog.test.ts -g '*.ts'

printf '%s\n' '--- DeepSeek augmentation regression coverage ---'
rg -n -C 20 -P 'augmentRoutedModelsWithJawcodeMetadata\s*\(\s*\[\s*\]\s*,\s*\[\s*["'\'']deepseek["'\'']\s*\]|deepseek-v4-(flash|pro)|1_048_576' \
  tests/codex-catalog.test.ts -g '*.ts'

printf '%s\n' '--- Relevant current change ---'
git diff --unified=30 HEAD^ HEAD -- \
  src/codex/catalog/parsing.ts \
  src/codex/catalog/provider-fetch.ts \
  tests/codex-catalog.test.ts \
  src/providers/registry.ts

Length of output: 47660


@github-actions[bot] The readiness checklist is not correct for the checked-out commit 8a804281b3fab678e0f728185e5be9133bbb6e04.

High priority — Add deepseek to routed-catalog augmentation.

src/codex/catalog/parsing.ts, Line 129, still defines:

export const JAWCODE_CATALOG_AUGMENT_PROVIDERS = new Set(["opencode-go"]);

src/codex/catalog/provider-fetch.ts, Line 1480, skips augmentRoutedModelsWithMetadata() when the provider is not in this set.

Therefore, if DeepSeek /models discovery fails or does not return the V4 models, the rebuild does not append deepseek-v4-flash or deepseek-v4-pro. The jawcodeBundle: "deepseek" mapping cannot enrich catalog rows that do not exist. The fallback path does not restore the 1_048_576 token context window.

tests/codex-catalog.test.ts, Lines 2829-2846, tests buildCatalogEntries() with both DeepSeek rows already present. It does not test augmentation from an empty discovered-model list.

Update the allowlist:

export const JAWCODE_CATALOG_AUGMENT_PROVIDERS = new Set([
  "opencode-go",
  "deepseek",
]);

Add a regression test that calls the augmentation function with [] and ["deepseek"]. Verify that it appends both V4 models and sets contextWindow to 1_048_576.

You are interacting with an AI system.

@github-actions
github-actions Bot marked this pull request as ready for review August 8, 2026 10:39
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- Current revision ---'
git rev-parse HEAD

printf '%s\n' '--- Allowlist and augmentation guard ---'
rg -n -C 12 -P \
  '\bJAWCODE_CATALOG_AUGMENT_PROVIDERS\b|\baugmentRoutedModelsWith(?:Jawcode)?Metadata\s*\(' \
  src/codex/catalog tests/codex-catalog.test.ts -g '*.ts'

printf '%s\n' '--- DeepSeek empty-discovery augmentation coverage ---'
rg -n -C 16 -i -P \
  'augmentRoutedModelsWith(?:Jawcode)?Metadata\s*\(\s*\[\s*\]\s*,\s*\[\s*["'\'']deepseek["'\'']\s*\]|deepseek-v4-(flash|pro)|1_048_576' \
  tests/codex-catalog.test.ts -g '*.ts'

printf '%s\n' '--- Relevant PR-range changes ---'
git diff --unified=30 HEAD^ HEAD -- \
  src/codex/catalog/parsing.ts \
  src/codex/catalog/provider-fetch.ts \
  tests/codex-catalog.test.ts \
  src/providers/registry.ts

Length of output: 46834


@github-actions[bot] The PR is not ready for review. The routed-catalog augmentation finding remains unresolved at 8a804281b3fab678e0f728185e5be9133bbb6e04.

src/codex/catalog/parsing.ts, Line 129, defines:

export const JAWCODE_CATALOG_AUGMENT_PROVIDERS = new Set(["opencode-go"]);

src/codex/catalog/provider-fetch.ts, Line 1480, skips augmentRoutedModelsWithMetadata() for "deepseek".

If DeepSeek /models discovery fails or omits the V4 models, the catalog rebuild cannot append deepseek-v4-flash or deepseek-v4-pro. The jawcodeBundle: "deepseek" mapping cannot apply the 1_048_576 token context window because no DeepSeek catalog rows exist.

tests/codex-catalog.test.ts, Lines 2829-2846, only test rows passed directly to buildCatalogEntries(). Lines 2901-2913 test empty-discovery augmentation only for opencode-go.

Update the allowlist to include "deepseek". Add a regression test that calls augmentRoutedModelsWithMetadata([], ["deepseek"], ...). Verify that both V4 models are appended and each has contextWindow: 1_048_576.

You are interacting with an AI system.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/codex-catalog.test.ts`:
- Around line 2829-2847: Add "deepseek" to the JAWCODE_CATALOG_AUGMENT_PROVIDERS
allowlist so metadata augmentation runs for DeepSeek. In the DeepSeek catalog
tests, add a regression case invoking augmentRoutedModelsWithMetadata([],
["deepseek"]) and assert both V4 models are restored with 1_048_576 context and
max-context windows plus text-only input modalities.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 78bed41f-920b-415f-8bf4-24faa731be16

📥 Commits

Reviewing files that changed from the base of the PR and between ad4459a and 8a80428.

⛔ Files ignored due to path filters (1)
  • src/generated/model-metadata.ts is excluded by !**/generated/**
📒 Files selected for processing (5)
  • scripts/generate-model-metadata.ts
  • scripts/model-metadata.source.json
  • src/providers/registry.ts
  • tests/codex-catalog.test.ts
  • tests/provider-registry-parity.test.ts
💤 Files with no reviewable changes (1)
  • scripts/model-metadata.source.json

Comment thread tests/codex-catalog.test.ts
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- Current revision ---'
git rev-parse HEAD

printf '%s\n' '--- Relevant structure ---'
ast-grep outline src/codex/catalog/parsing.ts --items all --match 'JAWCODE|Routed' --view expanded
ast-grep outline src/codex/catalog/provider-fetch.ts --items all --match 'augmentRoutedModelsWith' --view expanded

printf '%s\n' '--- Allowlist and augmentation guard ---'
rg -n -C 16 -P '\bJAWCODE_CATALOG_AUGMENT_PROVIDERS\b|\baugmentRoutedModelsWith(?:Jawcode)?Metadata\s*\(' \
  src/codex/catalog tests/codex-catalog.test.ts -g '*.ts'

printf '%s\n' '--- DeepSeek augmentation regression coverage ---'
rg -n -C 20 -i -P 'augmentRoutedModelsWith(?:Jawcode)?Metadata\s*\(\s*\[\s*\]\s*,\s*\[\s*["'\'']deepseek["'\'']\s*\]|deepseek-v4-(flash|pro)|1_048_576' \
  tests/codex-catalog.test.ts -g '*.ts'

printf '%s\n' '--- Relevant current diff ---'
git diff --unified=30 HEAD^ HEAD -- \
  src/codex/catalog/parsing.ts \
  src/codex/catalog/provider-fetch.ts \
  tests/codex-catalog.test.ts \
  src/providers/registry.ts

Length of output: 55492


@github-actions[bot] The readiness checklist is not correct for commit 8a804281b3fab678e0f728185e5be9133bbb6e04.

High priority — Add deepseek to routed-catalog augmentation.

src/codex/catalog/parsing.ts, Line 129, defines:

export const JAWCODE_CATALOG_AUGMENT_PROVIDERS = new Set(["opencode-go"]);

src/codex/catalog/provider-fetch.ts, Line 1480, skips augmentRoutedModelsWithMetadata() when a provider is not in this set.

Therefore, if DeepSeek /models discovery fails or omits the V4 models, the catalog rebuild does not append deepseek-v4-flash or deepseek-v4-pro. The jawcodeBundle: "deepseek" mapping cannot apply the 1_048_576 token context window because no DeepSeek catalog rows exist.

tests/codex-catalog.test.ts, Lines 2829-2846, verifies metadata only for DeepSeek rows already passed to buildCatalogEntries(). tests/codex-catalog.test.ts, Lines 2901-2918, verifies empty-discovery augmentation only for opencode-go.

Update the allowlist to include "deepseek". Add a regression test that calls augmentRoutedModelsWithMetadata([], ["deepseek"], ...). Verify that it appends both V4 models and sets each contextWindow to 1_048_576.

You are interacting with an AI system.

@iF2007
iF2007 requested a review from Ingwannu August 8, 2026 10:42
…ty list

Add deepseek to the catalog augmentation allowlist so metadata-sourced V4
rows are appended when live discovery returns nothing, and cover the
empty-discovery path with a regression test asserting the official
1,048,576 context window, auto-compact limit, and text-only input.
@github-actions
github-actions Bot marked this pull request as draft August 8, 2026 10:50
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- Current revision ---'
git rev-parse HEAD

printf '%s\n' '--- Allowlist and augmentation implementation ---'
rg -n -C 14 -P \
  '\bJAWCODE_CATALOG_AUGMENT_PROVIDERS\b|\baugmentRoutedModelsWith(?:Jawcode)?Metadata\s*\(' \
  src/codex/catalog \
  -g '*.ts'

printf '%s\n' '--- DeepSeek empty-discovery coverage ---'
rg -n -C 18 -i -P \
  'augmentRoutedModelsWith(?:Jawcode)?Metadata\s*\(\s*\[\s*\]\s*,\s*\[\s*["'\'']deepseek["'\'']\s*\]|deepseek-v4-(flash|pro)|1_048_576' \
  tests/codex-catalog.test.ts \
  -g '*.ts'

printf '%s\n' '--- Changes in relevant files at current commit ---'
git diff --unified=30 HEAD^ HEAD -- \
  src/codex/catalog/parsing.ts \
  src/codex/catalog/provider-fetch.ts \
  tests/codex-catalog.test.ts

Length of output: 49251


@github-actions[bot] Verified at 7f536489186e7b811d7cd0ea97097d72b16e8d2c.

The routed-catalog augmentation finding is resolved.

  • src/codex/catalog/parsing.ts, Line 129, adds "deepseek" to JAWCODE_CATALOG_AUGMENT_PROVIDERS.
  • src/codex/catalog/provider-fetch.ts, Line 1480, now permits DeepSeek metadata augmentation.
  • tests/codex-catalog.test.ts, Lines 2849-2868, covers empty model discovery with augmentRoutedModelsWithMetadata([], ["deepseek"]).
  • The test verifies both V4 rows and their 1_048_576 token context window.

I found no remaining issue for this finding.

You are interacting with an AI system.

@github-actions
github-actions Bot marked this pull request as ready for review August 8, 2026 10:53
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

@github-actions[bot] I will review the current pull request state.

✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@github-actions[bot] Acknowledged. The PR is marked ready for review. The prior DeepSeek routed-catalog augmentation finding is resolved at 7f536489186e7b811d7cd0ea97097d72b16e8d2c.

You are interacting with an AI system.

@lidge-jun
lidge-jun merged commit 3ad5bb6 into lidge-jun:dev Aug 8, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working review-ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants