-
Notifications
You must be signed in to change notification settings - Fork 7
fix(status): report a project without a GitHub origin as absent #2260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -451,7 +451,7 @@ pub async fn handle_status( | |
| output["github_source"] = match github_source_status_v1(ctx.project_root()) { | ||
| Some(source) => serde_json::to_value(&source)?, | ||
| None => json!({ | ||
| "state": "not_observed", | ||
| "state": "absent", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a checkout has a GitHub origin but its full advisory owner has not mounted—such as when indexing is disabled or there are no indexable files— AGENTS.md reference: AGENTS.md:L228-L229 Useful? React with 👍 / 👎. |
||
| "reason": "the checkout has no GitHub origin, or its advisory owner has not mounted in this daemon", | ||
| }), | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the updated CLI connects to a still-running daemon built from the parent revision, that daemon returns the placeholder
{ "state": "not_observed", ... }. Because this filter now excludes onlyabsent, the placeholder is passed toserde_json::from_value::<GitHubSourceStatusV1>, which fails on the missingrepositoryfield and makes plaintracedecay statusexit with an error during version skew. Filter both placeholder states, or decode them through a compatible typed response.Useful? React with 👍 / 👎.