Skip to content

Commit 6c756c7

Browse files
author
StackMemory Bot (CLI)
committed
fix(conductor): state filter + labels flatten for issue dispatch
1 parent 2bba656 commit 6c756c7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/cli/commands/orchestrator.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,15 +1185,14 @@ export class Conductor {
11851185

11861186
const allCandidates: LinearIssue[] = [];
11871187

1188-
// Fetch issues for each active state
1189-
// Linear API filters by state type, but we need state name matching
1190-
// Use 'unstarted' type which covers Todo-like states
1188+
// Fetch issues with unstarted state type (covers Todo-like states)
1189+
// Then filter by exact state name match
11911190
const issues = await this.client.getIssues({
11921191
teamId: this.config.teamId,
1192+
stateType: 'unstarted',
11931193
limit: 50,
11941194
});
11951195

1196-
// Filter by active state names (case-insensitive, pre-computed)
11971196
for (const issue of issues) {
11981197
const stateName = issue.state.name.trim().toLowerCase();
11991198
if (this.activeStatesLower.includes(stateName)) {

0 commit comments

Comments
 (0)