anomalyco / anomalyco/opencode-drive

Support route-specific HTTP failures in network fixtures

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
32
Forks
3
Avg merge
12m
Merged PRs (30d)
17

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the network fixture and its isolated controls, then compare them with the loopback proxy workaround described in the issue. Done means a selected method/path can return a deterministic status and body, matching request counts can be inspected, the override can be removed, and the route can heal for a Retry without restarting the instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, typescript
Domain
networking, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.