-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Description
Description
When using opencode -c to continue the last session, the dashboard/home screen briefly appears before the resumed session loads. This is confusing because it looks like a new session is starting, then suddenly switches to the resumed session after 1-3 seconds.
Root cause: The session list is loaded in the non-blocking phase of bootstrap, but the continue effect waits for all data to load (sync.status === "complete"). Meanwhile, the route defaults to "home", so the dashboard renders while waiting.
Proposed fix: When -c flag is provided:
- Move
session.list()to the blocking phase insync.tsx - Trigger the continue navigation at "partial" status instead of "complete" in
app.tsx
This eliminates the dashboard flash entirely by ensuring session data is available immediately.
OpenCode version
latest (80eac96)
Steps to reproduce
- Start opencode and create a session with some messages
- Exit opencode
- Run
opencode -cto resume the last session - Observe the dashboard appearing briefly before the session loads
Operating System
Any (macOS, Linux, Windows)
Terminal
Any
Metadata
Metadata
Assignees
Labels
No labels