Skip to content

Fix subagent params alias dispatch#359

Open
RED-ROSE515 wants to merge 1 commit into
CraftOS-dev:mainfrom
RED-ROSE515:fix/subagent-params-alias
Open

Fix subagent params alias dispatch#359
RED-ROSE515 wants to merge 1 commit into
CraftOS-dev:mainfrom
RED-ROSE515:fix/subagent-params-alias

Conversation

@RED-ROSE515

Copy link
Copy Markdown

Summary

Fixes #355.

Sub-agent action dispatch now accepts params as an alias for parameters.
Some LLM outputs mirror the compact action schema key params, which previously caused the runner to drop the payload before calling sub_task_end.
As a result, sub_task_end received only _session_id and failed with Invalid status.

Changes

  • Added parameter extraction helper in SubAgentRunner
  • Preserves existing parameters behavior and gives it precedence over params
  • Added regression tests for:
    • params alias dispatch
    • parameters precedence when both keys are present

Verification

  • Direct full reproduction passed
  • Focused regression functions passed
  • python -m compileall app\subagent\runner.py tests\test_subagent_runner.py passed

@RED-ROSE515

Copy link
Copy Markdown
Author

Hello @zfoong , @ahmad-ajmal , @korivi-CraftOS .
Please check this PR and let me know if it's not working on your side.
Thanks.

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.

[V1.4.1] Research subagents fail to complete sub_task_end due to error status

2 participants