Skip to content

fix: teams list command failing with first validation error - #1

Merged
nchgn merged 2 commits into
mainfrom
fix/teams-list-first-validation
Jan 28, 2026
Merged

nchgn merged 2 commits into
mainfrom
fix/teams-list-first-validation

Conversation

@nchgn

@nchgn nchgn commented Jan 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fix the teams list command failing with:

{
  "success": false,
  "error": {
    "code": "API_ERROR",
    "message": "Argument Validation Error - first must not be less than 1."
  }
}

Root cause

In src/commands/teams/list.ts:84, the code was passing first: 0 when fetching issues to get the count:

const issues = await team.issues({first: 0})

The Linear API requires first to be at least 1.

Fix

Changed first: 0 to first: 1.

Test plan

  • Build passes
  • Run linear teams list and verify it works

🤖 Generated with Claude Code

nchgn and others added 2 commits January 28, 2026 17:25
The Linear API requires `first` to be at least 1. Changed from 0 to 1
when fetching issues to get the count.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Same issue as teams list - Linear API requires first >= 1.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nchgn
nchgn merged commit 4fe45f7 into main Jan 28, 2026
4 checks passed
@nchgn
nchgn deleted the fix/teams-list-first-validation branch January 28, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant