openclaw/extensions
Lin Z a0b9dc0078
fix(feishu): use message create_time for inbound timestamps (#52809)
* fix(feishu): use message create_time instead of Date.now() for Timestamp field

When a message is sent offline and later retried by the Feishu client
upon reconnection, Date.now() captures the *delivery* time rather than
the *authoring* time.  This causes downstream consumers to see a
timestamp that can be minutes or hours after the user actually composed
the message, leading to incorrect temporal semantics — for example, a
"delete this" command may target the wrong resource because the agent
believes the instruction was issued much later than it actually was.

Replace every Date.now() used for message timestamps with the original
create_time from the Feishu event payload (millisecond-epoch string),
falling back to Date.now() only when the field is absent.  The
definition is also hoisted to the top of handleFeishuMessage so that
both the pending-history path and the main inbound-payload path share
the same authoritative value.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test(feishu): verify Timestamp uses message create_time

Add two test cases:
1. When create_time is present, Timestamp must equal the parsed value
2. When create_time is absent, Timestamp falls back to Date.now()

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: revert unrelated formatting change to lifecycle.test.ts

This file was inadvertently formatted in a prior commit. Reverting to
match main and keep the PR scoped to the Feishu timestamp fix only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(feishu): use message create_time for inbound timestamps (#52809) (thanks @schumilin)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: George Zhang <georgezhangtj97@gmail.com>
2026-03-25 08:36:12 -07:00
..
acpx refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
amazon-bedrock build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
anthropic build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
anthropic-vertex feat: add anthropic-vertex provider for Claude via GCP Vertex AI (#43356) 2026-03-20 18:48:42 -04:00
bluebubbles test: collapse helper extension test suites 2026-03-25 05:21:16 +00:00
brave fix: repair CI regression checks 2026-03-25 00:20:24 +00:00
byteplus build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
chutes build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
cloudflare-ai-gateway build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
copilot-proxy build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
deepgram fix(ci): restore plugin manifests and boundary tests 2026-03-22 20:01:25 -07:00
deepseek fix: refactor deepseek bundled plugin (#48762) (thanks @07akioni) 2026-03-23 05:06:07 -07:00
device-pair test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
diagnostics-otel build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
diffs test: collapse utility plugin suites 2026-03-25 04:25:02 +00:00
discord Discord: log rejected native command deploy failures (#54118) 2026-03-25 09:19:46 -04:00
duckduckgo test: collapse search helper suites 2026-03-25 00:42:09 +00:00
elevenlabs refactor(plugins): move remaining channel and provider ownership out of src 2026-03-22 19:13:25 -07:00
exa test: consolidate plugin provider suites 2026-03-25 00:42:09 +00:00
fal fix(ci): resync generated baselines and line runtime seam 2026-03-22 19:53:26 -07:00
feishu fix(feishu): use message create_time for inbound timestamps (#52809) 2026-03-25 08:36:12 -07:00
firecrawl test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
github-copilot test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
google test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
googlechat test: collapse googlechat helper suites 2026-03-25 05:33:57 +00:00
groq fix(ci): restore plugin manifests and boundary tests 2026-03-22 20:01:25 -07:00
huggingface refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
imessage test: collapse imessage test suites 2026-03-25 05:21:16 +00:00
irc test: collapse channel setup test suites 2026-03-25 04:52:36 +00:00
kilocode refactor(kilocode): route shared model constants through core seam 2026-03-22 19:43:19 -07:00
kimi-coding Providers: fix kimi-coding thinking normalization 2026-03-24 10:58:03 -07:00
line test: collapse line channel suites 2026-03-25 04:25:02 +00:00
llm-task build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
lobster test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
matrix chore(tts): rename VOICE_BUBBLE identifiers to OPUS and update docs 2026-03-25 10:49:21 +05:30
mattermost test: collapse setup and monitor channel suites 2026-03-25 04:25:02 +00:00
memory-core fix(memory-core): register memory tools independently to prevent coupled failure (#52668) 2026-03-23 17:05:37 +08:00
memory-lancedb test(memory): unmock infra runtime cleanup 2026-03-25 10:50:00 +05:30
microsoft refactor(plugins): move remaining channel and provider ownership out of src 2026-03-22 19:13:25 -07:00
minimax fix: ensure env proxy dispatcher before MiniMax and OpenAI Codex OAuth flows (openclaw#52228) 2026-03-23 09:26:34 -05:00
mistral fix(mistral): repair max-token defaults and doctor migration (#53054) 2026-03-23 10:57:56 -07:00
modelstudio refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
moonshot refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
msteams test: collapse msteams state and monitor suites 2026-03-25 05:57:02 +00:00
nextcloud-talk test: collapse nextcloud-talk send and helper suites 2026-03-25 05:39:11 +00:00
nostr test: collapse helper plugin test suites 2026-03-25 04:52:36 +00:00
nvidia refactor: extract single-provider plugin entry helper 2026-03-23 01:56:00 +00:00
ollama build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
open-prose build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
openai refactor(openai): extract codex auth identity helper 2026-03-25 04:24:46 -07:00
opencode refactor: unify minimax model and failover live policies 2026-03-23 00:02:35 -07:00
opencode-go build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
openrouter refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
openshell test: collapse utility plugin suites 2026-03-25 04:25:02 +00:00
perplexity test: fix remaining gate drift after main rebase (#52195) (thanks @meng-clb) 2026-03-22 16:09:43 -07:00
phone-control refactor: dedupe test and runtime seams 2026-03-24 23:33:30 +00:00
qianfan refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
qwen-portal-auth fix: restore repo-wide gate after upstream sync 2026-03-22 17:16:43 +00:00
sglang build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
shared refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
signal refactor: align pairing replies, daemon hints, and feishu mention policy 2026-03-25 04:22:53 -07:00
slack refactor: align pairing replies, daemon hints, and feishu mention policy 2026-03-25 04:22:53 -07:00
synology-chat test: collapse synology-chat helper suites 2026-03-25 05:33:57 +00:00
synthetic refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
talk-voice refactor: prune bundled sdk facades 2026-03-19 07:17:04 +00:00
tavily test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
telegram test: collapse telegram transport and status suites 2026-03-25 11:23:18 +00:00
thread-ownership fix(release): isolate config doc surfaces and sdk exports 2026-03-18 17:14:15 -07:00
tlon test: collapse channel setup test suites 2026-03-25 04:52:36 +00:00
together refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
twitch test: speed up google and twitch suites 2026-03-24 16:26:58 +00:00
venice refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
vercel-ai-gateway refactor: extract single-provider plugin entry helper 2026-03-23 01:56:00 +00:00
vllm build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
voice-call test: isolate voice-call temp stores 2026-03-25 11:39:47 +00:00
volcengine build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
whatsapp refactor: unify whatsapp identity handling 2026-03-25 04:46:24 -07:00
xai test: collapse provider plugin suites 2026-03-25 04:25:02 +00:00
xiaomi refactor: add provider onboarding preset appliers 2026-03-23 01:56:00 +00:00
zai fix(zai): align remaining pi metadata 2026-03-22 17:51:29 -07:00
zalo refactor: dedupe test and script helpers 2026-03-24 15:48:35 +00:00
zalouser fix(plugins): route keyed queue imports through core (#52608) 2026-03-22 20:35:28 -07:00
.npmignore