Skip to content

Web: New Session does nothing when no project has been opened #37606

Description

@ndj888

Description

On a fresh opencode web browser profile, no project is stored in the opened-project list. The home empty state omits its New Session action, and the titlebar New Session button silently returns without creating a draft.

The server startup directory is already available from GET /path, but neither path uses it as the final fallback.

Plugins

Reproduces without plugins.

OpenCode version

1.18.2

Steps to reproduce

  1. Start opencode web in a working directory.
  2. Open the URL in a fresh browser profile, or clear the site localStorage.
  3. Do not add a project.
  4. Click the titlebar New Session button.

Expected: a draft opens for the server startup directory.
Actual: nothing happens; the home empty state also has no New Session button.

Screenshot and/or share link

Not applicable. Reproduced in an isolated Chrome context with empty localStorage.

Operating System

macOS

Terminal

iTerm2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions