Skip to content

Workflow pages say when the platform credential has expired - #359

Merged
mattshax merged 1 commit into
mainfrom
platform-errors
Oct 2, 2026
Merged

mattshax merged 1 commit into
mainfrom
platform-errors

Conversation

@mattshax

@mattshax mattshax commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Workflow pages say when the platform credential has expired (#359)

On a deployment whose platform credential had expired, the Workflows tab and its Settings section showed only "internal error": a failed pw call raised a plain error, which the sanitizing handler hides. Every platform call behind those pages now goes through one wrapper that turns a CLI failure into a deliberate error. An expired or rejected credential answers 401 with what to do (add a personal platform API key under Settings, Model access, or renew the deployment credential); anything else answers 502 with the CLI's first line, timestamp removed. The run route keeps the raw CLI text, since the workspace retry recognizes a stopped workspace by it. One new test; all server and web tests pass.

@mattshax
mattshax merged commit 406770c into main Oct 2, 2026
2 checks passed
@mattshax
mattshax deleted the platform-errors branch October 2, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant