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
Prompt shows Workspace/Session location unavailable immediately after interrupt/restart #46322
AI disclosure: This issue was drafted with AI assistance and reviewed/edited by a human. Description is short and verified locally.
Description
Interrupting a session (double-esc → session.abort) or running /restart within ~5s mounts the blocking DialogWorkspaceUnavailable (Session location unavailable — Choose another directory to continue this session) even though the directory/workspace still exists and will reconnect on its own. Navigating home and back shows it as connected again — the chooser abandoned a live session.
Root cause is packages/tui/src/component/prompt/index.tsx:976:
?? "error" treats undefined (still syncing after server.instance.disposed → bootstrap() → syncWorkspaceLoop/connectSSE) as dead. !== "connected" also treats connecting/disconnected as dead. Both are transient for ~5s (TIMEOUT=5000 in control-plane/workspace.ts:437) while SSE + syncHistory retry with backoff. Fix should only block on error and await the live signal for other states.
Plugins
none — default TUI
OpenCode version
> opencode2 --version
0.0.0-beta-18707 (v2 beta, NOT 1.18.23)```
### Steps to reproduce
1. `opencode ~/.config/opencode` → start session → send prompt
2. double-`esc` to interrupt, then submit within ~3s — OR run `/restart` and submit within ~5s
3. Observe blocking `Session location unavailable` / `Workspace Unavailable` chooser forcing a directory pick
### Screenshot and/or share link
**Before (Image 1, reporter):**

*Dark TUI — top `Explored — 4 reads / Continuing after restart`, bottom `▲ Session location unavailable — ~/.config/opencode — Choose another directory to continue this session. [Choose directory]` (original Image 1).*
**Version:**

### Operating System
Windows 11
### Terminal
Windows Terminal / pwsh
changed the title [-]fix(tui): prompt shows Workspace unavailable instantly after interrupt/restart[/-][+]Prompt shows Workspace/Session location unavailable immediately after interrupt/restart[/+]on Aug 31, 2026
Activity
github-actions commentedon Aug 31, 2026
This issue might be a duplicate of existing issues. Please check:
session location unavailablemodal appearing after a service restart, with the same root cause area — transient reconnect state being treated as a permanent location failure.[-]fix(tui): prompt shows Workspace unavailable instantly after interrupt/restart[/-][+]Prompt shows Workspace/Session location unavailable immediately after interrupt/restart[/+]Noisemaker111 commentedon Aug 31, 2026
Was duplicate. act like this never existing please. apologies