Skip to content

Historical sessions disappear - Expected a string starting with "ses", got "dummy" error #28486

Closed as not planned

Description

@DANG9185

Description

Environment:

  • opencode version: 1.15.5
  • OS: Windows (win32)
  • Shell: PowerShell
    Description:
    After upgrading or running opencode, all historical sessions are no longer visible in the UI. The application still functions correctly for new sessions, but the session history is lost.
    Error from log:
    ERROR 2026-05-20T15:48:39 service=server error=Expected a string starting with "ses", got "dummy" cause=Error: Expected a string starting with "ses", got "dummy"
    at (B:/~BUN/root/chunk-b1nng1ye.js:25:10123)
    at (B:/~BUN/root/chunk-b1nng1ye.js:35:4256)
    at (B:/~BUN/root/chunk-gx4g06p1.js:2:107948) {
    [cause]: Error: Expected a string starting with "ses", got "dummy"
    } failed
    Additional Info:
  • Database file (opencode.db) is 63MB, suggesting data is still present
  • storage/session_diff/ contains 18 session files (from May 13-15)
  • New sessions are created successfully after the error
  • The error appears to be a session ID validation failure where "dummy" was found instead of a proper "ses_*" format
    Expected Behavior:
    Historical sessions should remain visible and accessible after upgrades/restarts.
    Actual Behavior:
    All historical sessions disappear from the UI, though the database file size indicates data is still present.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on May 20, 2026

    @github-actions
    Contributor

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

    If your issue is the same root cause, consider adding a comment there instead. If the specific Expected a string starting with "ses", got "dummy" error is distinct from those issues, this report is still valuable — please add any additional reproduction details if possible.

  2. HaleTom commented on Jun 22, 2026

    @HaleTom

    Also on Linux:

    Image
    [11:38:28.948] ERROR (#12432): failed {
      ref: "err_a0da1bb9",
      error: 20 | }`:Y.stack).join(`
    21 | `),kT=(X,Y)=>{let Q=X.stack.split(`
    22 | `),J=`${Y}[cause]: ${Q[0]}`;for(let G=1,$=Q.length;G<$;G++)J+=`
    23 | ${Y}${Q[G]}`;if(X.cause)J+=` {
    24 | ${kT(X.cause,`${Y}  `)}
    25 | ${Y}}`;return J},K3=`~effect/Fiber/${NH}`,an={_A:C,_E:C},sn={id:0},z5=()=>globalThis[zY];class NU{constructor(X,Y=!0){this[K3]=an,this.setContext(X),this.id=++sn.id,this.currentOpCount=0,this.currentLoopCount=0,this.interruptible=Y,this._stack=[],this._observers=[],this._exit=void 0,this._children=void 0,this._interruptedCau                   l             ▄     timeMetrics?.recordFiberStart(this.context)}[K3];id;interruptible;currentOpCount;currentLoopCount;_st▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▄t▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀dren;_interruptedCause;_yielded;context;currentScheduler;currentTracerContext;currentSpan;currentLogL▀  ▀ ▀  ▀ ▀▀▀▀ ▀  ▀l▀    ▀  ▀ ▀  ▀ ▀▀▀▀runtimeMetrics;maxOpsBeforeYield;currentPreventYield;_dispatcher=void 0;get currentDispatcher(){retur▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀?▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ler.makeDispatcher()}getRef(X){return oD(this.context,X)}addObserver(X){if(this._exit)return X(this._exit),S8;return this._observers.push(X),()=>{let Y=this._observers.indexOf(X);if(Y>=0)this._observers.splice(Y,1)}}interruptUnsafe(X,Y){if | ... truncated
                                     ┃
    error: Expected a string starting┃  Ask anything... "Fix broken tests"
          at /$bunfs/root/chunk-62436┃
          at /$bunfs/root/chunk-62436┃  Build · Nano Banana Pro Google
          at /$bunfs/root/chunk-e6zcx╹▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
          at ~effect/Effect/successCont (/$bunfs/root/chunk-624361m2.js:25:7810)     tab agents  ctrl+p commands
          at runLoop (/$bunfs/root/chunk-624361m2.js:25:2045)
          at evaluate (/$bunfs/root/chunk-624361m2.js:25:1435)
          at /$bunfs/root/chunk-624361m2.js:25:24625
          at /$bunfs/root/chunk-1nd8bv6q.js:6:19813
          at new Promise (native:1:11)
          at /$bunfs/root/chunk-1nd8bv6q.js:6:19683
          at fetch (/$bunfs/root/src/cli/tui/worker.js:2:4884)
          at /$bunfs/root/chunk-h00e7vhw.js:2:330
    ,
      cause: "Error: Expected a string starting with \"ses\", got \"dummy\"\n    at <anonymous> (/$bunfs/root/chunk-624361m2.js:25:10206)\n    at <anonymous> (/$bunfs/root/chunk-624361m2.js:33:21251)\n    at <anonymous> (/$bunfs/root/chunk-e6zcxa2p.js:2:109603) {\n  [cause]: Error: Expected a string starting with \"ses\", got \"dummy\"\n}",
    } ~/code/aur/aurscan-manticore:master                                                                                               1.17.9
    
    
  3. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  4. digglife commented on Sep 19, 2026

    @digglife

    seems still an issue here. I didn't upgrade recently, where should I investigate? Judging from the sqlite database size, the message data is still there.

    EDIT: the message data is ok but the session table is empty now. Guess that's the reason.

  5. sbe-arg commented on Sep 22, 2026

    @sbe-arg

    where should I investigate? Judging from the sqlite database size, the message data is still there.

    i have the same problem when I empty the session list for a workspace

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions