Use the local project id when the cloud project is unavailable - #664
Merged
Martin-Molinero merged 1 commit intoAug 26, 2026
Conversation
A project that no longer exists in the cloud, or that the current user cannot reach, no longer identifies anything, so its cloud-id must not be used as the id of the project that runs locally. Look the project up before using its cloud-id and fall back to the negative local id. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
AlexCatarino
force-pushed
the
bug-local-project-id-for-deleted-cloud-project
branch
from
August 26, 2026 14:18
21fc41d to
9b0e720
Compare
Martin-Molinero
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A local run sends the project's
cloud-idas its project id even when that cloud project can no longer be read. It surfaced through the Auth0 authorize URL oflean live deploy, which pointed at a project that was no longer there:Fix
Look the project up before using its
cloud-id, and fall back to the negative local id when it cannot be reached, as a project that was never pushed already does.projects/read200cloud-idRequestFailedError-local_idA project sitting in the Recycle Bin still reads back normally, so it keeps its
cloud-id. That is deliberate: it can be moved back out, and the id stays valid.Notes
projects/readcall to every local run of a pushed project:backtest,research,optimize, locallive deployandprivate_cloud start.data downloadis unaffected, it has no project directory and returns-1before reaching the lookup.-local_idinstead of failing, since the fallback covers connection errors along with everything else. The reason is logged at debug level.Testing
tests/components/config: 101 passing, with new cases for a project that exists, one that cannot be read, and one that was never pushed.Project not foundand fell back to the local id.🤖 Generated with Claude Code