Skip to content

bug: /api/v2/users/chat/workspace/embed returns "user" must be an existing uuid or username. #18779

Open
@denysvitali

Description

@denysvitali

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using the new "Tasks" tab, after the workspace is created and code-server is ready, the left part (chat?) shows:

"user" must be an existing uuid or username.
queried user="chat"

I think this might be due to the fact that I logged in via GitHub (?) and this is the open source edition

Image

The path of the HTTP call is:
/api/v2/users/chat/workspace/embed?include_deleted=true

Additionally, when starting one of the workspaces with Claude Code:
Image

... the "Claude Code Web" link opens a tab pointing at /chat/embed - but that returns a similar error:

"user" must be an existing uuid or username.
queried user="chat"

Relevant Log Output

Expected Behavior

A chat appears on the left side and no error shows up in the developer console

Steps to Reproduce

  1. Create a template that uses the new coding agents (see for example claude-code)
  2. Create a new task, type anything
  3. Wait for the workspace to be ready, you should see the error on the left side

Environment

  • Host OS: Alpine Linux - Kubernetes
  • Coder version: ghcr.io/coder/coder:v2.24.1

Additional Context

The issue occurs consistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that require triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions