Skip to content

fix(test): auto-reply suite fails on main after the item-conflict recovery message changed - #199846

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix-item-conflict-recovery-test
Nov 16, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix-item-conflict-recovery-test

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Related: #199757, #198070

What Problem This Solves

Fixes: the auto-reply provider-failure suite fails on main, and on any pull request whose changed test lanes include auto-reply, since #199757 changed the item-conflict recovery message.

User Impact

User impact: none. This is a test-only change. Contributors whose pull requests touch auto-reply stop getting a red openclaw/ci-gate from a test their change did not affect.

Why This Change Was Made

#199757 reworded the message a user sees when the AI service cannot recover saved conversation state, and updated the copy module's own test. The auto-reply suite still asserted the previous wording, so preserves item-conflict recovery in the Control UI reply and saved notice compared the old sentence against the new one. This change updates that one expected string to the current message. No runtime code changes.

Evidence

Before, on unmodified main at 3900bb2366e8:

$ node scripts/test-projects.mts src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts
 FAIL   infra  src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts > executeAgentTurn: provider failures > preserves item-conflict recovery in the Control UI reply and saved notice
AssertionError: expected { …(2) } to match object { isError: true, …(1) }
 Test Files  1 failed (1)
      Tests  1 failed | 16 passed (17)

The same failure in CI on #198070, which does not change this message or this test: https://github.com/openclaw/openclaw/actions/runs/43771187207/job/132987825732

After, on this branch (main at 3d4bd2a708bc plus this commit):

$ node scripts/test-projects.mts src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts src/agents/failover/assistant-request-failure-copy.test.ts
 Test Files  1 passed (1)
      Tests  27 passed (27)
 Test Files  1 passed (1)
      Tests  17 passed (17)

The format check on the changed file and git diff --check pass. The broader gates were not run locally; this pull request's CI covers them.

#199757 changed the item-conflict recovery message shown to users but left
this suite asserting the previous wording, so the test fails on main and on
any PR whose changed lanes include auto-reply.
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@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. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates the auto-reply test to expect the current item-conflict recovery message.

Example: The provider-failure test receives an OpenAI item_conflict error.

  • Before: The test expects “rejected saved conversation state” and fails against the current renderer.
  • After: The test expects “could not recover saved conversation state” and checks that both the reply and saved notice retain the recovery guidance.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, correct test repair supported by a precise failure trace, focused passing results, and green exact-head CI.
Proof confidence 🐚 platinum hermit (4/6) This test-only correction needs no shipped-entry-point proof; the supplied failing and passing test output and exact-head CI cover its purpose, while the prepared template screenshots are unrelated and were not counted.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Contributors encounter a failing auto-reply test unrelated to their changes.
Reason: The correction aligns existing consumer coverage with an intentional, merged recovery-message change without weakening assertions.

Regression provenance

Regression provenance — verified: source commit d1307e616745 by Peter Steinberger; canonical PR #199757 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

Keep open: this PR corrects a confirmed stale test expectation, preserves the existing regression coverage, and has passing exact-head CI; no actionable findings remain.

Priority: P2
Reviewed head: 61643b215a4a6367880024446c14cfc7e1fbb2df

Before merge

None.

Findings

None.

Agent review details

How this fits together

The auto-reply error handler converts classified provider failures into reply payloads and lifecycle error notices; this PR updates the test expectation at that boundary.

flowchart LR
  A[Provider failure fixture] --> B[Agent turn execution]
  B --> C[Failure copy renderer]
  C --> D[Final reply payload]
  C --> E[Lifecycle error notice]
  D --> F[Regression assertions]
  E --> F
Loading

Technical review

Best possible solution:

Land the focused expectation update while retaining both reply and lifecycle-notice assertions.

Do we have a high-confidence way to reproduce the issue?

The source establishes the exact expected-versus-rendered string mismatch, and the author supplies a matching failing run; this read-only review executed no tests.

Is this the best way to solve the issue?

Changing the independent expected literal is the smallest complete repair and preserves the existing production owner and meaningful boundary assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 47c5db59fd62.

Provenance checked

  • Item-conflict reply and saved-notice regression keeps the original intent (14c13a5: Ensure code-specific recovery guidance survives the auto-reply failure path in both the delivered reply and recorded lifecycle notice.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 14c13a5 adds src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts:120 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 14c13a517cf1; files: src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts)
  • Peter Steinberger: Raw commit f8cc39c adds src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts:55 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8cc39ce6213; files: src/auto-reply/reply/agent-runner-execution-provider-failures.test.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A stale assertion causes unrelated auto-reply test lanes to fail, with no runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A stale assertion causes unrelated auto-reply test lanes to fail, with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 15, 2026, 6:52 PM ET / 23:52 UTC.

@Patrick-Erichsen
Patrick-Erichsen merged commit fc8363b into main Nov 16, 2026
113 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix-item-conflict-recovery-test branch November 16, 2026 00:02
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…penclaw#199846)

openclaw#199757 changed the item-conflict recovery message shown to users but left
this suite asserting the previous wording, so the test fails on main and on
any PR whose changed lanes include auto-reply.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant