Skip to content

Desktop App - Workspace path encoding issue causes session loading failure #23100

Closed as not planned

Description

@diny1203-sudo

Bug Description

Desktop app fails to load sessions with the following errors:

  1. ZodError: Invalid string: must start with "wrk" - workspace ID validation failure
  2. Unknown workspace adaptor: directory failed - workspace type not recognized
  3. Session not found failed - session cannot be loaded

Environment

  • OpenCode Version: 1.4.7 (Desktop)
  • OS: macOS
  • Plugin: None

Steps to Reproduce

  1. Open OpenCode Desktop app
  2. Try to load historical sessions or click "Load more"
  3. Session list does not update, still shows only ~5 sessions
  4. Some sessions cannot be deleted or edited

Expected Behavior

  • All historical sessions should appear in sidebar
  • User can load more sessions
  • Can normally delete and edit all sessions

Actual Behavior

  • Only ~5 sessions visible
  • "Load more" button has no response
  • Some sessions cannot be deleted
  • Error logs show workspace path validation failure

Data Status

  • SQLite database session table contains 61 sessions (including 10 business sessions)
  • workspace table has been updated with wrk_* prefix IDs
  • But Desktop app UI cannot properly load these sessions

Logs

ZodError: [
  {
    "origin": "string",
    "code": "invalid_format",
    "format": "starts_with",
    "prefix": "wrk",
    "path": [],
    "message": "Invalid string: must start with \"wrk\""
  }
]
ERROR: Unknown workspace adaptor: directory failed
ERROR: Session not found failed

Related Issues

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    webRelates to opencode on web / desktop
    on Apr 17, 2026
  2. github-actions commented on Apr 17, 2026

    @github-actions
    Contributor

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

    If your issue is the same as one of these, please consider closing this one and adding any new information (e.g., the specific workspace path encoding/ZodError details) as a comment on the existing issue instead.

  3. removed
    webRelates to opencode on web / desktop
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 5, 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.

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