Repository navigation
Let Codex-backed agents react naturally in conversations - #119649
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e8e419dbc1
ℹ️ 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".
| } | ||
| if (messageToolAvailable) { | ||
| return "For the current source conversation, reply normally in your final assistant message; OpenClaw will deliver it through the active source conversation. Use `message` only for explicit out-of-band sends, media/file sends, or sends to a different target."; | ||
| return "For the current source conversation, reply normally in your final assistant message; OpenClaw will deliver it through the active source conversation. Use `message` for supported non-text actions in the current conversation, such as reacting to its current message. Reserve other `message` actions for explicit out-of-band sends or media/file delivery. Reactions are not delivered automatically."; |
There was a problem hiding this comment.
Don’t promise current-message reactions until supported
When the current source conversation is Matrix with reactions enabled, this new prompt tells Codex to use message for reacting to its current message. The generic message schema makes messageId optional/default-current (src/agents/tools/message-tool.ts:770), but Matrix's react handlers still require an explicit messageId in both action paths (extensions/matrix/src/actions.ts:234 and extensions/matrix/src/tool-actions.ts:191), so following the prompt in that supported channel yields a tool error instead of a reaction; gate this wording to actions that actually accept the current-message fallback or fix Matrix to use it.
Useful? React with 👍 / 👎.
* origin/main: (130 commits) refactor(qa): consolidate scenario runtime helpers (openclaw#119623) fix(telegram): bind Mini App auth to dashboard launches refactor(agent-core): unify session projection and compaction summaries (openclaw#119639) fix(codex): allow natural reactions in the current conversation (openclaw#119649) refactor(providers): deduplicate bundled model catalogs (openclaw#119627) fix(ui): observe the active service worker after asset refresh (openclaw#119622) fix(agents): strip echoed base64 image payloads so photo-heavy turns no longer hit the per-turn output cap (openclaw#119488) improve: make state-heavy test suites faster (openclaw#119617) perf(agents): add concurrency benchmark (openclaw#119569) fix(browser): visibly report failed pairing and tab-sharing actions (openclaw#119526) refactor(lobster): consolidate embedded workflow execution (openclaw#119630) fix(plugin-sdk): stabilize tuple-derived API baseline ordering (openclaw#119635) docs(skills): make full-authority maintainer runs unattended (openclaw#119629) fix(managed-child): honor process groups that vanish before cleanup (openclaw#119614) fix(ci): stop label-driven automation churn (openclaw#119610) fix(media): keep the ttl sweep out of the managed outgoing tree (openclaw#119127) fix(claws): remove owner-qualified skills (openclaw#119606) fix(clawrouter): show stable error for malformed usage responses (openclaw#119580) fix(gateway): claim malformed plugin icon routes (openclaw#119559) fix(telegram): preserve truthful empty-content delivery (openclaw#88810) ...
Codex-backed OpenClaw agents were instructed to use the messaging tool only for out-of-band sends, even though reacting to the current message requires that same tool. This caused agents to recognize a thoughtful reaction and then silently do nothing. Clarify that supported in-conversation actions, including reactions, belong to the messaging tool while ordinary written replies continue through the existing automatic delivery path.