Skip to content

fix(subagents): preserve user id in child runtime context#3108

Open
yu-xin-c wants to merge 1 commit into
bytedance:mainfrom
yu-xin-c:codex/3102-preserve-subagent-user-id
Open

fix(subagents): preserve user id in child runtime context#3108
yu-xin-c wants to merge 1 commit into
bytedance:mainfrom
yu-xin-c:codex/3102-preserve-subagent-user-id

Conversation

@yu-xin-c
Copy link
Copy Markdown

Summary

  • carry the authenticated user_id from the lead-agent runtime metadata into task subagent execution
  • pass user_id through SubagentExecutor into the child agent runtime context so runtime-scoped tools do not fall back to default
  • add focused regression coverage for context/metadata extraction and child runtime propagation

Verification

  • uv run ruff format packages/harness/deerflow/agents/lead_agent/agent.py packages/harness/deerflow/subagents/executor.py packages/harness/deerflow/tools/builtins/task_tool.py tests/test_task_tool_core_logic.py tests/test_subagent_executor.py
  • uv run ruff check packages/harness/deerflow/agents/lead_agent/agent.py packages/harness/deerflow/subagents/executor.py packages/harness/deerflow/tools/builtins/task_tool.py tests/test_task_tool_core_logic.py tests/test_subagent_executor.py
  • uv run pytest tests/test_task_tool_core_logic.py tests/test_subagent_executor.py -q — 78 passed

Part of #3102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant