Skip to content

fix(test): restore Side chat hydration and retry checks - #205376

Merged
vincentkoc merged 1 commit into
mainfrom
fix-test-sidechat-runtime-20261125
Nov 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-test-sidechat-runtime-20261125

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The Side chat Gateway tests fail before reaching the behavior they are meant to verify. Their partial client fixtures omit required connection metadata, so operator admission throws before hydration or typed retry handling. This breaks seven cases covering successful hydration, cancellation, disconnects, and retry details.

User Impact

This restores the Side chat regression checks on main. Runtime behavior, authorization, and user configuration are unchanged.

Why This Change Was Made

Reuse the existing Gateway client fixture builder in the two affected tests, with an empty scope list. This supplies the required connection contract without granting extra authority or weakening the existing assertions. The explicit invalid-request and missing-connection cases remain intact.

Evidence

  • Reproduced on frozen main d86ffd3b6520b534792e229f57813159742fcc85: both files ran; 7 failed and 14 passed in 140.12 seconds.

  • A temporary diagnostic on the original source exposed TypeError: undefined is not an object (evaluating 'client.connect.role') at operator-run-authority.ts:303, reached from session-companion-rpc.ts:286. The diagnostic source was restored.

  • Original main failure: scheduled CI run 45604380188. The required connection read was introduced with the authless local socket admission change.

  • Fixed tree efb80b672ee399e69118501445d759ca9934c37a (commit a0847c97fea81c1a898003e0b0aaf2d9a8a43bcf): all 21 tests in both affected files passed in 87.63 seconds, including the seven baseline failures. Targeted oxlint reported zero warnings/errors and oxfmt passed.

  • Gateway-root test typecheck and clean-source verification passed on the same commit in a separate Linux run. The earlier run lost its transport after tests/lint/format; it is not counted as a completed typecheck.

  • Fresh independent local review of the exact commit found no issues (confidence 0.96). Production source and test assertions are unchanged.

  • Broad PR CI is pending.

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

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 25, 2026
@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 25, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 25, 2026 13:42
@vincentkoc
vincentkoc enabled auto-merge (squash) November 25, 2026 13:44
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 25, 2026
@vincentkoc
vincentkoc merged commit 2e3e081 into main Nov 25, 2026
182 checks passed
@vincentkoc
vincentkoc deleted the fix-test-sidechat-runtime-20261125 branch November 25, 2026 13:54
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 25, 2026
* commit '92569e37ab84a8cb1e4a12c3dcbb45acb97977c9':
  fix: distinguish Desktop sources without wrapping their names or IDs (#203747)
  fix(ui): Greek sigma searches miss matches outside Sessions and Files (#189518)
  fix: keep agent skill names on one line beside their switches (#203734)
  test(cron): admit scheduled occurrences in cron fixtures and fix Node 24 toHex in Vitest (#205383)
  fix: keep the Agents menu usable after copying an ID (#203739)
  fix(whatsapp): preserve code table spaces across message chunks (#205327)
  refactor(cron): admit legacy scheduled requesters through operator admission (#205346)
  fix: keep silent Codex turns healthy with running commands (#196062)
  test(update): verify the recorded preparation failure (#205363)
  fix(test): prove sibling imports on the active update path
  fix(chat): complete mentions without leaving part of the name behind (#205326)
  fix(test): restore Side chat hydration and retry checks (#205376)
  refactor: plugin-run turns get owner status from commands.ownerAllowFrom, like text messages (#205373)
  chore(ui): refresh control ui locales (#205378)
  fix: keep Telegram rich <details> and list blocks in one message when replies stream in chunks (#205318)
  refactor(gateway): one refusal owner with a required next step (#205337)
  fix(discord): keep long table labels bold across messages (#205328)
  feat: invitation, sharing and participant controls in the Control UI (#204920)
  fix(test): distinguish stamped Skill Library upgrade policies
  fix(markdown): preserve trailing inline-code spaces in plain-text tables (#205317)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant