Conversation
…2 current Reproduces #46663: markOpenCodeLegacy's price clause marks GPT-6.2 Astra, Astra Pro and Sol legacy because Healthcare variants in the same family shipped a week later at the same price. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and Sol legacy OpenCode lists OpenAI's Healthcare variants in the same family as GPT-6.2 Astra and Sol, a week later and at the same price, so the price clause in markOpenCodeLegacy treated them as replacements. A release whose line extends another line in its family (gpt-astra-healthcare extends gpt-astra) is a variant of that model, so its price no longer supersedes anything. Renamed sizes such as gemini-4-argon -> gemini-4-carbon still do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — The change keeps base OpenCode models current when later same-price variants appear. Legacy status also controls scheduled-task default selection, so the resulting change in model preselection needs human confirmation. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
OpenCode's GPT-6.2 Astra and Sol models (and their Fast and Pro versions) were marked legacy, which hid them from @-mentions and put them behind "Show more". The cause was that OpenAI later released Healthcare variants in the same OpenCode family at the same price. Now a release that only adds a variant suffix to an existing model line (e.g.
gpt-astra-healthcarenext togpt-astra) no longer supersedes that model by price. Renamed sizes at the same price (e.g. Gemini 4 Argon -> Carbon) still mark the older one legacy.Fixes #46663
Reproduction on main
Commit a5a39fa (origin/main). Real OpenCode v2.4.3 on the VM, with OpenAI connected through the hub; its catalog has the same GPT-6.x Astra/Sol/Healthcare models, families, release dates and prices as the issue's table (checked with
opencode api get /api/model). Started the real server from the checkout:T3CODE_DEV_SEED=0 node apps/server/src/bin.ts serve --base-dir <scratch> --port 38663 --host 127.0.0.1. Enabled the OpenCode instance in that base dir's settings.json (providerInstances.opencode.enabled: true). The server hot-reloaded the setting, probed OpenCode (status ready, version 2.4.3) and wrote caches/opencode.json. The snapshot has isLegacy: true for openai/gpt-6.2-astra, -astra-fast, -astra-pro, gpt-6.2-sol, -sol-fast and -sol-pro. gpt-6.2-astra-ultrafast, gpt-6.2-sol-ultrafast and all *-healthcare variants are current. This is exactly the issue's table. Older versions (gpt-6-astra, gpt-6.1-sol, etc.) are legacy through the release-line clause, as expected. The composer's @-mention list skips legacy models (composerModelMentions.ts), so these never show up under OpenCode. I did not drive the web composer UI; the snapshot flag it reads is what I checked. Failing test: branch factory/repro-46663 (e470a10) adds one test to packages/provider-opencode/src/server/status.test.ts. It calls openCode2ProviderModels with gpt-6.2-astra, gpt-6.2-astra-pro, gpt-6.2-astra-healthcare, gpt-6.2-sol and gpt-6.1-sol-healthcare (same family, Healthcare a week later at the same price) and expects none to be legacy. On main it gets [openai/gpt-6.2-astra, openai/gpt-6.2-astra-pro, openai/gpt-6.2-sol].Evidence
Being captured: before and after in the real app. This section is filled in before the pull request can merge.
Tests
vp test run src/server/status.test.ts(packages/provider-opencode): 48 passed; without the fix the repro test fails (1 failed, 47 passed)openCode2ProviderModels: on main the six gpt-6.2 Astra/Sol models are legacy; with the fix they are current and no other model's flag changedvp run check:changed: format, lint, knip, typecheck (10 packages) and tests all passvp run typecheck(packages/provider-opencode): no errors (only existing schemaClassMissingBrand suggestions)Not in this change
Who did the work
Run by the t3code factory in T3 Code.