Skip to content

fix: suppress NO_REPLY in sub-agent announce flow#27535

Closed
kevinWangSheng wants to merge 3 commits intoopenclaw:mainfrom
kevinWangSheng:fix/subagent-announce-no-reply
Closed

fix: suppress NO_REPLY in sub-agent announce flow#27535
kevinWangSheng wants to merge 3 commits intoopenclaw:mainfrom
kevinWangSheng:fix/subagent-announce-no-reply

Conversation

@kevinWangSheng
Copy link
Copy Markdown
Contributor

Summary

When a sub-agent returns NO_REPLY, the announce flow was not suppressing it, causing garbage messages like 'NO' and '✅ Done.' to leak into Slack channels.

Fix

This fix adds check alongside to properly suppress NO_REPLY in sub-agent announce flow.

Related Issue

Fixes #27531

Kevin Shenghui added 3 commits February 26, 2026 05:01
Chokidar v5+ no longer supports glob patterns directly. This fix:
- Uses glob library to expand patterns to actual file paths
- Watches parent directories for add/unlink events
- Filters to only SKILL.md files using ignored option

Fixes openclaw#27404
Some OpenAI-compatible providers (e.g., yunwu-openai) return both
input_tokens/output_tokens (both 0) and prompt_tokens/completion_tokens
(with actual values). The previous code prioritized input_tokens,
resulting in 0 token counts being recorded.

This fix adds a helper that prefers non-zero values, falling back
to the alternate field if the primary is 0.

Fixes openclaw#27509
When a sub-agent returns NO_REPLY, the announce flow was not
suppressing it, causing garbage messages like 'NO' and '✅ Done.'
to leak into Slack channels.

This fix adds isSilentReplyText check alongside isAnnounceSkip
to properly suppress NO_REPLY in sub-agent announce flow.

Fixes openclaw#27531
@openclaw-barnacle openclaw-barnacle bot added agents Agent runtime and tooling size: S labels Feb 26, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Feb 26, 2026

Greptile Summary

This PR bundles three separate bug fixes across different subsystems:

All code changes are functionally correct and follow existing patterns. The NO_REPLY fix correctly uses the well-tested isSilentReplyText utility. The thinking block changes are well-documented with clear rationale. The usage normalization has comprehensive test coverage.

Confidence Score: 4/5

  • This PR is safe to merge with one minor verification needed
  • All code changes are correct and well-tested. The NO_REPLY suppression follows existing patterns, thinking block stripping is properly documented, and usage normalization has good test coverage. Score of 4 (not 5) because the glob dependency was added without corresponding code changes in this PR.
  • Verify package.json - glob dependency added but not used in any code changes

Last reviewed commit: f0a66ac

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

8 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

"dotenv": "^17.3.1",
"express": "^5.2.1",
"file-type": "^21.3.0",
"glob": "^13.0.6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

check that glob dependency is actually used - no imports found in this PR despite commit message 48c38c2 describing implementation details

Prompt To Fix With AI
This is a comment left during a code review.
Path: package.json
Line: 175

Comment:
check that `glob` dependency is actually used - no imports found in this PR despite commit message 48c38c2 describing implementation details

How can I resolve this? If you propose a fix, please make it concise.

steipete added a commit that referenced this pull request Feb 26, 2026
Landed follow-up for #27535 and aligned shared-auth gateway expectations after #27498.

Co-authored-by: kevinWangSheng <[email protected]>
@steipete
Copy link
Copy Markdown
Contributor

Landed on main.

Landed as a minimal rewritten follow-up via commit 96aad96 on main (to avoid stacked unrelated changes). Thanks @kevinWangSheng.

@steipete steipete closed this Feb 26, 2026
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
execute008 pushed a commit to execute008/openclaw that referenced this pull request Feb 27, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
r4jiv007 pushed a commit to r4jiv007/openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
mylukin pushed a commit to mylukin/openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
wanjizheng pushed a commit to wanjizheng/openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 4850148)
vincentkoc pushed a commit to Sid-Qin/openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
vincentkoc pushed a commit to rylena/rylen-openclaw that referenced this pull request Feb 28, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
hughdidit pushed a commit to hughdidit/DAISy-Agency that referenced this pull request Mar 1, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 96aad96)

# Conflicts:
#	src/agents/subagent-announce.ts
#	src/gateway/server.auth.test.ts
steipete added a commit to Sid-Qin/openclaw that referenced this pull request Mar 2, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
robertchang-ga pushed a commit to robertchang-ga/openclaw that referenced this pull request Mar 2, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
hughdidit pushed a commit to hughdidit/DAISy-Agency that referenced this pull request Mar 3, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
(cherry picked from commit 96aad96)

# Conflicts:
#	src/agents/subagent-announce.ts
#	src/gateway/server.auth.test.ts
dorgonman pushed a commit to kanohorizonia/openclaw that referenced this pull request Mar 3, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
thebenjaminlee pushed a commit to escape-velocity-ventures/openclaw that referenced this pull request Mar 7, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>
alexey-pelykh pushed a commit to remoteclaw/remoteclaw that referenced this pull request Mar 12, 2026
Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>

(cherry picked from commit 96aad96)
alexey-pelykh added a commit to remoteclaw/remoteclaw that referenced this pull request Mar 12, 2026
)

Landed follow-up for openclaw#27535 and aligned shared-auth gateway expectations after openclaw#27498.

Co-authored-by: kevinWangSheng <[email protected]>

(cherry picked from commit 96aad96)

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sub-agent announce flow does not suppress NO_REPLY — leaks 'NO' + '✅ Done.' to channel

2 participants