Repository navigation
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingimpact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Description
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
- Is there a way to manually complete the upgrade (e.g.,
pnpm update -g openclaw@2026.6.5) without hitting this error? - Is there a rollback command to restore the previous working state?
- Does this error indicate corrupted node_modules from a partial update?
Steps to reproduce
- Running OpenClaw version
2026.6.5-beta.5on Ubuntu 24.04, Node v24.16.0 - Run
openclaw updateto upgrade to2026.6.5 - Observe the TypeError
- Run
openclaw doctor— same error persists - Feishu channel becomes unresponsive (messages received but no reply)
Expected behavior
- Update completes successfully
openclaw --versionreports2026.6.5openclaw doctorpasses 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 doctorshows 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 doctorcompletes but displays the same TypeError- The upgrade was attempted via
openclaw update(the built-in self-update command)
Reacted by clawsweeper and cn1313113
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingimpact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Jun 10, 2026
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.5lacks 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:
resolveAllAgentSessionStoreTargetsSyncandSessionStoreTargetfrom the publicopenclaw/plugin-sdk/session-store-runtimesubpath. (src/plugin-sdk/session-store-runtime.ts:36, bf89552e6783)openclaw/plugin-sdk/session-store-runtimeand uses it for session target discovery. (extensions/feishu/src/doctor.ts:10, bf89552e6783)v2026.6.5tag'ssession-store-runtimesubpath does not exportresolveAllAgentSessionStoreTargetsSync, matching the missing-function failure reported after the stable update. (src/plugin-sdk/session-store-runtime.ts:33, 5181e4f7c82b)v2026.6.5to current main adds the SDK export and moves Feishu doctor target discovery to that exported helper. (src/plugin-sdk/session-store-runtime.ts:36, 696c1ecd2068)696c1ecd2068b1cf9a785faa80e544f18632dda4is the current-main proof commit containing the aligned SDK export/caller state; its commit timestamp is 2026-06-09T18:31:40+01:00. (src/plugin-sdk/session-store-runtime.ts:36, 696c1ecd2068)git branch --containsshows it only onmain/origin/main; this is current-main-only, not shipped inv2026.6.5. (696c1ecd2068)Likely related people:
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)fix(plugin-sdk): expose session store runtime helperscommit 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)v2026.6.5release-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.
amknight commentedon Jun 10, 2026
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:
maindoes not export the missing helper from the SDK. refactor: move session metadata to SQLite #91322 addedresolveAllAgentSessionStoreTargetsSynctoopenclaw/plugin-sdk/session-store-runtime(shipped only in the2026.6.5-beta.5tag), and that change was reverted before2026.6.5stable (9075912386on the release line,7f1d82ab25on 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.@openclaw/feishu@2026.6.5-beta.5install, whose dist imports that export from the SDK subpath, running against a beta.6+/stable core that no longer provides it.openclaw plugins update feishu(pulls@openclaw/feishu@2026.6.5, which no longer references the export), then rerunopenclaw updateif your core is still stuck on beta.5. Docs: https://docs.openclaw.ai/plugins/manage-pluginsFull 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.