Skip to content

fix: align WebChat fixtures with required replies and remove an unused macOS export - #197605

Merged
freeqaz-openai merged 1 commit into
mainfrom
fix/ci-webchat-fixtures-main-20261112
Nov 12, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
fix/ci-webchat-fixtures-main-20261112

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Human WebChat turns now use the required reply policy, but several fixtures still returned no answer for turns expected to succeed. Both attachment tests reported “No answer was returned.” The gateway wait logs showed only an error status.

The tests now expect required for human turns and optional for scheduled heartbeats. Only successful turns get a normal text reply. The primary finalization callback still returns undefined. The tests still check admission, cancellation, explicit silence, errors, history, and the bytes of staged attachments. The macOS packaging CLI still calls the same app audit after removal of its unused export.

Evidence

Across five whole test files, 43/43 tests passed on Node and 43/43 on Bun, with zero skips. Both runs used the original candidate before the formatting-only line wrap and the port to current main. Lint passed on the six changed files. Final formatting and diff checks passed after the wrap. The port matches that formatted patch byte for byte. CI and all six CodeQL Security High analyses passed on 167dc5f. Native Darwin also passed. The script-export Knip scan remains unverified.

@clawsweeper

clawsweeper Bot commented Nov 12, 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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XS labels Nov 12, 2026
@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 12, 2026 07:23
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR supplies replies for successful WebChat test turns, corrects reply-policy expectations, and makes an unused macOS audit export private.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct maintenance patch supported by integration fixtures and passing exact-head CI; supplied behavioral evidence is harness-based.
Proof confidence 🦐 gold shrimp (3/6) Fixture repairs and an unused export removal introduce no user-visible behavior requiring shipped-entry-point proof; hosted validation supports the maintenance change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Existing regression suites reject successful WebChat scenarios because their fixtures no longer match the production reply contract.
Reason: Maintaining reliable regression coverage has clear value, and the internal export cleanup preserves the existing CLI behavior.

Merge readiness

✅ Ready for maintainer review

This PR is useful maintenance: it aligns fixtures with the current reply contract without weakening their assertions. No actionable correctness or security findings; the reviewed head passes the CI gate.

Priority: P3
Reviewed head: 167dc5f7277b424415e00bf9311d5342193813cc

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway fixtures exercise admitted chat and session requests through reply processing; the macOS packaging CLI invokes the existing native dependency audit.

flowchart LR
  A[Gateway test requests] --> B[Admission and session controller]
  B --> C[Reply processing]
  C --> D[Fixture answer and assertions]
  E[macOS packaging CLI] --> F[Native dependency audit]
Loading

Technical review

Best possible solution:

Retain the focused fixture repairs and private audit function while preserving the existing production reply and packaging owners.

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

Source confirms the obsolete result-required expectations and empty successful-turn fixtures; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch repairs setup at the existing fixture boundaries, preserves distinct behavioral assertions, and removes no callable packaging path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 52569752c0e7.

Provenance checked

  • Human WebChat and scheduled-heartbeat expectations changes intended behavior with a stated reason (52f0533: Scheduled heartbeats may remain silent; fix: WebChat retries NO_REPLY into unwanted replies #197544 subsequently distinguished human WebChat from internal result-required work.)
  • Gateway and attachment successful-turn fixtures keeps the original intent (36e277d: Existing tests protect session ownership, interruption, history, and attachment staging; the added answers preserve those purposes while satisfying current completion requirements.)
  • macOS app portability audit keeps the original intent (f817a8b: fix: bundle macOS native dependencies before signing #197383 added dependency validation before signing; making its app audit private leaves that validation and CLI invocation intact.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced patch: The introduced hunks change existing test fixtures and remove only the export keyword from the app audit; no reply-policy implementation changes. (167dc5f7277b)
  • Current reply contract: Human WebChat input resolves to required while scheduled automation resolves to optional; private and subagent work retains result-required behavior. The intentional distinction is explained by fix: WebChat retries NO_REPLY into unwanted replies #197544. (src/agents/reply-completion.ts:108, 52569752c0e7)
  • Successful fixture settlement: waitForAgentRunDrained requires agent.wait status ok, while the default reply mock returns undefined; explicit answers repair successful-turn setup without changing cancellation, history, or attachment-byte assertions. (src/gateway/server.chat.gateway-server-chat.test-support.ts:170, 167dc5f7277b)
  • macOS caller preserved: The packaging script invokes the module as a CLI, whose local call to auditMacAppPortability remains intact; repository references reveal no importer of the removed export. (scripts/lib/mac-runtime-portability.mjs:247, 167dc5f7277b)
  • Exact-head validation: The CI gate, changed Node tests, lint, test types, production types, and baseline ratchets pass on the reviewed head; Darwin remains in progress, with no failed check reported. (167dc5f7277b)
  • Policy and current-main comparison: Root and all applicable ancestor AGENTS.md files were read and applied; the maintainer-notes directory is absent, and fetched main retains the pre-patch versions of all touched files. (AGENTS.md, 52569752c0e7)

PR surface

Tests +11, Other 0. Total +11 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 16 5 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 6 17 6 +11

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 P3: This is fixture alignment and unused-export cleanup with no changed user-facing runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is fixture alignment and unused-export cleanup with no changed user-facing runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • 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 12, 2026, 2:39 AM ET / 07:39 UTC.

@freeqaz-openai
freeqaz-openai merged commit fae0522 into main Nov 12, 2026
234 of 237 checks passed
@freeqaz-openai
freeqaz-openai deleted the fix/ci-webchat-fixtures-main-20261112 branch November 12, 2026 07:57
@freeqaz-openai

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Nov 12, 2026
Preserve the human WebChat heartbeat fixture independently repaired in #197605 and retain all exact benchmark registrations. Async pricing runtime source is unchanged from the reviewed head; focused fixture, Knip, ratchets and Codex integration review pass against db964b7.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts 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