Skip to content

feat(chat): add messages reactions create/list/delete#426

Merged
steipete merged 2 commits intoopenclaw:mainfrom
fernandopps:feat/chat-reactions
Mar 8, 2026
Merged

feat(chat): add messages reactions create/list/delete#426
steipete merged 2 commits intoopenclaw:mainfrom
fernandopps:feat/chat-reactions

Conversation

@fernandopps
Copy link
Copy Markdown
Contributor

@fernandopps fernandopps commented Mar 7, 2026

Summary

  • Adds gog chat messages reactions create|list|delete to manage emoji reactions on Google Chat messages
  • Accepts full resource paths (spaces/.../messages/...) or bare message IDs with --space
  • Adds normalizeMessage helper following the same pattern as normalizeThread
  • Adds chat.messages.reactions.create and chat.messages.reactions.readonly OAuth scopes to the chat service

Commands

gog chat messages reactions create <message> <emoji> [--space <space>]
gog chat messages reactions list   <message>          [--space <space>]
gog chat messages reactions delete <reaction>

All commands support --json, --dry-run, and --plain flags.

Test plan

  • TestNormalizeMessage — covers full path, bare ID + space, missing space, empty, invalid prefix
  • TestExecute_ChatMessagesReactionsCreate_JSON — verifies emoji is sent and reaction resource returned
  • TestExecute_ChatMessagesReactionsCreate_BareIDWithSpace — verifies bare ID + --space resolves correctly
  • TestExecute_ChatMessagesReactionsCreate_ConsumerBlocked — verifies Workspace-only guard
  • TestExecute_ChatMessagesReactionsList_JSON — verifies reactions listed with emoji and user
  • TestExecute_ChatMessagesReactionsDelete_Text — verifies DELETE request and output
  • make ci passes (fmt-check, lint, full test suite)

@fernandopps fernandopps force-pushed the feat/chat-reactions branch from 7ccdb7c to ee8358e Compare March 7, 2026 14:51
@steipete steipete force-pushed the feat/chat-reactions branch from 9a45b2b to ad0e166 Compare March 8, 2026 02:23
@steipete steipete merged commit ebdb23b into openclaw:main Mar 8, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 8, 2026

Landed via temp rebase onto main.

Fixups in the land pass:

  • resolved changelog drift across two PR commits
  • kept react/reaction aliases on the reactions command group
  • added README examples

Thanks @fernandopps!

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.

2 participants