Skip to content

feat(discord): add native reply-to-message support - #103

Closed
douglance wants to merge 3 commits into
openclaw:mainfrom
douglance:feat/discord-reply-to-message
Closed

douglance wants to merge 3 commits into
openclaw:mainfrom
douglance:feat/discord-reply-to-message

Conversation

@douglance

Copy link
Copy Markdown

Summary

  • Bot responses now use Discord's native reply feature, visually linking to the original message
  • Added replyTo option to sendMessageDiscord, sendDiscordText, and sendDiscordMedia
  • Only the first chunk/attachment uses the reply link; subsequent chunks are regular messages

Changes

  • src/discord/send.ts: Added replyTo?: string to DiscordSendOpts and plumbed through to API calls using message_reference
  • src/discord/monitor.ts: deliverReplies() now passes originalMessageId (from MessageSid) to create reply links

Test plan

  • All existing Discord tests pass (11/11)
  • Manual test: send message to bot in Discord, verify response shows as reply with link to original

Bot responses now link to the original message using Discord's
message_reference API. Only the first chunk/attachment uses the
reply link; subsequent chunks are regular messages.
Prevents reply failures when the original message was deleted.
If the referenced message is gone, the reply sends as a regular
message instead of failing entirely.
@steipete

steipete commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

Thank you! Taking over

@thewilloftheshadow

Copy link
Copy Markdown
Member

Would it be possible to have this as a config? I specifically don't want my instance to do this

@steipete

steipete commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

I don't want this either. I'm exploring if a capability of the model makes sense. Using reply on every message feels unnatural.

@steipete

steipete commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

🦞 Codex Review

Findings

  • 🚨 HIGH: src/discord/monitor.ts hard-wires replies to originalMessageId, bypassing replyToMode/replyToId behavior that exists on main; this drops reply-directive support and will likely conflict on merge. Suggest: resolve reply target via existing resolveDiscordReplyTarget, then fallback to originalMessageId for auto-reply default.

Open Questions

  • Should explicit [reply-to: …] override auto-replying to the triggering message?

Summary
Adds Discord message_reference support (first chunk only) + doc note.

Review by Clawd 🦞 via Codex

@steipete

steipete commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

I landed a version of that online, default off. Model now also has tags to reply. Thanks for the inspiration!

@steipete steipete closed this Jan 3, 2026
dgarson referenced this pull request in dgarson/clawdbot Feb 7, 2026
feat: global bootstrap file loader + design doc
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
- Create src/infra/warning-filter.js with shouldIgnoreWarning + installProcessWarningFilter
- Add unit tests for warning suppression and idempotent install
- Update warnings.js to re-export from warning-filter.js
- Install warning filter before entry.js in openclaw.mjs
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
Tasks completed: 2/2
- Task 1: Port commits #103 and #104 (warning filter centralization)
- Task 2: Port commit #105 (project hygiene)

SUMMARY: .planning/phases/13-paths-config-refactoring/13-05-SUMMARY.md
dgarson referenced this pull request in dgarson/clawdbot Feb 22, 2026
- StatusPageBuilder: live status, 11 components, uptime bars, incident timeline, builder
- DiffViewer: side-by-side/unified code diff, hunk collapse, whitespace toggle
dalefrieswthat pushed a commit to dalefrieswthat/openclaw that referenced this pull request Feb 25, 2026
songliu0403-rgb pushed a commit to songliu0403-rgb/openclaw that referenced this pull request Feb 26, 2026
heatherstew44-maker pushed a commit to heatherstew44-maker/openclaw that referenced this pull request Mar 8, 2026
* wip ui

* pretty much fully new settings page

* proper dark/light mode

* slight style tweak for sidebar

* add about
github-actions Bot pushed a commit to Piboonsak/openclaw_github that referenced this pull request Mar 9, 2026
0x666c6f added a commit to 0x666c6f/openclaw that referenced this pull request Mar 26, 2026
* fix(bot:PLA-917): require verified github api commits

* fix(bot:PLA-917): address PR review findings

* fix(bot:PLA-917): cache github app auth per run

* test(bot:PLA-917): cover signed commit retry flow

* docs(bot:PLA-917): tighten auth helper messaging

* fix(bot:PLA-917): bound github app token cache lifetime

* fix(bot:PLA-917): parameterize github app token cache ttl

* fix(bot:PLA-917): force auth refresh on retry paths

* docs(bot:PLA-917): document verified commit requirement

* refactor(bot:PLA-917): tighten auth helper retries
saml212 referenced this pull request in Rockielab/rockie-claw May 18, 2026
…ask #103 M1 rebase) (#10)

* feat(rockie-gpu): support ~/.rockie/config.json + ROCKIELAB_TENANT_TOKEN env

The CLI now resolves credentials through a fallback ladder so it works
both inside the per-tenant runtime image (env var set by entrypoint.sh)
and on a developer's local shell (config file written by the upcoming
one-line installer).

Token resolution order:
  1. ROCKIELAB_TENANT_TOKEN env var (canonical)
  2. BROKER_TENANT_TOKEN env var (legacy alias)
  3. ~/.rockie/config.json key "tenant_token"
  4. CLIError with exit code 2

Same ladder for the API base URL: ROCKIELAB_API_BASE env -> config file
"api_base" -> API_BASE_DEFAULT.

Malformed config JSON logs a warning to stderr and returns {}, so a
broken config never blocks the env-var path.

Adds overlay/multitenant/tests/test_rockie_gpu_cli.py with 9 unit tests
covering the resolution ladder, malformed-config tolerance, and the
missing-token error.

Refs #103 — milestone M1 of the rockie-gpu CLI install task.

Co-Authored-By: NeverClaudeCode <[email protected]>

* feat(rockie-gpu): add 'list' alias for 'list-prices'

Operators reach for `list` before `list-prices` — wire it as an argparse
alias on the existing subparser so the alias dispatches to the same
`cmd_list_prices` handler. The Phase-3.5 audit flagged a string-match
verification as misleading (argparse displays the canonical name in
--help), so the new test asserts `args.func is` equality instead.

Refs #103 — milestone M1 of the rockie-gpu CLI install task.

Co-Authored-By: NeverClaudeCode <[email protected]>

---------

Co-authored-by: NeverClaudeCode <[email protected]>
saml212 referenced this pull request in Rockielab/rockie-claw May 18, 2026
…ework) (#11)

The CLI's default urllib User-Agent gets blocked by Cloudflare's
"browser_signature_banned" rule on api.rockielab.com — the rockie-loop
daemon hit this same wall in `486da0f348` and fixed it with an explicit
UA. Apply the identical mitigation here so `rockie-gpu list` doesn't
return HTTP 403 on first invocation after a fresh install.

Mirrors platform-context fleet/install-cf-ua-fix-2026-05-18 (the
vendored copy of this file in platform-context/api/installers/).

Refs rockie-workspace#103.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants