Skip to content

fix(test): type the provided reply operation in queued access cases - #184907

Merged
steipete merged 2 commits into
mainfrom
steipete/fix-queued-access-test-types-20261026
Oct 26, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/fix-queued-access-test-types-20261026

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the check-test-types-core-2 failure introduced by bd6807a: the queued Access test passed a partial mock where providedReplyOperation requires a ReplyOperation.

User Impact

Restores the messaging test-type CI check. No production or user-visible behavior changes.

Why This Change Was Made

Create one real reply operation per case and share that object between the mocked admission result and the provided-operation path. Complete it in finally to release controller state and the watchdog. All four cases, preference changes, and Access assertions remain unchanged; no casts or weakened types are needed.

The change is limited to one test file: 26 added and 16 removed lines, mostly indentation for cleanup. No production code changes.

Evidence

  • Reproduced TS2345 on the unmodified base with node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.messaging.json; the same command passes with this fix.
  • Codex autoreview through P2: scoped-clean, no accepted/actionable findings.
  • node scripts/run-vitest.mjs src/auto-reply/reply/reply-agent-turn-preparation.test.ts --maxWorkers=1: all 39 tests pass, including the four unchanged Access cases. Final wrapper wall time 80.58 s including worker compilation; Vitest duration 13.55 s, with individual test timings totaling about 0.6 s.
  • Targeted lint (config/tsconfig/oxlint.core.json), formatting, and git diff --check pass. An initial no-shadow finding was fixed by naming the fixture replyOperation; the final Codex review is scoped-clean.
  • Exact-head CI: check-test-types-core-2 passed on 8d6c705279fd5c8276cc0e4561558848736e48f8 (94 s).

@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review October 26, 2026 18:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T18:40:34.645227Z 8d6c705 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 26, 2026 18:47
@steipete
steipete merged commit a8af441 into main Oct 26, 2026
183 of 184 checks passed
@steipete
steipete deleted the steipete/fix-queued-access-test-types-20261026 branch October 26, 2026 18:53
johan-eilertsen pushed a commit to johan-eilertsen/openclaw that referenced this pull request Oct 26, 2026
…penclaw#184907)

* fix(test): type the provided reply operation in queued access cases

* fix(test): avoid shadowing the reply operation mock

(cherry picked from commit a8af441)
johan-eilertsen pushed a commit to johan-eilertsen/openclaw that referenced this pull request Oct 26, 2026
…penclaw#184907)

* fix(test): type the provided reply operation in queued access cases

* fix(test): avoid shadowing the reply operation mock
steipete added a commit that referenced this pull request Oct 26, 2026
…178783)

Omit the Gateway computer target when prepared capabilities report no configured Gateway desktop. Share a node-only target scope across schema, guidance, bindings and cache identity, preserving configured and session-owned desktop behavior.

Closes #178604
Supersedes #178744

Validation: schema and guidance regressions fail on the baseline; all 91 focused tests pass, including routing and prompt-prefix stability. The exact-head CI failure in run 40376678279 is the unrelated ReplyOperation fixture error reproduced by scheduled main run 40380874869 and subsequently fixed by #184907. Live-proof scope is recorded in the PR.

Co-authored-by: HeZ2z <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
steipete added a commit that referenced this pull request Oct 26, 2026
…ll (#178581)

Return a clear capacity denial when the Mattermost pairing store returns an empty code. Preserve valid codes for existing pending requests and share the denial text between slash-command and model-picker response owners. Consolidate the slash regression into the existing HTTP suite.

Closes #178507

Validation: both capacity regressions fail on the baseline and pass with the fix; auth tests also pass. The new slash-test typing issue was corrected. The remaining exact-head failure in CI run 40381491504 is the unrelated ReplyOperation fixture error reproduced by scheduled main run 40380874869 and subsequently fixed by #184907. The PR records the alternate-loopback environment limitation and live-proof scope.

Co-authored-by: HeZzz <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…penclaw#184907)

* fix(test): type the provided reply operation in queued access cases

* fix(test): avoid shadowing the reply operation mock
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…penclaw#178783)

Omit the Gateway computer target when prepared capabilities report no configured Gateway desktop. Share a node-only target scope across schema, guidance, bindings and cache identity, preserving configured and session-owned desktop behavior.

Closes openclaw#178604
Supersedes openclaw#178744

Validation: schema and guidance regressions fail on the baseline; all 91 focused tests pass, including routing and prompt-prefix stability. The exact-head CI failure in run 40376678279 is the unrelated ReplyOperation fixture error reproduced by scheduled main run 40380874869 and subsequently fixed by openclaw#184907. Live-proof scope is recorded in the PR.

Co-authored-by: HeZ2z <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…ll (openclaw#178581)

Return a clear capacity denial when the Mattermost pairing store returns an empty code. Preserve valid codes for existing pending requests and share the denial text between slash-command and model-picker response owners. Consolidate the slash regression into the existing HTTP suite.

Closes openclaw#178507

Validation: both capacity regressions fail on the baseline and pass with the fix; auth tests also pass. The new slash-test typing issue was corrected. The remaining exact-head failure in CI run 40381491504 is the unrelated ReplyOperation fixture error reproduced by scheduled main run 40380874869 and subsequently fixed by openclaw#184907. The PR records the alternate-loopback environment limitation and live-proof scope.

Co-authored-by: HeZzz <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 28, 2026
…ll (#178581)

Return a clear capacity denial when the Mattermost pairing store returns an empty code. Preserve valid codes for existing pending requests and share the denial text between slash-command and model-picker response owners. Consolidate the slash regression into the existing HTTP suite.

Closes #178507

Validation: both capacity regressions fail on the baseline and pass with the fix; auth tests also pass. The new slash-test typing issue was corrected. The remaining exact-head failure in CI run 40381491504 is the unrelated ReplyOperation fixture error reproduced by scheduled main run 40380874869 and subsequently fixed by #184907. The PR records the alternate-loopback environment limitation and live-proof scope.

Co-authored-by: HeZzz <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

(cherry picked from commit b418e2b)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit ef604f312da5b496d394fa013983c168f903b59b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant