From c85783fbeeff8b3c1730b653daabda37b1cb7a75 Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Tue, 5 May 2026 01:58:43 -0700 Subject: [PATCH] docs(workspace): point recovery hint at /external/rotate (not the never-shipped /tokens) Self-review of #2852: the inline comment on the IssueToken-failed branch still referenced POST /workspaces/:id/tokens, which never shipped. The recovery path that did ship in #2852 is POST /workspaces/:id/external/rotate. Update the hint so the next operator who hits this failure mode finds the right endpoint. --- workspace-server/internal/handlers/workspace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace-server/internal/handlers/workspace.go b/workspace-server/internal/handlers/workspace.go index 3e6805fc..bedda7b1 100644 --- a/workspace-server/internal/handlers/workspace.go +++ b/workspace-server/internal/handlers/workspace.go @@ -617,8 +617,8 @@ func (h *WorkspaceHandler) Create(c *gin.Context) { if tokErr != nil { log.Printf("External workspace %s: token issuance failed: %v", id, tokErr) // Non-fatal — the workspace row still exists; the - // operator can call POST /workspaces/:id/tokens later - // to mint one. Return a 201 with a hint instead of + // operator can call POST /workspaces/:id/external/rotate + // later to recover. Return a 201 with a hint instead of // 500'ing a partial-success write. } else { connectionToken = tok