Skip to content

TUI shows server error on --continue --fork: Expected a string starting with "ses", got "dummy" #29262

@suderman

Description

@suderman

Description

When starting OpenCode with opencode --continue --fork, the fork opens and appears usable, but the TUI shows this toast on startup:

Unexpected server error. Check server logs for details.

The server log shows a request failing because the session id is "dummy" instead of a real ses_... id:

ERROR service=server ref=err_edf4a03a error=Expected a string starting with "ses", got "dummy"

This has happened repeatedly when forking sessions after a previous session became stuck/queued. I can continue working in the fork, so the error is not fatal, but it looks like the TUI/server is making a startup request with a placeholder session id before the real forked session id is available.

I am using this as a workaround for sessions that appear wedged: the original session stops processing new messages / leaves them queued, but --continue --fork lets me continue.

Plugins

"opencode-ntfy.sh", "opencode-minimax-easy-vision", "@simonwjackson/opencode-direnv", "@tarquinen/opencode-dcp@latest"

OpenCode version

1.15.10

Steps to reproduce

  1. Have an existing OpenCode session that previously stalled or stopped processing queued messages.
  2. Start a fork from the CLI:
opencode --continue --fork
  1. Observe that the forked session opens and can still be used.

  2. Observe the TUI toast:

Unexpected server error. Check server logs for details.
  1. Check the OpenCode logs:
rg -n -C 10 'Expected a string starting with "ses", got "dummy"' ~/.local/share/opencode/log
  1. Logs show:
ERROR service=server ref=err_edf4a03a error=Expected a string starting with "ses", got "dummy"

Screenshot and/or share link

Screenshot attached showing the TUI toast:

Unexpected server error. Check server logs for details.
Image

Relevant log excerpt:

/home/jon/.local/share/opencode/log/2026-05-25T191925.log:59:
INFO service=session id=ses_19f6c1805ffe2ziZ0G3WZCdgAW slug=jolly-cabin version=1.15.10 ...

/home/jon/.local/share/opencode/log/2026-05-25T191925.log:112:
ERROR service=server ref=err_edf4a03a error=Expected a string starting with "ses", got "dummy"

I also see MCP -32601 Method not found errors for resources/prompts around startup, but those look unrelated/noisy because the visible toast appears to correspond to the "dummy" session id server error.

Operating System

NixOS 25.11

Terminal

Kitty

Metadata

Metadata

Assignees

Labels

No labels
No labels

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