Skip to content

[Bug]: Subagent bindings do not load AGENTS.md configuration #19984

@bk201ltd

Description

@bk201ltd

Summary

When a subagent is triggered via binding (e.g., Feishu group message), the subagent does not load its AGENTS.md configuration from the workspace directory. This causes the subagent to behave differently compared to manual spawn.

Steps to reproduce

Create a subagent with a workspace directory containing AGENTS.md
Configure a binding in openclaw.json to trigger this subagent when a message is received in a Feishu group
Send a message in the Feishu group to trigger the subagent
Observe: The subagent responds with chat-like messages instead of following AGENTS.md instructions

Expected behavior

Subagent should load AGENTS.md from its workspace directory when triggered via binding
Should behave the same as manual sessions_spawn

Actual behavior

Workaround:
Manual spawn with detailed instructions = Works correctly
Binding trigger = Does not load AGENTS.md, responds incorrectly

OpenClaw version

2026.2.16

Operating system

ubuntu 24

Install method

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions