Files
Yuanhao Luo 6fc59a3c6e feat(feishu): support mention_map for outbound bot-to-bot @ resolution (Fixes #1322) (#1341)
* feat(feishu): support mention_map for outbound bot-to-bot @ resolution

* feat(feishu): support mention_map for outbound bot-to-bot @ resolution (Fixes #1322)

* fix(feishu): update stale @mention test and doc comment for text-format output

After 40406328 made resolveMentionsInContent always emit the MsgTypeText
at syntax (<at user_id="...">), the legacy TestResolveMentions_CardFormat
assertion (expecting the card variant <at id=...>) started failing. Rename
the test to TestResolveMentions_MarkdownContent and assert the text-format
output instead — the behavior under test (markdown @name resolution) is
unchanged, only the expected at-tag format moved.

Also update the doc comment on resolveMentionsInContent that still
referenced "predicted message type" (that branch was removed).

No production behavior change.

* update comment of TestResolveMentions_MarkdownContent fun

* fix(feishu): restore lost test bodies from broken merge conflict resolution

* fix(feishu): restore missing closing braces broken by merge conflict resolution

The merge of main (26d897c) re-introduced the lost-brace bug: the new
TestNewPlatform_ImageBatchWindow was spliced in before the closing braces
of TestSendWithStatusFooter_NoFallbackOnNonMentionAt, leaving the for-loop
and function unclosed. This caused 10 typecheck errors (expected '(',
found TestXxx) and failed CI lint.

Add the two missing closing braces so the file compiles. All feishu
package tests pass (go test ./...).

* style(feishu): apply gofmt to fix trailing whitespace and map alignment

- platform_test.go: remove trailing whitespace on line 1789 comment
- feishu.go: drop blank line in footerElements map literal and realign
  colon spacing (gofmt); main is clean so this issue was introduced in
  this PR, not pre-existing

* docs(changelog): fix Feishu mention_map issue ref (PR #1341 -> Issue #1322)
2026-06-25 07:40:39 +08:00
..