Skip to content

Add Pi runtime context and fast model settings - #21

Merged
YJJosh merged 4 commits into
mainfrom
feature/model-runtime-settings
Jul 14, 2026
Merged

Add Pi runtime context and fast model settings#21
YJJosh merged 4 commits into
mainfrom
feature/model-runtime-settings

Conversation

@YJJosh

@YJJosh YJJosh commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Pi context-window controls based on model limits and the active profile’s /context command support.
  • Synchronize model, reasoning, context-window, and Codex Fast settings before sending prompts.
  • Enable Fast service for supported GPT-5.6 Codex models and validate context values against command injection.
  • Expand server and composer tests and document the Pi runtime settings behavior.

Testing

  • Not run (PR content generated from the provided commit and diff).

Note

Add Pi runtime context window selection and fast model settings

  • Adds /context command support to the Pi adapter, allowing context-window size to be synchronized before each prompt via syncContextWindow in PiAdapter.ts.
  • Model discovery in piModelDiscovery.ts now exposes a 'Context Window' selector with an 'Auto' default and preset numeric options when the Pi profile advertises the context command.
  • Expands Fast-supported model slugs to include gpt-5.6-* variants and adds parsePiContextWindow to validate/normalize context values before sending them to Pi.
  • Reasoning defaults to high when supported, both in Pi model capabilities and in Codex model capabilities when defaultReasoningEffort is unavailable.
  • Behavioral Change: unsupported /context and /fast selections now emit runtime warnings and are silently ignored instead of throwing errors.

Macroscope summarized 86fac02.

- Expose context-window controls when supported by the active Pi profile
- Synchronize reasoning, context, and service tier before prompts
- Enable Fast service for supported GPT-5.6 models
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Jul 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53734dd4ab

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/server/src/provider/pi/piModelDiscovery.ts
YJJosh added 2 commits July 14, 2026 14:44
- Fall back to high when catalog defaults are unavailable
- Apply the same default to discovered Pi Codex models
- Apply the high reasoning default to every supported Pi provider
- Expand coverage for Codex, Claude SDK, and OpenCode models
- Remove the obsolete root README
@YJJosh

YJJosh commented Jul 14, 2026

Copy link
Copy Markdown
Owner Author

@macroscope-app review

@macroscopeapp

macroscopeapp Bot commented Jul 14, 2026

Copy link
Copy Markdown

Manual reviews triggered for commit eca9847:

All prior checks · these links stay valid even if you push more commits.

@macroscopeapp

macroscopeapp Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review triggered! The Approvability Check and Correctness Check are now running. Results will be posted when they complete.

@macroscopeapp

macroscopeapp Bot commented Jul 14, 2026

Copy link
Copy Markdown

Approvability

Verdict: Needs human review

This PR adds new runtime context window and fast model settings that change Pi provider behavior. An unresolved review comment identifies a profile-mismatch issue where advertised options may cause errors with certain profile selections.

You can customize Macroscope's approvability policy. Learn more.

@YJJosh
YJJosh merged commit b27f507 into main Jul 14, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant