Skip to content

Desktop app should resume existing sessions when reopened #19406

@anduimagui

Description

@anduimagui

Problem

The desktop app mounts packages/app, but the app session page only syncs the session data when reopening an existing session. It does not call the existing session resume lifecycle that was added on the backend and already used by the CLI/TUI.

Expected behavior

Reopening an existing session in the desktop app should trigger the resume lifecycle once, while brand-new sessions and freshly forked sessions should skip their initial resume call.

Proposed fix

Port the app-side resume behavior from the TUI into packages/app, reuse the shared resume helper logic for the session page, and add coverage for the one-shot skip behavior for new sessions and forks.

Related context

This depends on the backend/session lifecycle work in #18007.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)webRelates to opencode on web / desktop

Type

No type
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