ductor icon indicating copy to clipboard operation
ductor copied to clipboard

Emoji reaction status: complete the implementation started in v0.15.0

Open alexeymorozua opened this issue 8 months ago • 1 comments

Summary

In v0.15.0, message_dispatch.py gained _set_reaction and _clear_reaction helper functions, and run_non_streaming_message was updated to use handle_message_streaming. However, the reaction constants (_REACTION_THINKING, _REACTION_TOOL_MAP, _REACTION_SYSTEM, etc.) that these functions reference were never defined — causing a NameError at runtime.

What would be great

A complete emoji reaction status feature:

  • Set a reaction on the user's message while the bot is processing (e.g. 🤔 = thinking)
  • Optionally change the reaction based on the active tool (Read/Grep/Glob → 👀, Edit/Write → ✍️, Bash → 👨‍💻)
  • Change reaction on system events (compacting → 💯, timeout warning → ⚡)
  • Clear the reaction once the response is sent

This would be a clean, non-intrusive status indicator — no extra messages, no streaming noise, works great on mobile.

Why this matters

The infrastructure is already there (_set_reaction, _clear_reaction, handle_message_streaming callbacks). Just needs the constants defined and wired up.

Happy to contribute a PR if that would help.

alexeymorozua avatar Mar 14 '26 14:03 alexeymorozua

Fixed in v0.16.0.

The _REACTION_* constants + ReactionTracker are now implemented as a proper state machine that cycles thinking → tool → system → cleared on every turn. Enabled by default via config.scene.status_reaction = true, so you get live visual feedback out of the box. Exceptions are swallowed so a reaction-API hiccup never blocks a response. Set to false if you want silence. Full details in the v0.16.0 release notes.

PleasePrompto avatar Apr 21 '26 10:04 PleasePrompto