Skip to content

fix: merge PR #1327 #1319 #1318 #1313#1559

Closed
xuwei-xy wants to merge 11 commits intosipeed:mainfrom
xuwei-xy:fix-pr-batch-19
Closed

fix: merge PR #1327 #1319 #1318 #1313#1559
xuwei-xy wants to merge 11 commits intosipeed:mainfrom
xuwei-xy:fix-pr-batch-19

Conversation

@xuwei-xy
Copy link
Copy Markdown

Summary

Merges fixes from open PRs #1327 #1319 #1318 #1313

Vast-Stars and others added 11 commits March 10, 2026 23:29
When users send text+image together in Feishu, the message type is
"post" (rich text) instead of "image". The image download logic only
handled MsgTypeImage, so images embedded in post messages were silently
ignored — the agent received raw JSON instead of actual image content.

- Add extractPostImageKeys() to parse img tags from post content
- Add extractPostText() to extract plain text from post content
- Handle MsgTypePost in downloadInboundMedia to download embedded images
- Handle MsgTypePost in appendMediaTags to add [image: photo] tag
When the message tool sends to a different chat_id (e.g. a newly created
Feishu group), the final reply to the original chat was incorrectly
suppressed. Track the target chat_id in MessageTool and only skip the
outbound reply when it matches the inbound message's chat_id.
…sion

Replace single sentChatID (atomic.Value) with a set of chat_ids so that
when the message tool sends to multiple chats in one round, the final
reply is correctly suppressed for any chat that was already sent to.
…covery

The Lark SDK v3's built-in token retry loop does not clear stale tokens
from cache when the server returns error 99991663 (tenant_access_token
invalid), causing all API calls to fail until the token naturally
expires (~2 hours).

- Add tokenCache struct (implementing larkcore.Cache) with
  Get/Set/InvalidateAll methods and proper expired-entry cleanup
- Wire custom cache into lark.NewClient via WithTokenCache()
- Add invalidateTokenOnAuthError helper called in all API methods
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 14, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ Vast-Stars
✅ tong3jie
❌ OpenClaw-User


OpenClaw-User seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@wj-xiao wj-xiao closed this Mar 14, 2026
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.

5 participants