Skip to content

feat: separate run-scoped agency context from shared thread state#555

Merged
nicko-ai merged 3 commits into
mainfrom
codex/separate-context-from-agency
Mar 17, 2026
Merged

feat: separate run-scoped agency context from shared thread state#555
nicko-ai merged 3 commits into
mainfrom
codex/separate-context-from-agency

Conversation

@nicko-ai
Copy link
Copy Markdown
Collaborator

@nicko-ai nicko-ai commented Mar 16, 2026

Summary

  • allow Agency entrypoints to accept a run-scoped agency_context_override
  • allow Agency.get_agent_context() to build a context with an injected thread manager
  • cover response and streaming flows with tests proving isolated per-run history

Notes

  • this is the first implementation slice toward full run-scoped context separation

- add agency_context_override to Agency entrypoints

- allow thread_manager injection when building AgencyContext

- cover isolated thread history with response and stream tests
@nicko-ai nicko-ai added the codex label Mar 16, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d12fdeba81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agency_swarm/agency/core.py Outdated
@nicko-ai nicko-ai requested a review from ArtemShatokhin March 16, 2026 03:08
- move agency_context_override behind existing positional args

- add regression coverage for async, sync, and streaming entrypoints
@nicko-ai nicko-ai merged commit 8451aee into main Mar 17, 2026
5 checks passed
@nicko-ai nicko-ai deleted the codex/separate-context-from-agency branch April 18, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant