Skip to content

feat(line): reply message context awareness#76

Merged
Piboonsak merged 2 commits intomainfrom
copilot/feat-reply-message-context-awareness
Apr 5, 2026
Merged

feat(line): reply message context awareness#76
Piboonsak merged 2 commits intomainfrom
copilot/feat-reply-message-context-awareness

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 5, 2026

Closes #72

Copilot AI linked an issue Apr 5, 2026 that may be closed by this pull request
When a LINE user replies to a past message using LINE's native reply
feature, the webhook event includes `quotedMessageId` in text and sticker
messages. This change:

- Extracts `quotedMessageId` via new `extractLineQuotedMessageId` helper
- Sets `ReplyToId` on the context payload for agent metadata
- Appends `[Replying to message id:<id>]` to the formatted message envelope body
- Adds verbose logging when reply context is detected
- Adds test coverage for text reply, sticker reply, no-reply, and
  image (no quotedMessageId) cases

Agent-Logs-Url: https://github.com/Piboonsak/openclaw_github/sessions/2fc4dbbc-dab7-461b-a72a-f9ee1872fab3
Copilot AI changed the title [WIP] Add context awareness to reply messages feat(line): reply message context awareness Apr 5, 2026
Copilot AI requested a review from Piboonsak April 5, 2026 14:14
@Piboonsak Piboonsak marked this pull request as ready for review April 5, 2026 14:37
@Piboonsak Piboonsak merged commit 25db8f1 into main Apr 5, 2026
@Piboonsak Piboonsak deleted the copilot/feat-reply-message-context-awareness branch April 5, 2026 14:37
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.

feat(line): reply message context awareness

2 participants