Description
On Windows, OpenCode Desktop v1.3.13 shows a session error popup immediately after startup when open-mem is enabled as a plugin.
The same config works on v1.3.12 on another machine, and also works on the same machine after downgrading from v1.3.13 to v1.3.12.
This strongly suggests a regression in OpenCode Desktop v1.3.13 plugin loading / module resolution.
Environment
- OpenCode Desktop: v1.3.13 -> broken
- OpenCode Desktop: v1.3.12 -> works
- OS: Windows
- Node on machine: v20
(another working machine has Node v22, but downgrade to v1.3.12 on the same broken machine fixes it, so OpenCode version seems more relevant)
Plugin config
C:\Users\<USER>\.config\opencode\opencode.json
{
"plugin": [
"oh-my-opencode@latest",
"open-mem"
]
}
What happens
On v1.3.13, OpenCode starts, but immediately shows a popup:
会话错误
发生错误
OpenCode itself is still usable, but the plugin fails to load.
Relevant log
From:
C:\Users\<USER>\AppData\Local\ai.opencode.desktop\logs\opencode-desktop_2026-04-02_20-29-27.log
service=plugin path=open-mem target=file:///C:/Users/<USER>/.cache/opencode/node_modules/open-mem/dist/index.js error=Export named 'getVercelOidcToken' not found in module 'C:\Users\<USER>\.cache\opencode\node_modules\@vercel\oidc\dist\index.js'. failed to load plugin
This repeats multiple times.
What I verified
I checked the cached package files locally:
open-mem version: 0.14.2
ai version: 6.0.141
@ai-sdk/gateway version: 3.0.83
@vercel/oidc version: 3.1.0
And the actual file:
C:\Users\<USER>\.cache\opencode\node_modules\@vercel\oidc\dist\index.js
does contain getVercelOidcToken.
So this does not look like a missing symbol in the installed file itself.
It looks more like a plugin/module resolution regression in v1.3.13 (possibly ESM/CJS or loader-related).
Strong regression signal
On the same machine:
v1.3.13 -> session error
clear plugin cache
downgrade to v1.3.12
problem disappears
So the issue appears version-specific.
Steps to reproduce
Install OpenCode Desktop v1.3.13 on Windows
Enable open-mem plugin in opencode.json
Start OpenCode
Observe session error popup and plugin load failure
Expected behavior
OpenCode should start normally and load open-mem without session error.
Actual behavior
OpenCode shows a session error popup, and logs plugin load failure related to:
Export named 'getVercelOidcToken' not found ...
Description
On Windows, OpenCode Desktop v1.3.13 shows a session error popup immediately after startup when
open-memis enabled as a plugin.The same config works on v1.3.12 on another machine, and also works on the same machine after downgrading from v1.3.13 to v1.3.12.
This strongly suggests a regression in OpenCode Desktop v1.3.13 plugin loading / module resolution.
Environment
(another working machine has Node v22, but downgrade to v1.3.12 on the same broken machine fixes it, so OpenCode version seems more relevant)
Plugin config
C:\Users\<USER>\.config\opencode\opencode.json{ "plugin": [ "oh-my-opencode@latest", "open-mem" ] } What happens On v1.3.13, OpenCode starts, but immediately shows a popup: 会话错误 发生错误 OpenCode itself is still usable, but the plugin fails to load. Relevant log From: C:\Users\<USER>\AppData\Local\ai.opencode.desktop\logs\opencode-desktop_2026-04-02_20-29-27.log service=plugin path=open-mem target=file:///C:/Users/<USER>/.cache/opencode/node_modules/open-mem/dist/index.js error=Export named 'getVercelOidcToken' not found in module 'C:\Users\<USER>\.cache\opencode\node_modules\@vercel\oidc\dist\index.js'. failed to load plugin This repeats multiple times. What I verified I checked the cached package files locally: open-mem version: 0.14.2 ai version: 6.0.141 @ai-sdk/gateway version: 3.0.83 @vercel/oidc version: 3.1.0 And the actual file: C:\Users\<USER>\.cache\opencode\node_modules\@vercel\oidc\dist\index.js does contain getVercelOidcToken. So this does not look like a missing symbol in the installed file itself. It looks more like a plugin/module resolution regression in v1.3.13 (possibly ESM/CJS or loader-related). Strong regression signal On the same machine: v1.3.13 -> session error clear plugin cache downgrade to v1.3.12 problem disappears So the issue appears version-specific. Steps to reproduce Install OpenCode Desktop v1.3.13 on Windows Enable open-mem plugin in opencode.json Start OpenCode Observe session error popup and plugin load failure Expected behavior OpenCode should start normally and load open-mem without session error. Actual behavior OpenCode shows a session error popup, and logs plugin load failure related to: Export named 'getVercelOidcToken' not found ...