test(agent): cover OAuth same-session resume - #198
Open
xz-dev wants to merge 1 commit into
Open
Conversation
Drive the real latest-Pi ModelRuntime, OAuth credential refresh, isolated AgentSession, and AgentManager resume path across two turns. Keep the file loadable and skipped on pre-migration Pi. Fixes: tintinweb#197
xz-dev
added a commit
to xz-dev/pi-subagents-tintinweb
that referenced
this pull request
Aug 2, 2026
xz-dev
added a commit
to xz-dev/pi-subagents-tintinweb
that referenced
this pull request
Aug 4, 2026
xz-dev
added a commit
to xz-dev/pi-subagents-tintinweb
that referenced
this pull request
Aug 4, 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
Fixes #197.
Extend the merged #152 latest-Pi guard to prove the behavior that parent
ModelRuntimeforwarding protects:AgentManager.resume()reuses the exact same real childAgentSessionand session ID;The test remains loadable on the pinned pre-migration Pi and skips there. The existing
compat-latest-pijob installs current Pi and runs this file.Verification
Pinned Pi 0.80.6:
npm run lintnpm run typechecknpm run test— 820 passed, 6 skippednpm run buildCurrent public Pi 0.83.0:
ModelRuntimeforwarding — issue Test OAuth inheritance and same-session subagent resume #197 test failsLive smoke with existing local authentication:
0.83.0-xz.124.1.g088e16f1openai-codex/gpt-5.6-luna, thinkinghighISSUE197-LIVE-1, then resumed to returnISSUE197-LIVE-2:ISSUE197-LIVE-1Independent review: C0/I0/M0.