GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(ai): remove over-safe provider error handling by opencode-agent[bot] · Pull Request #42610 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

This removes the native request executor's vibed, over-safe provider-error policy and aligns it with pre-existing legacy behavior such as the AI SDK path.

Specifically, this kills:

  • the 500-character gate that discarded valid structured provider messages
  • the 16 KiB response-body cap and bodyTruncated behavior
  • structural response-body redaction based on names such as token, secret, key, and authorization
  • literal replacement of request header and query values echoed by providers
  • automatic masking of request URL query parameters
  • automatic and CurrentRedactedNames-driven request/response header redaction at the executor seam
  • raw-body display for short unrecognized payloads

Structured error.message and top-level message values are now parsed from the complete response and surfaced regardless of size. Complete response bodies, URLs, headers, and transport messages are retained in HTTP diagnostics. Unrecognized or malformed payloads use the generic HTTP status fallback rather than being printed as the user-facing message.

Why

The removed behavior was vibed, "over-safe", and inconsistent with pre-existing legacy behavior from integrations such as the AI SDK. It silently threw away useful provider errors based on arbitrary body-length thresholds and applied a separate sanitization policy only to the native path. Matching the established behavior makes native and legacy provider failures predictable and preserves the actual diagnostic evidence.

Checks

  • bun test test/executor.test.ts --timeout 30000 --test-name-pattern 'RequestExecutor'
  • bun test test/provider/openai-chat.test.ts test/provider/openai-responses.test.ts test/provider/anthropic-messages.test.ts --timeout 30000 --test-name-pattern 'fails HTTP provider errors before stream parsing'
  • bun typecheck

Requested by: @rekram1-node (Aiden Cline via Slack)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@opencode-agent opencode-agent Bot assigned rekram1-node Aug 14, 2026
@github-actions github-actions Bot added the contributor label Aug 14, 2026
@opencode-agent
opencode-agent Bot force-pushed the structured-errors branch 2 times, most recently from 59cc78e to 877e8c3 Compare August 14, 2026 16:45
@opencode-agent opencode-agent Bot changed the title fix(ai): preserve structured provider errors fix(ai): remove over-safe provider error handling Aug 14, 2026
@rekram1-node
fix(ai): align provider error handling
f1c6f23
@opencode-agent
opencode-agent Bot force-pushed the structured-errors branch from 877e8c3 to f1c6f23 Compare August 14, 2026 16:53
@rekram1-node
rekram1-node merged commit d6c299c into v2 Aug 14, 2026
7 of 8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the structured-errors branch August 14, 2026 17:09
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
@opencode-agent @rekram1-node
fix(ai): remove over-safe provider error handling (anomalyco#42610)
2472995
Co-authored-by: Aiden Cline <[email protected]>
@rekram1-node rekram1-node mentioned this pull request Sep 29, 2026
fix(ai): show provider error bodies when no message is recognized #51978
Merged
@github-actions github-actions Bot mentioned this pull request Sep 29, 2026
📊 AI CLI 工具社区动态日报 2026-09-29 96loveslife/big_model_radar#564
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@rekram1-node rekram1-node

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.