Skip to content

Template copying fails silently when name conflicts exist #18667

@blink-so

Description

@blink-so

Bug Report

Description:
When attempting to copy the "Write Coder on Coder" template, users get stuck in the UI without any error indication, even though the backend /templates endpoint returns a validation error.

Steps to Reproduce:

  1. Attempt to copy the "Write Coder on Coder" template
  2. Process gets stuck in the UI with no error message shown

Expected Behavior:
The UI should display the validation error to inform the user why the operation failed.

Actual Behavior:

  • UI appears stuck/frozen with no error indication
  • Backend correctly returns validation error: Template with name "coder-devcontainer" already exists
  • Error response includes proper validation details but UI doesn't surface them

UI View

Image

Backend Error Response:

{
    "message": "Template with name \"coder-devcontainer\" already exists.",
    "validations": [
        {
            "field": "name",
            "detail": "This value is already in use and should be unique."
        }
    ]
}

Impact:

  • Users are unable to understand why template copying fails
  • Multiple users have encountered this issue
  • Similar validation error handling issues exist in other parts of the UI

Additional Context:

  • This appears to be part of a broader pattern where validation errors from the backend are not properly surfaced in the frontend
  • Multiple attempts by the same user result in the same silent failure
  • Issue has been ongoing for some time

Reporter: @U03C7NBLPBM
Additional Context From: @U04T3LN8ASU, @U01GSS807RT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy