Skip to content

V2 design, after remove session, lead UI break #29323

Closed

Description

@Eric-Guo

Description

Error: Session not found: ses_1aa690d73ffeSP8w6s4JdUFREo
    at wrapClientError (http://localhost:5173/@fs/Users/guochunzhong/git/oss/opencode/packages/sdk/js/src/error-interceptor.ts:7:12)
    at request (http://localhost:5173/@fs/Users/guochunzhong/git/oss/opencode/packages/sdk/js/src/v2/gen/client/client.gen.ts:157:28)
    at async retry (http://localhost:5173/@fs/Users/guochunzhong/git/oss/opencode/packages/core/src/util/retry.ts:21:14)
    at async Promise.all (index 0)
    at async http://localhost:5173/@fs/Users/guochunzhong/git/oss/opencode/packages/app/src/context/directory-sync.ts:393:11



────────────────────────────────────────
原因:
{
  "body": {
    "name": "NotFoundError",
    "data": {
      "message": "Session not found: ses_1aa690d73ffeSP8w6s4JdUFREo"
    }
  },
  "status": 404
}

Plugins

n/a

OpenCode version

main

Steps to reproduce

  1. Create first sessions, say 'HELLO'
  2. Create second session, say 'Goodbye'
  3. Create third session, say 'OpenCode'
  4. Switch to second session and delete 'Goodbye'

Now will got reported UI break.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

N/A

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