Skip to content

test(qa): cover agent session streaming - #119028

Merged
vincentkoc merged 1 commit into
mainfrom
test-qa-agent-session-streaming
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test-qa-agent-session-streaming

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Agent session streaming had unit coverage, but no QA product-boundary proof that
a generic Gateway agent RPC exposes ordered assistant deltas, terminates once,
and persists one canonical assistant transcript message without channel
delivery.

Why This Change Was Made

Add one QA Lab scenario and one focused E2E test. The test starts a real child
Gateway and a paced loopback OpenAI Responses provider, then:

  • submits one fixed-session agent RPC from an authenticated operator;
  • captures Gateway agent events directly rather than channel transport;
  • verifies assistant deltas share the accepted run and session identity;
  • verifies delta sequence ordering and one terminal lifecycle event after text;
  • reassembles the deltas and compares them with the single assistant history row;
  • records every non-provider HTTP request and proves no channel message was sent.

No production, shared helper, QA-internal, channel, runtime-pair, taxonomy, or
Plugin SDK code changes.

User Impact

This locks in the session streaming contract used by Gateway clients: live
assistant output stays ordered and attributable to one run/session, while
history stores the final message instead of token fragments.

Evidence

  • node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/agent-session-streaming.e2e.test.ts
    • pass: 1 file, 1 test
  • QA coverage match:
    • scenario: session-streaming
    • execution: vitest
    • primary ID: agent-runtime.session-streaming
  • Direct Codex gpt-5.6-sol / high autoreview:
    • clean, no accepted or actionable findings
    • patch correct, confidence 0.99
  • git diff --check: pass
  • Repo-native hosted CI/Testbox gates: pass on exact head
  • Production LOC: +0
  • QA LOC: +393 across exactly two new files

Exact-head hosted CI is green. A redundant standalone Blacksmith changed-gate
lease stayed silent and was stopped after the repo-native hosted/Testbox gate
passed.

ClawSweeper re-review was queued at 2026-08-04T01:14:26Z. Its exact downstream
run 30868494808 failed without producing a publishable artifact; after the
review window there was no durable review comment or Rank-up moves: list.
Proceeding under the established unclaimed-review landing precedent.

@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 00:58
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc merged commit ada473e into main Aug 4, 2026
149 of 152 checks passed
@vincentkoc
vincentkoc deleted the test-qa-agent-session-streaming branch August 4, 2026 01:24
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main: (54 commits)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  test(qa): prove gateway chat RPCs (#118988)
  test(ui): cover Control UI auth transports (#118866)
  fix(auth): do not admit ambient environment credentials behind declared profiles (#118458)
  test(ui): cover operator administration flows (#118836)
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* commit '25e3b6c9b79dadb912195d86fbff968602d58798': (54 commits)
  fix(cli): honor local port in gateway call (#119046)
  fix(gateway): honor external status target context (#119015)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(xai): cover playback mark overflow
  fix(xai): bound realtime playback marks
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
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