8000 wmux workspace list returns empty manifests array · Issue #398 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

wmux workspace list returns empty manifests array #398

Closed

Description

@richardaubin
Image

Is this functioning as expected?

Activity

  1. amirlehmam commented on Oct 29, 2026

    @amirlehmam
    Owner

    Thanks for asking, you found a real bug. Fixed in 2.49.0.

    wmux workspace list lists the project workspace manifests (wmux.workspace.json files) you have allowed to run on this machine. It stays [] until you open one with wmux workspace open and choose to run its commands in the trust dialog. So for most people, an empty list from that command is the correct answer.

    The bug: since 2.23.0, wmux list-workspaces returned that same manifest list instead of your open workspaces, because both commands used the same internal method name. In 2.49.0, list-workspaces returns your workspaces again, workspace list still lists trusted manifests, and the help text explains the difference.

    To get an entry in manifests, put a wmux.workspace.json at the root of a project:

    {
      "version": 1,
      "name": "my-project",
      "panes": [
        { "id": "dev", "run": ["npm run dev"] },
        { "id": "shell" }
      ]
    }

    Then run wmux workspace open in that folder and choose to run it. wmux workspace validate checks a manifest, wmux workspace save writes one from your current workspace, and the full schema is in docs/workspace-manifest.md.

  2. richardaubin commented on Oct 29, 2026

    @richardaubin
    Author

    Can you point me to some documentation as to why I would save a workspace this way?

  3. amirlehmam commented on Oct 29, 2026

    @amirlehmam
    Owner

    Sure! The full write-up is docs/workspace-manifest.md. In short, a manifest is for a dev setup you want to commit with a repo and bring up with one command, rather than rebuild by hand:

    • Same setup for everyone. It describes which panes open, in which folders, running which commands (npm run dev, docker compose up, claude…), plus the browser tabs. Anyone who clones the repo runs wmux workspace open and gets the same layout.
    • Start order. after and waitFor (a port, an HTTP URL or a delay) start the web server only once the API answers, the API only once the database port is open, and so on. runOnce covers first-time steps like pnpm install.
    • Processes come back. wmux's own session restore brings your layout back after a restart, but deliberately not the running commands. wmux workspace open starts them again.
    • Safe by default. Because the file arrives with git clone, nothing runs until you have seen every command in a wmux dialog and said yes. Any change to the file asks again. That approval is what wmux workspace list shows.

    If you just want your current layout back after a restart, you don't need any of this: session restore and named sessions already cover that. Manifests are for a setup you want reproducible and shareable. wmux workspace save is the shortcut: it writes a manifest from the workspace you have open, so you can edit and commit it.

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

Metadata

Metadata

Assignees

No one assigned

    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

      0