Skip to content

Python: Fix FHA session ID traslation - #7601

Closed
Tao Chen (TaoChenOSU) wants to merge 1 commit into
mainfrom
taochen/issue-7503
Closed

Python: Fix FHA session ID traslation#7601
Tao Chen (TaoChenOSU) wants to merge 1 commit into
mainfrom
taochen/issue-7503

Conversation

@TaoChenOSU

Copy link
Copy Markdown
Contributor

Motivation & Context

Addresses #7503

Description & Review Guide

  • What are the major changes?
  • What is the impact of these changes?
  • What do you want reviewers to focus on?

Related Issue

Fixes #

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR is linked to an issue and there is no other open PR for this issue (see Related Issue above).
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.

@TaoChenOSU Tao Chen (TaoChenOSU) self-assigned this Aug 10, 2026
Copilot AI balanced review requested due to automatic review settings August 10, 2026 17:20
@TaoChenOSU Tao Chen (TaoChenOSU) added python Usage: [Issues, PRs], Target: Python foundry Usage: [Issues, PRs], Target: all Foundry integrations hosting Usage: [Issues, PRs], Target: all hosting related solutions labels Aug 10, 2026
@github-actions github-actions Bot changed the title Fix FHA session ID traslation Python: Fix FHA session ID traslation Aug 10, 2026
@agent-framework-automation agent-framework-automation Bot added the documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs label Aug 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Separates Foundry hosted compute-session IDs from conversation continuation IDs.

Changes:

  • Stores agent_session_id in session state.
  • Preserves conversation IDs independently.
  • Updates documentation and unit tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
_agent.py Separates compute and conversation session handling.
test_foundry_agent.py Updates session behavior tests.
README.md Documents the separate session identifiers.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +814 to +818
if agent_session_id is None and effective_options.get("isolation_key") is not None:
agent_session_id = await self._create_agent_session_id(
isolation_key=cast(str | None, effective_options.get("isolation_key")),
)
session.state[_FOUNDRY_AGENT_SESSION_ID_STATE_KEY] = agent_session_id
conversation_id is None and not options.get("model")
)
if should_strip_model:
if not options.get("model"):

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent Framework Review — Iteration 1

Completed passes: 5 | Result: No high-severity findings

Scope: full PR (1 commit(s)): bb48154777be

Review passes

  • Correctness (gpt-5.6-sol) — No issues found in this pass.
  • Security Reliability (claude-opus-4.8) — No issues found in this pass.
  • Test Coverage (gpt-5.6-sol) — No issues found in this pass.
  • Failure Modes (claude-opus-4.8) — No issues found in this pass.
  • Design Approach (claude-opus-4.8) — No issues found in this pass.

@TaoChenOSU
Tao Chen (TaoChenOSU) deleted the taochen/issue-7503 branch August 10, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs foundry Usage: [Issues, PRs], Target: all Foundry integrations hosting Usage: [Issues, PRs], Target: all hosting related solutions python Usage: [Issues, PRs], Target: Python

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants