Skip to content

Support route-specific HTTP failures in network fixtures #79

Description

@kitlangton

Drive 2.0.1 can apply connection-level chaos, but reproducing an OpenCode TUI location-sync regression required a small loopback proxy to return HTTP 500 for only GET /api/agent while GET /api/location and SSE remain healthy. The same setup needs to heal that route and click Retry without restarting the instance.

A scoped HTTP fault override in the network fixture would make this repeatable without a Bun preload/proxy. Expected: select a method/path, return a deterministic status/body, inspect matching request counts, and remove the override. Current workaround: preload a loopback proxy for the script-owned TUI only, forward other requests, and toggle the selected response from the isolated fixture. OpenCode base tested: d9c85d8d95. This is a Drive fixture capability request, not the OpenCode bug itself.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions