Skip to content

DevSpace was losing the workspaceId after MCP reconnects #339

Closed

Description

@amrpyt

DevSpace was losing the workspaceId after MCP reconnects or server restarts because the conversation-to-workspace binding was not being properly restored.

Activity

  1. grokking88 commented on Sep 11, 2026

    @grokking88

    i'm also encounting the same issue - ChatGPT will report it losts the session and unable to do edition etc, and that really hurts the experience.

  2. grokking88 commented on Sep 15, 2026

    @grokking88

    i'm also encounting the same issue - ChatGPT will report it losts the session and unable to do edition etc, and that really hurts the experience.

    It seems related with the situation when we have multiple chat sessions with the same MCP endpoint, the probabality of losing workspaceId will very high. I just avoid using multiple sessions now.

  3. Waishnav commented on Sep 15, 2026

    @Waishnav
    Owner

    @grokking88 @amrpyt can you guys try the v1.1 beta and see if it still happens there?

    The older DevSpace version used a stateful architecture, while the latest one uses a stateless MCP architecture. Not sure if that change is related though, this could also be on ChatGPT’s side, depending on how it preserves tool call results in the model context across reconnects.

  4. AnisDev522 commented on Sep 17, 2026

    @AnisDev522

    Tested on v1.1.0-beta.4. Confirms this is client-side (ChatGPT connector), not
    DevSpace:

    • Relogin to ChatGPT alone did NOT fix it — same "workspaceId"/schema mismatch
      persisted across a fresh login.
    • Verified DevSpace's own schema is internally consistent: open_workspace's
      output and read/write/edit/bash's input all declare workspace_id
      (snake_case) with no camelCase compatibility alias anywhere in the source.
    • Fully deleting the connector (not just disconnect) and re-adding it with the
      same MCP URL fixed it immediately. bash/read/write/edit/show_changes all
      succeeded right after reconnecting, in the same chat, without a new session.

    So the schema ChatGPT was using was stale at the connector registration
    level, not the conversation level — a plain relogin or new chat doesn't
    refresh it, only a full disconnect+reconnect does.

  5. DormantDaemon commented on Sep 17, 2026

    @DormantDaemon

    Inside plugin settings, where you can view all the tool schemas, at the bottom is a "refresh" button that can reload tools from MCP. You will most likely still need a new conversation, chatgpt freezes tooling in the conversation.

  6. grokking88 commented on Sep 17, 2026

    @grokking88

    Tested on v1.1.0-beta.4. Confirms this is client-side (ChatGPT connector), not DevSpace:

    • Relogin to ChatGPT alone did NOT fix it — same "workspaceId"/schema mismatch
      persisted across a fresh login.
    • Verified DevSpace's own schema is internally consistent: open_workspace's
      output and read/write/edit/bash's input all declare workspace_id
      (snake_case) with no camelCase compatibility alias anywhere in the source.
    • Fully deleting the connector (not just disconnect) and re-adding it with the
      same MCP URL fixed it immediately. bash/read/write/edit/show_changes all
      succeeded right after reconnecting, in the same chat, without a new session.

    So the schema ChatGPT was using was stale at the connector registration level, not the conversation level — a plain relogin or new chat doesn't refresh it, only a full disconnect+reconnect does.

    Reinstall the connector will fix this issue but it won't work for very long time, i had the same error just after creating two new chats.

    The HTTP requests received by devspace nearby the error is like:

        GET 200 OK      /.well-known/oauth-authorization-server
        GET 404 Not F…  /.well-known/openid-configuration
    
  7. amrpyt commented on Sep 21, 2026

    @amrpyt
    Author

    Did u find any solution? @grokking88

  8. Waishnav commented on Oct 27, 2026

    @Waishnav
    Owner

    Fixed: the conversation-to-checkout binding is persisted and restored on open_workspace (#128), and the cached pre-snake_case workspaceId argument is accepted (a59a06e9). Remaining "lost mid-chat" reports trace to ChatGPT's cached connector state; see #140.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions