Skip to content

fix(pi): preserve nested slashes in exported model IDs - #8171

Closed
huenchunb wants to merge 1 commit into
lidge-jun:devfrom
huenchunb:fix/8168-pi-export-slash-models
Closed

huenchunb wants to merge 1 commit into
lidge-jun:devfrom
huenchunb:fix/8168-pi-export-slash-models

Conversation

@huenchunb

@huenchunb huenchunb commented Nov 4, 2026 •

Copy link
Copy Markdown

Summary

  • Preserve the full provider/native model selector when generating Pi's model catalog, so nested upstream IDs such as OpenRouter's openrouter/free export as openrouter/openrouter/free instead of the invalid openrouter/openrouter-free.
  • Keep synthetic Fast selectors and native OpenAI model IDs unchanged; the adjustment is limited to Pi serialization.
  • Add a regression test for nested slash IDs and document the selector contract in the Pi guide and client-integration architecture notes.

Fixes #8172

Verification

  • npm exec --yes [email protected] -- bun test tests/config/client-config-export.test.ts — passed (98 tests, 0 failures), after the Fast-row preservation adjustment.
  • npm exec --yes [email protected] -- bun run typecheck — passed (2,316 files; run before the final Fast-row preservation adjustment).
  • npm exec --yes [email protected] -- bun run test:changed — passed (11,536 passed, 34 skipped, 0 failed), after the Fast-row preservation adjustment.
  • npm exec --yes [email protected] -- bun run structure:check — passed after updating the structure contract.
  • git diff --cached --check — passed.

Note: typecheck passed immediately before the final Fast-row adjustment and was not rerun afterward.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • 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:

  • Required local validation passed; commands, results, and any full-suite exception are documented.

  • I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).

  • I resolved all correct Codex and CodeRabbit findings.

  • My PR is ready for review.

@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

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

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

⏳ DRAFT

  • review readiness checklist open (0/4 boxes ticked).

What to do

  • Tick all four boxes in the PR description once you're done (currently 0/4).

Review readiness checklist

  • ⬜ Required local validation passed; commands, results, and any full-suite exception are documented.
  • ⬜ I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
  • ⬜ I resolved all correct Codex and CodeRabbit findings.
  • ⬜ My PR is ready for review.

0/4 boxes ticked.

This PR stays in draft until every box above is ticked.

Hygiene

✅ Deterministic PR hygiene 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant