Repository navigation
[Workaround] dsh-opencode-session — temporary plugin for OpenCode Go x-opencode-session (fixes 400 MissingSessionID) #5931
nobu121
started this conversation in
Show Your Plugins!
Replies: 1 comment
|
Thanks for this! I will try it out. Right now I have just built a fix in, but after I updated I had to bring my fix back in so this should help so I don't have to keep coding the fix in. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[Workaround] dsh-opencode-session — temporary plugin for OpenCode Go's
x-opencode-sessionOpenCode Go 自 09/05 起要求每个推理请求带稳定的
x-opencode-session头,否则返回400 MissingSessionID。在官方内置支持之前,我写了一个临时插件,实测可用:dsh-opencode-session(npm)。它做什么
x-opencode-session: <DSH 会话 id>;安装(需完全重启 dsh 生效)
启动日志出现
[opencode-go-session-header] active for providers [opencode, opencode-go] with mode session-id即生效。说明
x-opencode-session(见 Discussion #5495)后,可dsh plugin --profile web remove dsh-opencode-session退役。English:
OpenCode Go requires a stable
x-opencode-sessionheader on every inference request since 09/05, otherwise it returns400 MissingSessionID. Until the official support lands, I wrote a temporary plugin that works:dsh-opencode-session(npm).What it does
x-opencode-session: <DSH session id>automatically, only for opencode / opencode-go routes;Install (requires a full dsh restart)
Startup log should show
[opencode-go-session-header] active for providers [opencode, opencode-go] with mode session-id.Notes
dsh plugin --profile web remove dsh-opencode-session) once the official per-conversation header lands (Discussion #5495).顺手安利 / Bonus: 在桌面端使用可以试试 dsh-go(DeepSeek Harness 的轻量原生窗口,约 4MB WebView、无 Chromium)。它与
dshCLI 共用~/.dsh,会把dsh放进 PATH,Windows 上带桌面快捷方式——插件安装和 CLI 完全一致。 / On the desktop, try dsh-go (a ~4 MB native WebView window for DeepSeek Harness). It shares~/.dshwith thedshCLI, putsdshon PATH, and installs a Windows shortcut — plugin installs work exactly like the CLI.All reactions