Skip to content

fix: preserve the workspace in Talk approval tests - #201786

Closed
RomneyDa wants to merge 1 commit into
mainfrom
openclaw/clear-crayfish
Closed

RomneyDa wants to merge 1 commit into
mainfrom
openclaw/clear-crayfish

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

The Talk node-approval parity test can time out after a successful consultation because cleanup removes the only file in its workspace. The next consultation then correctly treats the empty, previously attested workspace as data loss, but the test waits for a model start that never happens.

User Impact

No user-visible behavior changes. This repairs the test fixture so developers can validate Talk approval, device revocation, and Stop behavior without triggering an unrelated workspace-loss safeguard. No migrations or user actions are required.

Why This Change Was Made

Keep a synthetic README in the fixture workspace independently of the native-action effect marker. Removing that marker between scenarios no longer empties the workspace.

For direct provider callbacks only, race model start against consultation settlement so an early failure is reported immediately. RPC dispatch still waits for model start: its acknowledgment is not execution completion. Production safeguards and approval assertions are unchanged. The change is limited to one test helper.

Evidence

  • The original public-callback variant reproduced a 120-second timeout. Early-settlement diagnostics exposed WorkspaceVanishedError; retaining independent workspace content then made both existing parity variants pass.
  • Focused runtime proof, formatting, type-aware lint, and applicable production/Gateway test typechecks passed for this unchanged patch.
  • Independent OpenAI reviewer assessment reported no P0–P3 findings. This was a narrative subagent review, not a helper-validated local ClawSweeper or autoreview result; those tools were unavailable in this session.
  • Exact patch SHA-256: 518455d9cf100db544e47f2d9d7065b916cd35183377c0cdfaa17e9ad0ca5767; base dbf41b9173f6c3eb128221387533a1096ab1c43a. Packaging matched the reviewed patch and passed reverse-apply integrity and git diff --check.

Limitations: focused proof exercises real Gateway admission and node execution with a fixed model fixture, not live model-provider coverage. Exact-head PR CI and publication-time review reconciliation remain outstanding. This draft is one focused repair from the maintainer-requested main-CI campaign; no merge is requested.

OpenClaw-Publication: 9ca92b81-d104-417a-8bf6-0b2d96560563
@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.

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

Labels

app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant