Repository navigation
Use catalog-driven runtime model limits - #1
Merged
Merged
Conversation
sambitcreate
marked this pull request as ready for review
July 24, 2026 05:57
sambitcreate
added a commit
that referenced
this pull request
Oct 13, 2026
…e condition, and text-only reply recognition This commit addresses three findings from code review: 1. [chat-pane #1] Observed phone-started turns are no longer suppressed when the chat's cached messages end in an assistant message from a different run. The suppression now checks if the last cached assistant message matches the observed run's generation ID, allowing new observed turns to display even in existing chats. 2. [observed-local-run #2] Fixed a race condition where an obsolete idle-release grace-period read could close a retained observer. After the async read completes, we now recheck the release authority flag before closing, so a retained observation survives if it was claimed by a newer turn. 3. [observed-local-run #3] Text-only replies without timeline fields are now recognized as the current run's saved reply by matching the doneMessageId from the persisted message. The hasReplyFrom predicate now checks both timeline.generationId (for multi-step replies) and doneMessageId (for text-only replies). All observer lifecycle and chat visibility tests pass, including two new tests covering the release race condition and text-only reply handoff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 14, 2026
Merged
This was referenced Nov 11, 2026
This was referenced Nov 21, 2026
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Legacy non-Codex runtime models were hardcoded as text-only with a 128K context window, 8K output limit, and no reasoning. That throttled models such as Gemini 2.5 Pro despite Pi and Aiden's packaged catalog already carrying better capability metadata.
This follows Pi's built-in-provider behavior: provider-owned model metadata survives proxy base-URL routing, connection-discovered model fields act as overrides, and unrelated custom providers cannot borrow another provider's model metadata. The existing OpenAI-compatible Gemini transport is deliberately unchanged; native Google transport remains Phase 1.
Validation
npm run type-checknpm run lintnpm test— 629 TypeScript/JavaScript tests and 41 Rust testsnpm run build