Skip to content

[FEATURE] Maintain consistent session ID across multi-agent execution flows #1595

@nagabharann

Description

@nagabharann

Problem Statement

Dynamically spawned agents in multi-agent scenarios may have different session IDs. This breaks tracing, debugging, and conversation history coherence when agents spawn sub-agents or delegate to other agents.

Proposed Solution

Provide a mechanism to propagate session ID across agent boundaries:

  1. Automatic session ID inheritance when spawning sub-agents
  2. A context propagation mechanism for multi-agent scenarios
  3. Configuration option to maintain or isolate session IDs

Use Case

In multi-agent orchestration:

  1. A coordinator agent receives a request (session ID: abc123)
  2. It spawns specialist agents to handle subtasks
  3. All agents should share session ID abc123 for:
  • End-to-end request tracing
  • Unified conversation history
  • Correlated logging and observability
  • Debugging complex multi-agent flows

Alternatives Solutions

We currently manually propagate session IDs, but this is error-prone and requires modifying agent instantiation patterns.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions