Repository navigation
fix(runtime): preserve repeated tool executions and repair Gemini Live setup - #1819
Merged
Merged
Conversation
Repeated provider IDs were mistaken for replayed history, dropping real results and freezing the outgoing request. Assign execution IDs before Pi journals each response and retain completed pairs at the request boundary. Keep identity reservations across compaction and model fallback. Fixes vastsa#1815
Gemini rejects the additionalProperties keyword in its setup Schema. Use its supported schema subset while keeping OpenAI and Host validation strict. Reject failed setup immediately and retain the first socket failure's diagnostics in the provider log without exposing them over IPC. Fixes vastsa#1812
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.
Fixes #1815
Fixes #1812
Problems and fixes
Repeated tool executions (#1815). Providers can reuse a tool-call ID for independent executions. The request guard treated every later occurrence as replay, discarding real results and leaving the model to repeat an unchanged request. The parent runtime also journals results by ID, so changing only the guard was insufficient.
Gemini Live setup (#1812). Work-bound calls sent
additionalProperties: false, which Gemini's Schema rejects. The adapter then reported the rejection as a network error and left setup waiting.Two focused fix commits; relevant runtime, logging, and E2E specifications are synchronized in both maintained documentation locales.
Verification
Candidate:
4d5bb44cdf12724348b62d7eecd0b13e453f3668Base main:
fc8d396ce266b1b5cbd5d29e1feeee4825af1ed8On macOS arm64 with Node 24.18.0, matching the project's CI major and documented Electron Node runtime:
Reproducible suite commands (from each package directory, using the installed toolchain):
Regression evidence and repeated checks:
extensions/managed-exec.test.tsone-second readiness poll; that test and implementation are byte-identical to upstream. No assertion or timeout was relaxed. Its isolated Node 24 run and the final Node 24 full suite passed.Limits and compatibility
NOT RUN: full
test:e2e:live-voiceElectron/Host journey. The fixture cannot start because no Rust host binary is available; this machine also lacks Cargo and an installed Electron runtime binary. The adapter/service/local-transport checks above do not certify the complete Electron journey, real Gemini account access, or physical audio devices.Existing host dependencies were reused through workspace links. Missing dependencies were installed once from the lockfile in the primary checkout; the temporary Node 24 archive was verified against the official checksum. No real provider, paid request, or user profile was used.
No database migration, permission change, IPC DTO change, or dependency/lockfile update. Previously discarded historical results cannot be reconstructed by this fix. Please review through the normal repository gates.