Skip to content

fix(channels): sync status reaction DEFAULT_EMOJIS with documented defaults#81762

Closed
gado-ships-it wants to merge 1 commit into
openclaw:mainfrom
gado-ships-it:fix/status-reaction-emoji-defaults
Closed

fix(channels): sync status reaction DEFAULT_EMOJIS with documented defaults#81762
gado-ships-it wants to merge 1 commit into
openclaw:mainfrom
gado-ships-it:fix/status-reaction-emoji-defaults

Conversation

@gado-ships-it

Copy link
Copy Markdown
Contributor

Summary

Fixes #59077.

The status reaction defaults in src/channels/status-reactions.ts already
document a clearer, self-explanatory emoji set in the StatusReactionEmojis
type comments — and the rest of the codebase was already updated for it:

  • extensions/slack/src/monitor/message-handler/dispatch.ts already maps
    🧠 🛠️ 💻 🌐 ⏳ ⚠️ ✅ ❌ to Slack shortcodes.
  • extensions/telegram/src/status.test.ts already exercises 🛠️ as a
    requested emoji.

But the actual DEFAULT_EMOJIS constant was never flipped — it still held the
old emotional-commentary set (🥱 yawn / 😨 fear / 🤔 / 🔥 / 👍 / 😱).
That is exactly the UX confusion reported in #59077: 🥱 → 😨 reads as mood,
not "slow → stuck".

This change syncs the constant to the documented values:

State Old New
thinking 🤔 🧠
tool 🔥 🛠️
coding 👨‍💻 💻
web 🌐
done 👍
error 😱
stallSoft 🥱
stallHard 😨 ⚠️

compacting (✍) and queued (👀) are unchanged.

Cross-platform check

  • SlackUNICODE_TO_SLACK in dispatch.ts already has shortcodes for
    every new emoji (brain, hammer_and_wrench, computer,
    globe_with_meridians, hourglass_flowing_sand, warning,
    white_check_mark, x).
  • Telegram — Telegram only allows a fixed reaction set, and none of the new
    emoji are in it. The existing TELEGRAM_STATUS_REACTION_VARIANTS fallback
    lists handle this: resolveTelegramReactionVariant walks the per-state
    variant list and picks the first Telegram-supported emoji, so Telegram keeps
    rendering its supported equivalents (🤔/🔥/👨‍💻/...). Graceful degradation,
    no behavior change on Telegram.
  • Discord / WhatsApp / others — use raw unicode reactions; the new emoji
    are all standard and valid as reactions.

Power users can still override any of these via
messages.statusReactions.emojis in config.

Verification

  • pnpm test src/channels/status-reactions.test.ts src/channels/status-reactions.slack-lifecycle.test.ts — 2 files, 51 tests passed
  • pnpm test extensions/telegram/src/status.test.ts — 1 file, 27 tests passed
  • Tests reference DEFAULT_EMOJIS.* symbolically, so no assertions are pinned to the old literals.

…faults

The doc comments, Slack shortcode map, and Telegram variant tests were
already updated to the clearer status emoji, but DEFAULT_EMOJIS itself
still held the old emotional-commentary set (🥱/😨/🤔/🔥/...). Sync the
constant so stall and lifecycle reactions actually render as the
documented status indicators.

Fixes openclaw#59077
@openclaw-barnacle openclaw-barnacle Bot added size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 14, 2026
@clawsweeper

clawsweeper Bot commented May 14, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(channels): sync status reaction DEFAULT_EMOJIS with documented defaults This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@gado-ships-it

Copy link
Copy Markdown
Contributor Author

Folding this into #80612 instead — that PR already touches DEFAULT_EMOJIS and the status reaction lifecycle, so keeping the #59077 emoji-default replacement in the same PR avoids two PRs racing the same constant. The emoji change (🧠 thinking, 🛠️ tool, 💻 coding, 🌐 web, ⏳ stallSoft, ⚠️ stallHard, ✅ done, ❌ error) is now commit a6aa026 on #80612. Closing as superseded.

@gado-ships-it gado-ships-it deleted the fix/status-reaction-emoji-defaults branch May 14, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: XS 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.

Default status reaction emoji are unclear (🥱😨 for stalls)

1 participant