Repository navigation
refactor(runtime)!: unify model connections and thought recovery - #671
Merged
Merged
Conversation
Keep native Pi provider identity, add the existing thinking-level setting, reject MCP access from inactive Driver generations, and pin the paired Pi 1.1 Driver with durable native outputs. BREAKING CHANGE: Boot protocol 8 and generation-bound MCP proxy grants require a paired Host and Driver rollout.
Adopt typed Boot 7 model connections and durable thought snapshots across ingestion, viewer recovery, history, and public SSE. Use active Driver instance identity for proxy revocation, switch Gemini to its native protocol, and pin the paired Driver update.
This was referenced Oct 15, 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
Provider thinking can differ from its preview, and restoring an entire Session's thinking can exceed the Host's memory budget.
The Host and paired Driver now share typed model connections, authoritative thought chunks and stable retry identities, with bounded thinking recovery.
execution.modelConnection.49df36e9735f261829ea90b6570382bd33a67775, including Pi delivery recovery and the checkpoint aggregate limit.Why
Lost acknowledgments must preserve recorded content and the committed checkpoint.
Long Sessions must continue validating thought chunks after earlier thoughts leave the viewer's recovery window.
Verification
just check: 3,820 tests passed, 47 conditional skips, zero failures; formatting, docs, lint, workspace types, GraphQL freshness and Public API checks passed.just test-native-host-checkpoint: the pinned Claude CLI completed two turns through oRPC, D1 and SquashFS against a local model endpoint; a new Driver restored the prior native history.just e2e e2e/cases/deterministic/session-log.spec.ts --grep Session.log.acceptance.replay: browser transcript and diagnostics replay passed.just db-reset-local: all 21 migrations applied locally, including the new thought lookup index.just fmt-check-path.Impact
Viewer thinking recovery and public history use bounded windows; thoughts missing their first chunk are omitted from the view while their events remain stored.
Public history reports truncation; SSE preserves recorded event IDs and omits disposable thinking previews.
Additive migration
0020_session-thought-lookup.sqladds the Session/thought expression index, with its generated snapshot and journal entry.The Driver submodule and existing Pi 1.1 lockfile update are included.
execution.modelConnection.Apply the additive index migration during release and retain its files when reverting an applied release.
Existing Gemini Sessions frozen to Chat Completions require a new Session for native Google routing.
Legacy checkpoint cutover follows the verification procedure.
Review
Pi models absent from its catalog use generic text-only defaults without reasoning support or known pricing.
Design (UI changes only, otherwise N/A)
N/A.