You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenCode Desktop keeps restoring old project (frisiusmc2025) instead of selected project (groningenairport2023) #32847
OpenCode Desktop keeps binding the active chat/session to an old project (frisiusmc2025), even when I explicitly open groningenairport2023.
In the active chat, the working directory remains frisiusmc2025.
Environment
OpenCode Desktop: 1.16.2
macOS
User data directory: ~/Library/Application Support/ai.opencode.desktop
Expected behavior
When I open /Users/sakevellema/projects/groningenairport2023, the active/new session should use that project.
lastProject and workspace state should switch to groningenairport2023.
Actual behavior
opencode.global.dat repeatedly reverts to:
server.lastProject.local = /Users/sakevellema/projects/frisiusmc2025
server.projects.local = [frisiusmc2025]
layout.page.lastProjectSession may contain both projects, but the active session still resolves to frisius.
Even after resetting profile/state and explicitly opening airport, the chat returns to frisius context.
Plugins
“I’m not using any OpenCode plugins (plugin is not set in my config). I only have two MCP servers enabled: figma (remote, localhost) context7 (local @upstash/context7-mcp)”
OpenCode version
Version 1.16.2 (1.16.2)
Steps to reproduce
Steps to reproduce
Open OpenCode with an existing session on frisiusmc2025.
Open/select /Users/sakevellema/projects/groningenairport2023.
Ask “which project is this?” (or check cwd).
It still reports/uses frisiusmc2025.
What I already tried
Manually edited opencode.global.dat (server.lastProject, projects.local, layout.page.lastProjectSession).
Renamed/removed opencode.global.dat*.
Full profile reset:
moved ~/Library/Application Support/ai.opencode.desktop and let it recreate.
Started app with explicit project path:
open -na OpenCode "/Users/.../groningenairport2023"
Started with alternate --user-data-dir.
Fully closed app processes (pkill) between attempts.
Helpful observation
It looks like session restore from an existing chat immediately writes state back to frisius as soon as that session becomes active.
So even correct state edits get overwritten right away.
Impact
Project switching is unreliable; old session/project context keeps taking over.
Relevant files
Activity
github-actions commentedon Jun 18, 2026
This issue might be a duplicate of existing issues. Please check:
github-actions commentedon Aug 18, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Hona commentedon Sep 2, 2026
Fixed for opencode2 launch via #46713
You can try the desktop beta here: https://github.com/anomalyco/opencode-beta