You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/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>
8 months ago
..
acpx refactor: dedupe test and runtime seams 8 months ago
amazon-bedrock build: bump version to 2026.3.22 8 months ago
anthropic build: bump version to 2026.3.22 8 months ago
anthropic-vertex feat: add anthropic-vertex provider for Claude via GCP Vertex AI (#43356) 8 months ago
bluebubbles test: collapse helper extension test suites 8 months ago
brave fix: repair CI regression checks 8 months ago
byteplus build: bump version to 2026.3.22 8 months ago
chutes build: bump version to 2026.3.22 8 months ago
cloudflare-ai-gateway build: bump version to 2026.3.22 8 months ago
copilot-proxy build: bump version to 2026.3.22 8 months ago
deepgram fix(ci): restore plugin manifests and boundary tests 8 months ago
deepseek fix: refactor deepseek bundled plugin (#48762) (thanks @07akioni) 8 months ago
device-pair test: collapse provider plugin suites 8 months ago
diagnostics-otel build: bump version to 2026.3.22 8 months ago
diffs test: collapse utility plugin suites 8 months ago
discord Discord: log rejected native command deploy failures (#54118) 8 months ago
duckduckgo test: collapse search helper suites 8 months ago
elevenlabs refactor(plugins): move remaining channel and provider ownership out of src 8 months ago
exa test: consolidate plugin provider suites 8 months ago
fal fix(ci): resync generated baselines and line runtime seam 8 months ago
feishu fix(feishu): use message create_time for inbound timestamps (#52809) 8 months ago
firecrawl test: collapse provider plugin suites 8 months ago
github-copilot test: collapse provider plugin suites 8 months ago
google test: collapse provider plugin suites 8 months ago
googlechat test: collapse googlechat helper suites 8 months ago
groq fix(ci): restore plugin manifests and boundary tests 8 months ago
huggingface refactor: add provider onboarding preset appliers 8 months ago
imessage test: collapse imessage test suites 8 months ago
irc test: collapse channel setup test suites 8 months ago
kilocode refactor(kilocode): route shared model constants through core seam 8 months ago
kimi-coding Providers: fix kimi-coding thinking normalization 8 months ago
line test: collapse line channel suites 8 months ago
llm-task build: bump version to 2026.3.22 8 months ago
lobster test: collapse provider plugin suites 8 months ago
matrix chore(tts): rename VOICE_BUBBLE identifiers to OPUS and update docs 8 months ago
mattermost test: collapse setup and monitor channel suites 8 months ago
memory-core fix(memory-core): register memory tools independently to prevent coupled failure (#52668) 8 months ago
memory-lancedb test(memory): unmock infra runtime cleanup 8 months ago
microsoft refactor(plugins): move remaining channel and provider ownership out of src 8 months ago
minimax fix: ensure env proxy dispatcher before MiniMax and OpenAI Codex OAuth flows (openclaw#52228) 8 months ago
mistral fix(mistral): repair max-token defaults and doctor migration (#53054) 8 months ago
modelstudio refactor: dedupe test and runtime seams 8 months ago
moonshot refactor: add provider onboarding preset appliers 8 months ago
msteams test: collapse msteams state and monitor suites 8 months ago
nextcloud-talk test: collapse nextcloud-talk send and helper suites 8 months ago
nostr test: collapse helper plugin test suites 8 months ago
nvidia refactor: extract single-provider plugin entry helper 8 months ago
ollama build: bump version to 2026.3.22 8 months ago
open-prose build: bump version to 2026.3.22 8 months ago
openai refactor(openai): extract codex auth identity helper 8 months ago
opencode refactor: unify minimax model and failover live policies 8 months ago
opencode-go build: bump version to 2026.3.22 8 months ago
openrouter refactor: dedupe test and runtime seams 8 months ago
openshell test: collapse utility plugin suites 8 months ago
perplexity test: fix remaining gate drift after main rebase (#52195) (thanks @meng-clb) 8 months ago
phone-control refactor: dedupe test and runtime seams 8 months ago
qianfan refactor: add provider onboarding preset appliers 8 months ago
qwen-portal-auth fix: restore repo-wide gate after upstream sync 8 months ago
sglang build: bump version to 2026.3.22 8 months ago
shared refactor: consolidate plugin sdk surface 8 months ago
signal refactor: align pairing replies, daemon hints, and feishu mention policy 8 months ago
slack refactor: align pairing replies, daemon hints, and feishu mention policy 8 months ago
synology-chat test: collapse synology-chat helper suites 8 months ago
synthetic refactor: add provider onboarding preset appliers 8 months ago
talk-voice refactor: prune bundled sdk facades 8 months ago
tavily test: collapse provider plugin suites 8 months ago
telegram test: collapse telegram transport and status suites 8 months ago
thread-ownership fix(release): isolate config doc surfaces and sdk exports 8 months ago
tlon test: collapse channel setup test suites 8 months ago
together refactor: add provider onboarding preset appliers 8 months ago
twitch test: speed up google and twitch suites 8 months ago
venice refactor: add provider onboarding preset appliers 8 months ago
vercel-ai-gateway refactor: extract single-provider plugin entry helper 8 months ago
vllm build: bump version to 2026.3.22 8 months ago
voice-call test: isolate voice-call temp stores 8 months ago
volcengine build: bump version to 2026.3.22 8 months ago
whatsapp refactor: unify whatsapp identity handling 8 months ago
xai test: collapse provider plugin suites 8 months ago
xiaomi refactor: add provider onboarding preset appliers 8 months ago
zai fix(zai): align remaining pi metadata 8 months ago
zalo refactor: dedupe test and script helpers 8 months ago
zalouser fix(plugins): route keyed queue imports through core (#52608) 8 months ago
.npmignore fix: harden windows npm runtime path 8 months ago