Repository navigation
fix(projects): a status named Paused reads as paused everywhere - #73
Merged
Merged
Conversation
Linear's settings UI files a Paused status under the Planned category, so its type is planned and the closed-project guard never fired. Project state now derives from status (Linear deprecated state) in projects, show, overview, initiatives show and create. Exact status names resolve before types so --state planned no longer picks Paused. Release v0.31.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Verdict: APPROVE Checked at 88ccd70:
Nits (non-blocking):
|
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.
A project status named Paused now reads as
pausedeverywhere linear-cli shows a project:projects,projects show,projects overview(text and JSONstate),initiatives show, and thecreateguard from #72.Why: Linear's settings UI can only add Paused under the Planned category, so the status's type is
plannedand the deprecatedproject.statesaysplanned. The #72 guard therefore never fired for a paused project.project_state()derives the state fromstatus { name type }and treats the name Paused as paused.list_team_projectsand the other project reads normalize through it.Also fixed:
resolve_project_status_idmatched type before name. With twoplanned-type statuses,--state plannedcould pick Paused, since Linear lists it first. Exact names now win.Bumps to v0.31.0, including the install.sh pin and SHA.
Run evidence
Ran the branch build against live Linear from a directory bound to AGI, which is now set to the workspace's new Paused status. Output captured from that run:
python3 -m unittest test_linear→Ran 280 tests ... OK (skipped=4). New:ProjectStateTestandtest_name_wins_over_a_paused_status_of_type_planned.🤖 Generated with Claude Code