Skip to content

fix: workspace creation failing with misleading error#136

Merged
gricha merged 1 commit intomainfrom
fix/workspace-creation-errors
Jan 17, 2026
Merged

fix: workspace creation failing with misleading error#136
gricha merged 1 commit intomainfrom
fix/workspace-creation-errors

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 17, 2026

Summary

  • mapErrorToORPC was converting any error with "not found" to "Workspace not found" - made image errors confusing
  • ensureWorkspaceImage tried to pull registry image even when it existed locally - failed on network/auth issues
  • Added check for registry image existing locally before attempting pull

Two issues fixed:

1. mapErrorToORPC was too generic - any error containing "not found" was
   converted to "Workspace not found", making "Workspace image not found"
   errors confusing. Now only matches actual workspace-not-found patterns.

2. ensureWorkspaceImage only checked for perry:latest locally, then tried
   to PULL the registry image even if it already existed. If pull failed
   (network/auth), it would error. Now checks if registry image exists
   locally before attempting pull.
@gricha gricha merged commit 07f124a into main Jan 17, 2026
8 checks passed
@gricha gricha deleted the fix/workspace-creation-errors branch January 17, 2026 21:50
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