Skip to content

fix(transport): explain Command Code model plan denials - #234

Merged
pierreraby merged 3 commits into
mainfrom
fix/model-not-in-plan
Nov 28, 2026
Merged

pierreraby merged 3 commits into
mainfrom
fix/model-not-in-plan

Conversation

@pierreraby

Copy link
Copy Markdown
Collaborator

Summary

  • Recognize the 403 MODEL_NOT_IN_PLAN response reported by @JaimeGonzalezVallejo in feat(models): stop offering Command Code models the account's plan excludes #233. Explain that the selected model was refused by the current plan and suggest choosing an included model.
  • Keep upgrade_required, ambiguous authentication failures, and other responses distinct. Preserve the HTTP status for diagnostics and avoid repeating the raw provider text in the new message.
  • Do not add a plan lookup, a deny cache, or picker filtering. The public catalog has no per-account entitlements, and a refusal on one request should not hide a model after account access changes.

Refs #233. This is the diagnostic part only; leave the issue open for the picker discussion.

Validation

  • Transport tests cover the reported response, unrelated 403s, host error events and iterator failures, and a successful next request with the same key.
  • Pi 1.7.0 and Oh My Pi 18.22.0 mock integration tests verify the message and exactly one inference request on the tested route. Host protocol and endpoint routing suites pass separately.
  • Typecheck, Pi entrypoint typecheck, formatting, and git diff --check pass. No live inference used.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Memory benchmark

Compared base ac686ff with PR head aa7542d on the same GitHub-hosted darwin runner. Lower values are better.

Metric Base PR PR − Base Change
Stable RSS 106.9 MiB ± 0.4 MiB 107.1 MiB ± 0.4 MiB -0.2 MiB ± 0.8 MiB -0.2%
Physical footprint 60.6 MiB ± 0.5 MiB 61.3 MiB ± 0.9 MiB +0.8 MiB ± 1.4 MiB +1.3%
Physical peak 71.7 MiB ± 1.4 MiB 73.0 MiB ± 1.0 MiB +1.5 MiB ± 2.4 MiB +2.1%

Interpretation: No metric shows a clear Base-to-PR difference beyond its measured run-to-run variation.

Extension overhead above pi baseline

Metric Base overhead PR overhead Difference
Stable RSS +6.0 MiB ± 0.7 MiB +5.6 MiB ± 0.2 MiB -0.2 MiB ± 0.8 MiB
Physical footprint +2.5 MiB ± 0.4 MiB +3.3 MiB ± 1.0 MiB +0.8 MiB ± 1.4 MiB
Physical peak +3.6 MiB ± 1.3 MiB +3.5 MiB ± 1.4 MiB +1.5 MiB ± 2.4 MiB

Values are medians of 6 alternating, paired runs. The value after ± is the median absolute deviation (MAD). Each process was sampled 12 times after a 2500 ms warm-up.

Environment: pi 0.84.4, Bun 1.4.4, darwin arm64. RSS comes from ps; physical footprint and peak come from macOS footprint.

This is a comparative signal, not a pass/fail threshold. GitHub-hosted runner noise can affect absolute values.

@pierreraby
pierreraby merged commit 6491c89 into main Nov 28, 2026
15 checks passed
@pierreraby
pierreraby deleted the fix/model-not-in-plan branch November 28, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant