Skip to content

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

@ioxera

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions