Skip to content

Keep command text in progress drafts#93711

Merged
vincentkoc merged 2 commits into
openclaw:mainfrom
keshavbotagent:fix/command-progress-text
Jun 16, 2026
Merged

Keep command text in progress drafts#93711
vincentkoc merged 2 commits into
openclaw:mainfrom
keshavbotagent:fix/command-progress-text

Conversation

@keshavbotagent

Copy link
Copy Markdown
Contributor

Summary

  • keep successful command progress drafts showing the command text instead of replacing it with generic completed
  • preserve prior command detail when terminal command-output events only carry success status
  • keep failure statuses visible and suppress generic completed in Telegram/Slack rich progress renderers

Tests

  • node scripts/test-projects.mjs src/channels/streaming.test.ts src/plugin-sdk/channel-streaming.test.ts extensions/discord/src/monitor/message-handler.process.test.ts extensions/telegram/src/bot-message-dispatch.test.ts

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: slack Channel integration: slack channel: telegram Channel integration: telegram size: S triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 16, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e3bd8f7fcd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/channels/streaming.ts Outdated
Comment on lines +1152 to +1159
const existingDetail = existing.detail?.trim();
if (!existingDetail) {
return incoming;
}
const replacement = {
...incoming,
detail: existingDetail,
text: existing.text,

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.

P2 Badge Avoid preserving details for status-only command drafts

When streaming.progress.commandText is "status", the public config contract says command progress should show only the tool label, but this unconditional preservation can copy an earlier command item detail into the completed command-output line. In the embedded exec path, the command item end is emitted with summary: output immediately before the command_output end event, and buildChannelProgressDraftLine uses input.summary before suppressing command progress text, so a successful command with output can leave that output visible in the final progress draft instead of being replaced by the status-only 🛠️ Exec line.

Useful? React with 👍 / 👎.

@vincentkoc vincentkoc self-assigned this Jun 16, 2026
@vincentkoc
vincentkoc force-pushed the fix/command-progress-text branch from e3bd8f7 to 0105a17 Compare June 16, 2026 18:33
@vincentkoc

Copy link
Copy Markdown
Member

Maintainer repair and verification complete.

  • Rebased onto current main and aligned stale post-rebase assertions with the canonical progress-draft helper
  • Focused proof: node scripts/run-vitest.mjs src/plugin-sdk/channel-streaming.test.ts extensions/telegram/src/bot-message-dispatch.test.ts extensions/slack/src/progress-blocks.test.ts extensions/discord/src/monitor/message-handler.process.test.ts src/channels/streaming.test.ts (289 tests passed across 5 shards)
  • Fresh autoreview: clean
  • Real Telegram/Desktop transport proof was not run; deterministic Telegram, Slack, Discord, SDK, and core streaming paths are covered

@vincentkoc
vincentkoc merged commit 257d540 into openclaw:main Jun 16, 2026
165 of 166 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 17, 2026
* Keep command text in progress drafts

* test(channels): align successful progress drafts

---------

Co-authored-by: Vincent Koc <[email protected]>
crh-code pushed a commit to crh-code/openclaw that referenced this pull request Jun 18, 2026
* Keep command text in progress drafts

* test(channels): align successful progress drafts

---------

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

Labels

channel: discord Channel integration: discord channel: slack Channel integration: slack channel: telegram Channel integration: telegram size: S triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants