Skip to content

fix(subagents): preserve qualified roster ids - #5751

Merged
lidge-jun merged 1 commit into
lidge-jun:devfrom
luvs01:codex/fix-roster-migration-for-slash-qualified-ids
Sep 24, 2026
Merged

lidge-jun merged 1 commit into
lidge-jun:devfrom
luvs01:codex/fix-roster-migration-for-slash-qualified-ids

Conversation

@luvs01

@luvs01 luvs01 commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes the subagent roster migration dropping account-/route-qualified ids whose spelling starts with the retired 5.5/5.6 family prefix (e.g. gpt-5.6-router/model, gpt-5.5-team/gpt-6-sol).
  • The migration's own comment already promises that ids containing / "name a routed or account-qualified target and keep their exact spelling", but upgradeRetiredRosterRows never checked for / — a qualified id beginning with gpt-5.5-/gpt-5.6- matched RETIRED_ROSTER_FAMILY and was silently removed from the user's roster.
  • One-line guard: qualified ids are returned verbatim before the successor/retired lookup. Bare ids behave exactly as before.

Verification

  • Extended tests/routing/subagent-roster-migration.test.ts with gpt-5.6-router/model and gpt-5.5-team/gpt-6-sol cases; they fail on current dev (rows dropped) and pass with the guard.
  • Existing qualified-id cases (custom/model, cursor/gpt-5.6-sol, pool/gpt-5.5) still pass — they only survived before because the regex is anchored at position 0.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed. (No docs change needed — the inline comment's documented behavior now matches the code.)
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Summary by CodeRabbit

  • Bug Fixes
    • Qualified model IDs that include a namespace or account prefix now retain their exact spelling during roster migration, even when the namespace contains text associated with retired models.
    • Other model IDs continue to follow the existing migration rules: they map to a successor, are removed if retired, or remain unchanged.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Sep 24, 2026
@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: lidge-jun/opencodex/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: b278fdeb-6cef-408a-b835-ee945548ee18

📥 Commits

Reviewing files that changed from the base of the PR and between 1c4bd7d and fd62727.

📒 Files selected for processing (2)
  • src/config/subagent-models.ts
  • tests/routing/subagent-roster-migration.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Roster migration now preserves model IDs that contain a slash. A version-1 migration test checks that two qualified IDs retain their exact spellings.

Changes

Roster migration

Layer / File(s) Summary
Preserve qualified roster IDs
src/config/subagent-models.ts, tests/routing/subagent-roster-migration.test.ts
IDs containing a slash bypass successor mapping and retired-family checks. The migration test verifies that gpt-5.6-router/model and gpt-5.5-team/gpt-6-sol remain unchanged.

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

Merge Risk: ⚪ Minimal · up to fd627

Qualified roster IDs retain their spelling during migration, while bare IDs keep the existing migration behavior. No merge-blocking risk is identified.

🚥 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: preserving qualified roster IDs during subagent roster migration. This matches the updates in src/config/subagent-models.ts and tests/routing…
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files.
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 a new PR

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.

@lidge-jun
lidge-jun merged commit 608ed54 into lidge-jun:dev Sep 24, 2026
35 checks passed
@github-actions
github-actions Bot deleted the codex/fix-roster-migration-for-slash-qualified-ids branch October 14, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants