Fix two GraphQL selections that Linear's schema no longer accepts - #46
Open
philipbjorge wants to merge 3 commits into
Open
Fix two GraphQL selections that Linear's schema no longer accepts#46philipbjorge wants to merge 3 commits into
philipbjorge wants to merge 3 commits into
Conversation
added 3 commits
August 18, 2026 13:35
`initiatives list` has been returning HTTP 400 for every caller:
Cannot query field "progress" on type "Initiative".
Did you mean "projects"?
Schema introspection confirms Initiative no longer exposes `progress`; it
carries `health` and `status` instead. Query `health` and show it in the
table in place of the derived percentage.
`initiative get` was unaffected — it never selected the field — and the
`progress` selection on Project inside its projects query is still valid,
so both are left alone.
`issues get --history` has been returning HTTP 400 for every caller:
Cannot query field "slaBreachesAt" on type "IssueHistory".
Did you mean "toSlaBreachesAt", "fromSlaBreachesAt", or "toSlaBreached"?
IssueHistory only carries the to*/from* prefixed variants. Remove the two
bare selections from the history fragment. The identically named fields on
the Issue type are valid and stay, as does the formatter that reads them
when the API does return them.
PR Check has failed on "Check formatting" since 2026-08-05 because src/commands/initiatives.rs ends with an extra blank line. It is the only formatting diff in the tree, and it is unrelated to the fixes in this branch — happy to split it out if you would rather take it on its own.
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.
Two commands return HTTP 400 for every caller against the current Linear schema. Both are one-field fixes.
initiatives listIntrospecting the live schema,
Initiativehas 49 fields andprogressis not among them — it carrieshealthandstatusinstead. Linear appears to have removed it. This selectshealthand shows it in the table where the derived percentage used to go.Deliberately left alone:
initiative getnever selected the field, so it was never broken.progressselection onProject, inside the initiative's projects query, is still valid —Projectdoes exposeprogress.issues get --historyIssueHistoryonly carries theto*/from*prefixed variants. This drops the two bare selections from the history fragment. The identically named fields on theIssuetype are valid and stay, as does the formatter that reads them.This is the same class of bug as #29, which you fixed in 0.3.26.
Also included
A one-line
chorecommit removing a trailing blank line frominitiatives.rs. It is the only formatting diff in the tree, and PR Check has been failing on "Check formatting" since 2026-08-05 because of it — so without it this PR shows red through no fault of its own. Happy to split it out if you would rather take it separately.Verification
Run against a live workspace on macOS arm64, and all three commands now return data:
Context
We drive linear-cli from an agent harness, and these two accounted for 78 failed invocations in a single week — they are the top two failure modes in our logs. Thanks for the tool.