fix(runner): resolve issue pickup and decomposition failures#19
Merged
Conversation
- Enhance auditor.test.ts: +11 tests for internal function coverage - Enhance cliStreamParser.test.ts: +16 tests for advanced stream processing - Enhance documenter.test.ts: +12 tests for internal function coverage - All agent module tests now passing: 274 total tests - Test execution time: <500ms per file, all complete in <4s - Coverage improvements for auditor, documenter, cliStreamParser modules
- Remove unused PairSession and PairSessionStatus types from agentPair.test.ts - Remove unused AgentMessage type from agentBus.test.ts - Remove unused result variable in cliStreamParser.test.ts
- Fix daily decomposition counter never resetting in long-running service.
ensureDecompositionStateLoaded() only checked date on initial disk load;
added resetDailyCounterIfNeeded() that runs on every getDailyCreationCount() call.
- Remove autoBacklog on daily limit in decomposeTask(). Moving tasks to
Backlog permanently excluded them from future heartbeats since
heartbeatParallel filters out Backlog tasks. Daily limit resets naturally,
so just skip decomposition and fall through to direct execution.
- Fix Discord path missing state field in linearIssueToTask(). Without
linearState, filterAlreadyProcessed recovery logic could not match
recoverableStates. Also add missing enableDecomposition, maxConcurrentTasks,
and worktreeMode config to Discord !auto start.
- Improve fetchLinearTasks error handling. Previously returned empty array
on API failure, indistinguishable from empty backlog. Now returns
{tasks, error?} with consecutive failure tracking and Discord alerts.
- Remove dead legacy executeTask/handleDecision code to stay under 1000-line limit.
Refs: INT-1088
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
unohee
added a commit
that referenced
this pull request
Mar 9, 2026
fix(runner): resolve issue pickup and decomposition failures
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.
Summary
!auto startpath missingstatefield,enableDecomposition,maxConcurrentTasks, andworktreeModefetchLinearTaskserror handling with distinct error reporting vs empty backlogChanges
src/automation/runnerState.ts— AddresetDailyCounterIfNeeded()called on everygetDailyCreationCount()src/automation/runnerExecution.ts— Remove Backlog move on daily limit; return{tasks, error?}from fetchsrc/automation/autonomousRunner.ts— Handle fetch errors distinctly; remove dead legacy codesrc/discord/discordHandlers.ts— Add missingstatefield and config to Discord auto startRelated Issues
🤖 Generated with Claude Code