Skip to content

fix(opencode): improve --continue behavior on empty projects #27776

Open
Arjith8 wants to merge 4 commits into
anomalyco:devfrom
Arjith8:fix-tui-continue-empty-project
Open

fix(opencode): improve --continue behavior on empty projects #27776
Arjith8 wants to merge 4 commits into
anomalyco:devfrom
Arjith8:fix-tui-continue-empty-project

Conversation

@Arjith8
Copy link
Copy Markdown

@Arjith8 Arjith8 commented May 15, 2026

Issue for this PR

Closes #25989
More like updates the solution

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

It updates the behaviour for the -c flag, currently when we try to use -c on a project with no previous session we get a "Unexpected server error. Check server logs for details." which is raised due to the validation failing since we expect session to start with ses_ but our placeholder is dummy. The first commit updates placeholder to ses_dummy

The reason for 2nd commit is that when ses_dummy is used we are raising a error "Session not found: ses_dummy" to the user there is no ses_dummy ever created so I thought its a bit more UX wise better if we instead showed "No previous sessions in this project" instead.

How did you verify your code works?

Tested it locally, by using -c on a project with already existing previous session where it continued with the previous session as expected, while on a proj without prev session it rendered a toast with "No previous sessions in this project"

Screenshots / recordings

image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Arjith8 and others added 3 commits May 16, 2026 00:05
validation will fail and user will be shown an "unexpected server error" message
instead of say Session not found which is raised further down the line
when validation doesn't fail.
…ly it was showing "Session not found: ses_dummy" error when the project was never used in the past
@Arjith8 Arjith8 marked this pull request as ready for review May 15, 2026 19:00
@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

The current PR (27776) builds on this foundation by improving the user experience with a more informative message ("No previous sessions in this project") rather than just exiting with an error.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Fail gracefully when using --continue flag on a project with zero sessions

1 participant