Skip to content

[Bug]: openclaw update 2026.6.5-beta.5 → 2026.6.5 fails with TypeError: resolveAllAgentSessionStoreTargetsSync is not a function; Feishu channel stops replying #91816

Closed

Description

@cn1313113

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Summary

Running openclaw update to upgrade from 2026.6.5-beta.5 to 2026.6.5 fails with:
TypeError: (0, _sessionStoreRuntime.resolveAllAgentSessionStoreTargetsSync) is not a function

After the failed update, openclaw doctor still shows the same error, and the Feishu channel stops replying to messages entirely (messages are received but no reply is sent, and the "received" indicator does not appear in Feishu).

openclaw --version still reports OpenClaw 2026.6.5-beta.5.

Error Message

TypeError: (0, _sessionStoreRuntime.resolveAllAgentSessionStoreTargetsSync) is not a function

Environment

Item Value
OS Ubuntu 24.04.4 LTS (noble), Linux 6.8.0-106-generic (x64)
Node.js v24.16.0
pnpm 11.13.0
Current OpenClaw version 2026.6.5-beta.5 (ff0b21e)
Target version 2026.6.5
Channel Feishu
Gateway status Gateway is running and receiving messages

Workaround / Questions

  1. Is there a way to manually complete the upgrade (e.g., pnpm update -g openclaw@2026.6.5) without hitting this error?
  2. Is there a rollback command to restore the previous working state?
  3. Does this error indicate corrupted node_modules from a partial update?

Steps to reproduce

  1. Running OpenClaw version 2026.6.5-beta.5 on Ubuntu 24.04, Node v24.16.0
  2. Run openclaw update to upgrade to 2026.6.5
  3. Observe the TypeError
  4. Run openclaw doctor — same error persists
  5. Feishu channel becomes unresponsive (messages received but no reply)

Expected behavior

  • Update completes successfully
  • openclaw --version reports 2026.6.5
  • openclaw doctor passes without errors
  • Feishu channel continues to work normally

Actual behavior

  • Update fails mid-way with TypeError: (0, _sessionStoreRuntime.resolveAllAgentSessionStoreTargetsSync) is not a function
  • Version remains at 2026.6.5-beta.5
  • openclaw doctor shows the same TypeError
  • Feishu channel is broken: messages arrive but no response, no delivery confirmation shown

OpenClaw version

2026.6.5

Operating system

Ubuntu 24.04.4 LTS (noble), Linux 6.8.0-106-generic (x64)

Install method

No response

Model

qwen3.7-plus

Provider / routing chain

unknown

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

  • The gateway process is still alive and receiving Feishu messages (visible in Feishu message log)
  • However, the agent never processes the message or sends a reply
  • openclaw doctor completes but displays the same TypeError
  • The upgrade was attempted via openclaw update (the built-in self-update command)

Activity

  1. clawsweeper commented on Jun 10, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    Current main aligns the Feishu doctor caller with the plugin SDK by exporting the missing session-store target helper, so the reported TypeError is fixed on main but not yet in a tagged release.

    I found the merged PR that appears to have closed this: #91219: fix(gateway): skip deleted-agent guard for ACP harness session keys.

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Review details

    Best possible solution:

    Keep the current-main SDK export and Feishu doctor alignment, then include it in the next release so beta-to-stable updater users receive the fix.

    Do we have a high-confidence way to reproduce the issue?

    Yes. The reported failure is source-reproducible from the version skew: v2026.6.5 lacks the SDK export while the Feishu doctor path on current main calls it; I did not run the updater because this review is read-only.

    Is this the best way to solve the issue?

    Yes. The maintainable fix is to expose the generic session-store target discovery helper through the existing narrow plugin SDK subpath instead of making Feishu reach into core internals.

    Security review:

    Security review: No patch is under review and the issue is not a security-sensitive report.

    AGENTS.md: found and applied where relevant.

    What I checked:

    Likely related people:

    • scotthuang: Current-main history and blame tie the aligned Feishu doctor and SDK export state to commit 696c1ecd20; the checkout is grafted, so this is best treated as current-main provenance rather than blame. (role: current-main proof author; confidence: medium; commits: 696c1ecd2068; files: src/plugin-sdk/session-store-runtime.ts, extensions/feishu/src/doctor.ts, src/config/sessions/targets.ts)
    • Peter Steinberger: Earlier history has a direct fix(plugin-sdk): expose session store runtime helpers commit on the same SDK subpath and helper export surface. (role: adjacent SDK surface contributor; confidence: medium; commits: a71b810e43f8; files: src/plugin-sdk/session-store-runtime.ts)
    • Vincent Koc: The v2026.6.5 release-prep commit is the shipped baseline used to confirm the missing SDK export in the latest release. (role: release provenance owner; confidence: low; commits: 5181e4f7c82b; files: src/plugin-sdk/session-store-runtime.ts, extensions/feishu/src/doctor.ts, CHANGELOG.md)

    Codex review notes: model gpt-5.5, reasoning high; reviewed against bf89552e6783; fix evidence: merged PR #91219, commit 696c1ecd2068, main fix timestamp 2026-06-09T18:31:40+01:00.

  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    on Jun 10, 2026
  3. amknight commented on Jun 10, 2026

    @amknight
    Member

    Correction for the record, since the close rationale above is inaccurate and could leave people waiting on a release that won't change anything for them:

    • Current main does not export the missing helper from the SDK. refactor: move session metadata to SQLite #91322 added resolveAllAgentSessionStoreTargetsSync to openclaw/plugin-sdk/session-store-runtime (shipped only in the 2026.6.5-beta.5 tag), and that change was reverted before 2026.6.5 stable (9075912386 on the release line, 7f1d82ab25 on main). There is no pending "fixed on main, awaiting release" state, and fix(gateway): skip deleted-agent guard for ACP harness session keys #91219 is unrelated to this error.
    • The TypeError comes from a stale @openclaw/feishu@2026.6.5-beta.5 install, whose dist imports that export from the SDK subpath, running against a beta.6+/stable core that no longer provides it.
    • Remedy available today: openclaw plugins update feishu (pulls @openclaw/feishu@2026.6.5, which no longer references the export), then rerun openclaw update if your core is still stuck on beta.5. Docs: https://docs.openclaw.ai/plugins/manage-plugins

    Full analysis with artifact-level evidence: #91991 (comment)

    The close outcome here is still right (same root cause, user-side remedy), just under the wrong rationale — leaving this closed.

  4. locked as resolved and limited conversation to collaborators on Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingimpact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.regressionBehavior that previously worked and now fails

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions