hermes - 💡(How to fix) Fix Improve visibility when Weixin session expires

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

  • sendmessage error ... session timeout
RAW_BUFFERClick to expand / collapse

Issue: Improve visibility when Weixin session expires

Title

Improve visibility when Weixin session expires

Problem

When the Weixin adapter session expires, users may only observe that replies stop arriving. The logs contain messages such as Session expired and send timeout errors, but Web UI/gateway health surfaces do not clearly tell the user that the Weixin account/session needs attention.

Observed Evidence

Recent local gateway logs contained repeated entries like:

  • gateway.platforms.weixin: [Weixin] Session expired; pausing for 10 minutes
  • sendmessage error ... session timeout

The gateway and API server can otherwise be running, so a generic stopped or no reply symptom is misleading.

Proposal

Expose Weixin session-expired state as an actionable gateway/platform diagnostic.

Potential outputs:

  • Gateway detailed health includes platform status: weixin=session_expired.
  • Web UI Gateway/Channels page shows: Weixin session expired; reconnect or refresh credentials.
  • A doctor/smoke command reports the same warning and points to gateway.log.

Non-Goals

  • Do not automatically re-login.
  • Do not loop aggressive retries.
  • Do not mutate credentials or session files.
  • Do not expose secrets or raw tokens in diagnostics.

Acceptance Criteria

  • A user can distinguish gateway is down from gateway is running but Weixin session expired.
  • The diagnostic includes a clear next action.
  • Existing adapters that do not support structured platform diagnostics are unaffected.

Risk

Medium. The implementation depends on how platform adapters currently report runtime state, but the user-facing behavior is important for troubleshooting.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Improve visibility when Weixin session expires