opencode -c shows dashboard before resuming session #3678

Closed
opened 2026-02-16 17:41:04 -05:00 by yindo · 2 comments
Owner

Originally created by @anntnzrb on GitHub (Dec 19, 2025).

Originally assigned to: @rekram1-node on GitHub.

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:

  1. Move session.list() to the blocking phase in sync.tsx
  2. 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 (80eac9625)

Steps to reproduce

  1. Start opencode and create a session with some messages
  2. Exit opencode
  3. Run opencode -c to resume the last session
  4. Observe the dashboard appearing briefly before the session loads

Operating System

Any (macOS, Linux, Windows)

Terminal

Any

Originally created by @anntnzrb on GitHub (Dec 19, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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: 1. Move `session.list()` to the blocking phase in `sync.tsx` 2. 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 (80eac9625) ### Steps to reproduce 1. Start opencode and create a session with some messages 2. Exit opencode 3. Run `opencode -c` to resume the last session 4. Observe the dashboard appearing briefly before the session loads ### Operating System Any (macOS, Linux, Windows) ### Terminal Any
yindo closed this issue 2026-02-16 17:41:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2025):

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

  • #4378: --continue doesn't always continue the project's previous session

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Dec 19, 2025): This issue might be a duplicate of existing issues. Please check: - #4378: --continue doesn't always continue the project's previous session Feel free to ignore if this doesn't address your specific case.
Author
Owner

@anntnzrb commented on GitHub (Dec 19, 2025):

Not a duplicate of #4378.

  • #4378 is about -c loading the wrong session (from a different project)
  • This issue is about the dashboard/home screen flashing briefly before the correct session loads (UX timing issue)

The root cause and fix are different. This issue addresses the async loading order in the TUI bootstrap process.

@anntnzrb commented on GitHub (Dec 19, 2025): Not a duplicate of #4378. - **#4378** is about `-c` loading the wrong session (from a different project) - **This issue** is about the dashboard/home screen flashing briefly before the correct session loads (UX timing issue) The root cause and fix are different. This issue addresses the async loading order in the TUI bootstrap process.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3678