Repository navigation
fix: make the Actor context fallback error generic and actionable - #1563
Merged
Merged
Conversation
The generic fallback in resolveActorContext said "Unable to detect what Actor to create a build for" for every caller, so `apify runs ls` and `apify builds ls` blamed builds. It now names no operation and points at both ways out. The four callers appended their own recovery hint, which duplicated the new copy and gave wrong advice on the "not found" branches, so it is gone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
commit: |
apify-factory
approved these changes
Nov 9, 2026
apify-factory
left a comment
Contributor
There was a problem hiding this comment.
Looks good, nothing blocking.
🏭 Apify Factory auto approved ✅ — every gate opened, nobody had to knock
Every gate passed, and neither the reviewer nor a juror found anything a human needs to look at.
Approval locked to c4efc81f1 · workflow run
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.
Note
apify runs lsoutside an Actor project failed with "Unable to detect what Actor to create a build for" — a builds message on a runs command. The shared fallback now names no operation and says what to do.Before
After
Changes
resolveActorContextis shared byruns ls,builds ls,builds createandactors info, so its generic fallback can't name one operation. Rewritten.update-docsproduces no diff.Notes
0on this failure, and three write the error to stdout, which breaks--json. Separate PR.actors infocan't reach the fallback — itsactorIdarg is required. The edit there only affects the "not found" branches.🤖 Generated with Claude Code