Skip to content

vscode plugin sst-dev.opencode-v2 401 #24737

Closed as not planned
Closed as not planned

Description

@ioxera

Description

vscode 插件sst-dev.opencode-v在连接时出现

Initializing OpenCode application...
🚀 Starting OpenCode server...
🔍 Found config at: /home/john/.local/share/opencode/auth.json
✅ Loaded OpenCode configuration
🔍 Server URL: http://127.0.0.1:4096
✅ OpenCode server started on port: 4096
🔍 Full server URL: http://127.0.0.1:4096
🔍 Testing server health at: http://127.0.0.1:4096/health
✅ Server health check: 401
🔍 Testing server functionality at: http://127.0.0.1:4096/app/providers
✅ Server providers check: 401
⚠️ Server responded with status: 401
⏳ Waiting for models to load...
🔍 Checking models availability (attempt 1/5)...
⚠️ Providers endpoint returned 401, waiting...
🔍 Checking models availability (attempt 2/5)...
⚠️ Providers endpoint returned 401, waiting...
🔍 Checking models availability (attempt 3/5)...
⚠️ Providers endpoint returned 401, waiting...
🔍 Checking models availability (attempt 4/5)...
⚠️ Providers endpoint returned 401, waiting...
🔍 Checking models availability (attempt 5/5)...
⚠️ Providers endpoint returned 401, waiting...
⚠️ Models loading timeout after 5 attempts
OpenCode client initialized: http://127.0.0.1:4096
❌ HTTP 401 Unauthorized http://127.0.0.1:4096/project/current?directory=%2Fhome%2Fjohn%2FDownloads%2Ftest
  Response body: Unauthorized

opencode 未设置“OPENCODE_SERVER_PASSWORD"。

Plugins

vscode plugin sst-dev.opencode-v2 0.1.1

OpenCode version

1.14.28

Steps to reproduce

  1. vscode remote-ssh连接到远程项目,在项目主机上安装opencode beta插件。
  2. 在vscode中打开opencode Assistant,vscode 输出栏中选择opencode Assistant,即出现以上错误信息

Screenshot and/or share link

Image

Operating System

vscode in windows 11,opencode in ubuntu 22.04

Terminal

No response

Activity

  1. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor

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

    Both issues describe the same root cause: the VSCode plugin not sending the correct Authorization header when OPENCODE_SERVER_PASSWORD is set (or not set). Please check if your issue is covered there, and if so, consider adding a comment with your environment details instead.

  2. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  3. bfsg commented on May 16, 2026

    @bfsg

    你这个版本的插件是从哪里下载的

  4. ioxera commented on May 29, 2026

    @ioxera
    Author

    你这个版本的插件是从哪里下载的

    vscode的插件商城,bug已经修复了,日志一切正常,但是还是打不开opencode的插件助手页面。

  5. leike0813 commented on Jun 14, 2026

    @leike0813

    As far as I know, the official OpenCode plugin has never worked, not even for a single second.

    I'm now using Multicoder as a client, and it's been okay.

  6. github-actions commented on Aug 14, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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