Skip to content

tests: two bridge tests carry assertions that cannot fail #4418

Open

Description

@schlessera

Part of #4278. Deferred from the first review of PR #4394 (#4325, #4306).

Context

  • packages/ui-backend-claude/tests/brain-tool-forwarder.test.ts:36 asserts that completed is false before its .then callback can run, so it cannot fail.
  • packages/ui-backend-claude/tests/provider-request-shape.test.ts:204-212 gives the project and the host the same value. No scenario now proves on the wire that a project true cannot enable a session the host pinned off.

Scope

Make both assertions able to fail, and restore the lost direction.

Acceptance criteria

  • The readiness test observes that the handler received the call before the gate is released, and a mutation that skips the wait fails it.
  • A scenario with project true against a host pin of false asserts that ToolSearch is absent on the wire.
  • Both mutation receipts are recorded.

Activity

  1. added
    type: test
    area: backends
    priority: p3
    agent-ready
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: backendspriority: p3type: test

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions