openai provider 无法执行 shell 命令 #4617

Open
opened 2026-02-16 17:44:48 -05:00 by yindo · 1 comment
Owner

Originally created by @brookate on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

这边是我的配置

dell➜  ~ cat .config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
	"permission": "allow",
  "provider": {
    "codex": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://code.ppchat.vip/v1",
        "apiKey": "{env:OPENAI_API_KEY}"
      },
      "models": {
        "gpt-5.2": {
          "name": "GPT-5.2"
        }
      }
    }
  }
}
Image

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Linux

Terminal

terminal

Originally created by @brookate on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 这边是我的配置 ``` dell➜ ~ cat .config/opencode/opencode.json { "$schema": "https://opencode.ai/config.json", "permission": "allow", "provider": { "codex": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "https://code.ppchat.vip/v1", "apiKey": "{env:OPENAI_API_KEY}" }, "models": { "gpt-5.2": { "name": "GPT-5.2" } } } } } ``` <img width="905" height="657" alt="Image" src="https://github.com/user-attachments/assets/5772ae81-f27e-4258-b066-0dc349fa4c19" /> ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Linux ### Terminal terminal
yindo added the bug label 2026-02-16 17:44:48 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7207: Shell output empty - directly related to shell command execution failures
  • #6750: Intermittent empty output from Bash/Tool execution (Silent Failure) - tool execution failures causing empty output
  • #5674: Custom OpenAI-compatible provider options not being passed to API calls - directly related to custom provider configuration
  • #5662: Getting stuck at 'Running commands' > Shell > undefined - shell command execution issues
  • #2205: Custom commands fail when (even unused) provider is in config file - custom provider causing command execution failures
  • #5210: Custom OpenAI-compatible provider returns no text content - similar symptom to shell execution failure

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #7207: Shell output empty - directly related to shell command execution failures - #6750: Intermittent empty output from Bash/Tool execution (Silent Failure) - tool execution failures causing empty output - #5674: Custom OpenAI-compatible provider options not being passed to API calls - directly related to custom provider configuration - #5662: Getting stuck at 'Running commands' > Shell > undefined - shell command execution issues - #2205: Custom commands fail when (even unused) provider is in config file - custom provider causing command execution failures - #5210: Custom OpenAI-compatible provider returns no text content - similar symptom to shell execution failure Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4617