Repository navigation
Description
Summary
A LINE direct conversation had multiple inbound user messages that did not trigger agent replies when they were sent. The same conversation later recovered without a configuration change, and the previously delayed messages were processed much later, followed by normal replies for newer messages.
This looks distinct from an outbound-only reply token failure: the delayed messages eventually appeared in the agent session transcript and produced replies. The observable gap was between the original LINE message timestamp and the OpenClaw agent run/response time.
Environment
- OpenClaw version:
2026.6.10 (aa69b12) - Host OS: macOS
- Channel: LINE
- Conversation type: direct
- Agent/session key shape:
agent:order-assistant:line:direct:<redacted-line-user-id> - Session id observed locally:
cd6d35b7-053b-4e17-b452-dc7f29703a1a - Model route for the affected session:
gpt-5.5
Observed Timeline
All times below are Asia/Taipei local time on 2026-06-28. User/message contents are omitted or shortened because they are private; the important observation is the delay between source message time and agent processing/reply time.
| LINE message timestamp | Agent processing / reply observed | Approx. delay |
|---|---|---|
| 11:52:12 | 13:55:42 / 13:56:23 | ~2h 4m |
| 12:02:11 | 14:07:57 / 14:08:04 | ~2h 6m |
| 12:19:19 | 14:20:12 / 14:20:21 | ~2h 1m |
| 13:04:01 | 14:32:26 / 14:32:31 | ~1h 28m |
14:33:11 (/status) |
14:33:13 | normal |
| 14:33:47 | 14:33:53 | normal |
After recovery, /status reported the session as active/done with queue depth 0 and the same LINE direct route.
Expected Behavior
LINE inbound messages should either start an agent run promptly, or expose a visible failure/queue state that explains why the message has not reached the agent.
Actual Behavior
Several LINE messages were not replied to near their source timestamps. They were processed much later in the same session, then subsequent messages began receiving normal replies again.
Evidence Collected
- Local
sessions_listshowed the affected session asdone, routed toline:U<redacted>, with the final response visible. - Local
sessions_historyand the JSONL transcript showed the delayed messages eventually entered the agent session and produced replies. openclaw status --deepafter the incident showed the gateway reachable, LINE configured, event loop OK, and OpenClaw up to date at2026.6.10 (aa69b12).- Gateway log files available locally only contained rollover entries for the relevant day; they did not preserve a useful per-webhook receive/dispatch trace for this incident.
- macOS unified log search around the incident window did not show relevant gateway/LINE errors.
Impact
For LINE users, messages can appear to be ignored for more than an hour, then later execute in the same agent session after the user has already continued the conversation. This is especially risky for stateful agents such as order or form assistants because stale user inputs may be processed long after their original context.
Related Existing Issues
- [Bug] LINE channel: messages silently lost due to reply token expiry + missing push fallback safeguards #86012 appears related to LINE reply-token/outbound-delivery failures, but this incident is different because the delayed messages eventually reached the agent transcript and produced replies.
- Feature request: Add Gateway received timestamp to inbound metadata for accurate latency tracking #53678 is related to inbound timestamp observability; this incident is an example where the missing gateway/dispatch timestamps make a one-off delay difficult to diagnose after the fact.
Reproduction Status
This has only been observed once so far and is not currently reproducible on demand. The report is being filed with the available production evidence because the user-visible impact was significant and the current logs were not enough to identify the exact handoff point after the incident.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 28, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 25, 2026, 3:38 AM ET / 07:38 UTC.
Summary
Keep open: current main still has a source-proven deferred-ingress watchdog path, while the formally linked open repair PR owns the bounded fix.
Reproducibility: yes. —current source and focused tests establish the busy-session deferral and watchdog path, though the June production incident cannot be replayed from retained logs.
Root-cause cluster
Relationship:
canonicalCanonical: #97435
Summary: This is the canonical report for the source-proven deferred-ingress liveness defect; one linked open PR is its candidate repair.
Members:
fixed_by_candidate: fix(channels): keep a queued message alive through a long turn instead of dead-lettering it #127950 - The open PR explicitly links this issue and changes the shared deferred-claim liveness path.adjacent_distinct: fix(channels): hold an ingress lane on its head, not on any retrying row #127849 - Its description identifies a separate retry-lane ordering defect rather than this deferred-liveness cause.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
A formally linked open repair PR already owns the concrete source-proven fix; a second repair branch would create competing shared-ingress changes.
Review details
Best possible solution:
Review and land the linked repair if its deferred-liveness path preserves healthy busy-session waits while retaining the watchdog for silent or crashed handlers.
Do we have a high-confidence way to reproduce the issue?
Yes—current source and focused tests establish the busy-session deferral and watchdog path, though the June production incident cannot be replayed from retained logs.
Is this the best way to solve the issue?
Unclear—the linked repair targets the correct owner boundary, but it needs full exact-head PR review before it can be called the final best solution.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against ebf07e56e8de.
Label changes
Label justifications:
P1: A shared channel-ingress path can silently delay or lose real user messages before an agent run.impact:message-loss: A deferred inbound message can enter retry or dead-letter handling without a user-visible outcome.impact:session-state: Delayed messages may be admitted well after their original conversational context.Evidence reviewed
What I checked:
src/channels/message/ingress-drain.ts:394, ebf07e56e8de)extensions/line/src/webhook-spool.ts:219, ebf07e56e8de)src/auto-reply/reply/followup-turn-admission.ts:154, ebf07e56e8de)src/channels/message/ingress-drain.watchdog.test.ts:68, ebf07e56e8de)src/channels/message/ingress-drain.ts:391, 4e8e22f5b17f)Likely related people:
src/channels/message/ingress-drain.ts,extensions/line/src/webhook-spool.ts)src/channels/message/ingress-drain.ts)src/channels/message/ingress-drain.ts,src/channels/message/ingress-drain.watchdog.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Jul 12, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 28, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
3 remaining items