Skip to content

fix: update browser wasm tests for FakeAgent's numbered turns - #639

Merged
jcarver989 merged 2 commits into
mainfrom
fix/browser-wasm-tests
Nov 2, 2026
Merged

jcarver989 merged 2 commits into
mainfrom
fix/browser-wasm-tests

Conversation

@jcarver989

Copy link
Copy Markdown
Contributor

Why

The Wasm check has been failing (shown as Cancelled) on main and every open PR since #634.

The FakeAgent rewrite in #634 changed two behaviors the browser wasm tests depend on:

  1. User message ids are numbered per prompt (user-message-1, user-message-2, ...). The tests still expected a fixed "user-message", and every elicitation test asserts on it through expect_turn_start(), so 6 tests failed.
  2. Prompts sent mid-turn wait until the turn ends. a_prompt_during_a_turn_is_sent_to_the_agent sent a second prompt while an elicitation was still unanswered. That prompt never resolved, and wasm-bindgen-test has no per-test timeout, so the runner hung until the job's 20-minute timeout-minutes cancelled it. The hang also stopped the failure details from ever printing.

Changes

  • Expect the numbered message ids in packages/aether-browser/tests/client.rs.
  • In the mid-turn prompt test, answer the elicitation so the turn ends, then assert that the waiting prompt resolves as user-message-2.
  • Give the Check and test wasm CI step its own timeout-minutes: 10, so a hung test should fail that step instead of cancelling the job.

Testing

  • just wasm-check wasm-test passes locally: 27 passed, 0 failed (0.19s).
  • The step-timeout behavior hasn't been tested yet.

The FakeAgent rewrite in #634 numbers user message ids per prompt and
holds prompts sent mid-turn until the turn ends. The browser wasm tests
still expected the fixed "user-message" id, and the mid-turn prompt test
never answered its elicitation, so the queued prompt hung the runner
until the job timed out and was reported as cancelled.

Bound the wasm test step with its own timeout so a hung test fails the
step instead of cancelling the job.

@clankerboi clankerboi Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approve: this PR only updates browser wasm tests to match FakeAgent's numbered messages and turn completion behavior, and bounds the CI wasm step. No production, infrastructure, schema, or HTTP API changes, and no obvious bugs found. The CI Check and test wasm step passed.

@jcarver989
jcarver989 merged commit e5c1878 into main Nov 2, 2026
17 checks passed
@jcarver989
jcarver989 deleted the fix/browser-wasm-tests branch November 2, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant