Skip to content

🤖 fix: an unreadable config.json shows an empty workspace list with no error #5781

Description

@ThomasK33

Problem

When config.json cannot be read or parsed, the workspace list comes back empty with no error. WorkspaceService.list and listByArchivedStatus read the defaults view that a failed load returns, so they answer []. The renderer's initial load uses the subscribeMetadata snapshot, which calls listByArchivedStatus. It accepts the empty snapshot as a success, clears its metadata map, sets loadError to null, and the projects sidebar shows no workspaces.

#5757 (PR #5777) fixes the same cause for workspace.getInfo, edits, sends and resumes. The list path was left out because it is the startup flow, and changing it needs its own renderer handling.

Expected

Found by Codex review on #5777.

Refs #5757


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $37.09

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions