Skip to content

Prompt shows Workspace/Session location unavailable immediately after interrupt/restart #46322

Closed

Description

@Noisemaker111

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:

const workspaceStatus = workspaceID ? (project.workspace.status(workspaceID) ?? "error") : undefined
if (workspaceStatus !== "connected") // mounts chooser

?? "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):**

![Session location unavailable — Choose another directory — ~/.config/opencode — Choose directory](https://raw.githubusercontent.com/Noisemaker111/opencode/sst-pr/docs/screenshots/session-location-unavailable.png)
*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:**

![Version — opencode 1.18.23 — 1.18.25 HEAD — 54fc0eb](https://raw.githubusercontent.com/Noisemaker111/opencode/sst-pr/docs/screenshots/version.png)

### Operating System

Windows 11

### Terminal

Windows Terminal / pwsh

Activity

  1. github-actions commented on Aug 31, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. 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
  3. Noisemaker111 commented on Aug 31, 2026

    @Noisemaker111
    ContributorAuthor

    Was duplicate. act like this never existing please. apologies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions