Skip to content

exeuntu/pi-extension: preserve integration thinking levels - #6

Open
FnTm wants to merge 1 commit into
boldsoftware:mainfrom
FnTm:fix/pi-integration-thinking-levels
Open

exeuntu/pi-extension: preserve integration thinking levels#6
FnTm wants to merge 1 commit into
boldsoftware:mainfrom
FnTm:fix/pi-integration-thinking-levels

Conversation

@FnTm

@FnTm FnTm commented Sep 9, 2026

Copy link
Copy Markdown

Summary

Integration-backed reasoning models are currently registered without Pi’s built-in capability metadata, so they appear as non-reasoning models and lose their supported thinking levels.

We have a short-term fix in our own codebase that cooks up a static models.json override, which passes the models back in. An upstream fix seemed like a better option for everyone.

This change looks up the matching native Pi model before exe.dev adds the integration alias, then inherits only reasoning and thinkingLevelMap. The exe.dev integration catalog remains authoritative for routing, API type, context/output limits, pricing, and display names. Unknown or custom models retain the existing pricing-catalog fallback behavior.

The capability lookup is optional and defaults to a no-op, so existing callers and unit tests do not need Pi runtime modules.

Before:
image

After:
image

Validation

  • npm test — 26 tests passed
  • git diff --check
  • Isolated exe.dev VM smoke test with a fresh PI_CODING_AGENT_DIR and no models.json override
  • RPC thinking levels:
    • gpt-4o@llm: ["off"]
    • gpt-5.5@llm: ["off","low","medium","high","xhigh"]
    • gpt-5.5-pro@llm: ["medium","high","xhigh"]
    • gpt-5.6-sol@llm: ["off","low","medium","high","xhigh","max"]
  • Ephemeral gpt-5.6-sol@llm --thinking high request completed successfully

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T12:14:13.504076Z d472eae PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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