Skip to content

fix(openclaw-plugin): tolerate missing OV session during assemble#2788

Merged
qin-ctx merged 1 commit into
volcengine:mainfrom
marchpure:fix-openclaw-assemble-missing-session
Jun 23, 2026
Merged

fix(openclaw-plugin): tolerate missing OV session during assemble#2788
qin-ctx merged 1 commit into
volcengine:mainfrom
marchpure:fix-openclaw-assemble-missing-session

Conversation

@marchpure

Copy link
Copy Markdown
Contributor

Summary

  • Treat OpenViking Session not found during OpenClaw context assemble as an empty/new session passthrough instead of a warning-level assemble failure.
  • Reuse the same NOT_FOUND predicate for compact's existing missing-session skip path.

Why

For a brand-new OpenClaw session, assemble can run before afterTurn has captured any messages into OpenViking. The /context endpoint returns [NOT_FOUND]: Session not found in that lifecycle window. This is expected for a first turn and should not be logged as an assemble failure.

Verification

  • node --check /root/work-openviking-api-fix/files/context-lifecycle-service.ts
  • Targeted local runtime check against installed OpenViking plugin: fake getSessionContext() throws [NOT_FOUND]: Session not found; verified passthrough result, reason=session_not_found, and no warn log.

@qin-ctx qin-ctx merged commit 151245f into volcengine:main Jun 23, 2026
3 of 4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants