Skip to content

Commit 9b88c54

Browse files
recuu-pfegclaude
andcommitted
fix: CLI startup no longer auto-transitions sprint to Active
startSprint() (POST) was called on every CLI connect, forcing Planning → Active. Changed to fetchSprintData() (GET) which only reads data without side effects. Release v0.5.3. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2f6c00a commit 9b88c54

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "toban-cli",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"description": "Toban Agent Runner CLI - Orchestrate AI coding agents from your terminal",
55
"type": "module",
66
"bin": {

src/setup.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ export async function setup(cliArgs: CliArgs, runner: AgentRunner): Promise<Setu
146146
}
147147

148148
// --- Sprint ---
149+
// Use fetchSprintData (GET) instead of startSprint (POST) to avoid
150+
// auto-transitioning planning → active on CLI connect
149151
let sprintData: SprintStartResult;
150152
try {
151-
sprintData = await api.startSprint();
153+
sprintData = await api.fetchSprintData();
152154
ui.sprintInfo(sprintData.sprint.number, sprintData.agents.length, sprintData.tasks.length);
153155
} catch (err) {
154-
ui.error(`Failed to start sprint: ${err}`);
156+
ui.error(`Failed to fetch sprint: ${err}`);
155157
await api.updateAgent({ name: cliArgs.agentName, status: "error", activity: `No active sprint: ${err}` });
156158
process.exit(1);
157159
}

0 commit comments

Comments
 (0)