perf(gateway): reuse loaded turn config for timestamp check (#65645 salvage) - #77612
Merged
kshitijk4poor merged 1 commit intoAug 3, 2026
Merged
Conversation
Re-derivation of PR NousResearch#65645 onto current main: _build_gateway_agent_history already runs inside a turn whose config was loaded once into ctx.user_config; re-reading config from disk via _load_gateway_config() per turn is redundant. Reuse the loaded turn config.
kshitijk4poor
enabled auto-merge (rebase)
August 3, 2026 11:40
|
Code Review: #77612 Verdict: Approve Test for xAI OAuth write-through: validates contract stamping. LGTM - Reviewed diff. Changes are sound. |
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.
Salvage of #65645 by @MaartenDMT — 1-line intent re-derived onto current main with authorship preserved (original was 4,708 commits behind; the touched function moved into TurnContext).
The timestamp check in the gateway message path re-loaded config via _load_gateway_config() when the already-loaded ctx.user_config was in scope. Reuse it. 19 gateway tests green.
Closes #65645.