Skip to content

fix(test): initialize chat state in session RPC fixture - #201782

Merged
vincentkoc merged 1 commit into
mainfrom
fix-session-store-chat-state-20261119
Nov 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-session-store-chat-state-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The session-store RPC integration test crashes when replaying a cached send for an archived session because its direct request fixture omits chat-run state. This prevents the test from checking the cached response and the remaining session lifecycle assertions.

User Impact

No user-visible behavior changes. This repairs the integration test fixture while preserving every existing assertion.

Why This Change Was Made

Initialize the fixture with the existing createChatRunState() factory, matching the required Gateway request context used by the retry handler. No production guard or default changes.

Evidence

  • Original failure: scheduled main CI, server.sessions.store-rpc.test.ts, context.chatRunState.runs TypeError.
  • Local ClawSweeper review of 4c11507996d1..917dcb012008: complete, no findings, correctness confidence 0.96; security cleared.
  • Full unchanged session-store RPC file: 7/7 passed, including the formerly failing cached-send lifecycle case (4.8 seconds). The normal owning test runner completed in 49.1 seconds on macOS arm64 with a Node 24.22.1 launcher.
  • Targeted Gateway-server test types, type-aware lint of the touched file, formatting, and whitespace checks passed.
  • The original Linux CI failure is the baseline; no separate local baseline rerun or Linux candidate pass is claimed. PR CI supplies broader cross-platform validation.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 19, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 11:33
@vincentkoc
vincentkoc enabled auto-merge (squash) November 19, 2026 11:35
@vincentkoc
vincentkoc merged commit 7af6c4f into main Nov 19, 2026
186 checks passed
@vincentkoc
vincentkoc deleted the fix-session-store-chat-state-20261119 branch November 19, 2026 11:43
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant