anomalyco / anomalyco/opencode

[FEATURE]: Fast failure on network errors and concise error output

Open
#39,771 3 comments 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Jul 30, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Two problems with shell command handling.

Problem A - No short timeout for network ops, no fallback

When the network is flaky (common in China where GitHub HTTPS is often blocked but SSH works fine), the tool sits there for the default 60-120s timeout. No fast failure, no fallback.

Problem B - Error output is way too verbose

When something fails, the tool dumps full stack traces and re-analysis. Every CI cycle is ~5000 tokens of noise.

Proposed Solution

  1. Smarter default timeouts: network ops 15s, build 300s, else 30s
  2. Quick network probe before API calls
  3. Error output: 1-2 line summary, full log to file

Verification

  • I have checked that this feature has not been suggested before

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.