Skip to content

Comments

Fix: auto-start agent after spec creation from empty Kanban#145

Merged
leonvanzyl merged 1 commit intoAutoForgeAI:masterfrom
nogataka:fix/agent-auto-start-from-empty-kanban
Feb 1, 2026
Merged

Fix: auto-start agent after spec creation from empty Kanban#145
leonvanzyl merged 1 commit intoAutoForgeAI:masterfrom
nogataka:fix/agent-auto-start-from-empty-kanban

Conversation

@nogataka
Copy link
Contributor

@nogataka nogataka commented Jan 31, 2026

Summary

Fixes #144

When creating a spec from an empty Kanban board (via "Create Spec" button), the agent was not automatically starting after clicking "Continue to Project". Users had to manually click the Play button to start the agent.

Root Cause

SpecCreationChat component is used in two places with different onComplete handlers:

Location Usage onComplete behavior
NewProjectModal.tsx New project creation ✅ Calls startAgent()
App.tsx Create spec from empty Kanban ❌ Did NOT call startAgent()

The App.tsx version only closed the chat and refreshed queries but did not start the agent.

Changes

  • Add startAgent import to App.tsx
  • Update onComplete handler to call startAgent() with yoloMode and maxConcurrency parameters

Summary by CodeRabbit

  • New Features
    • Agent now automatically initiates after spec creation, eliminating the need for manual startup and streamlining the workflow.

✏️ Tip: You can customize this high-level summary in your review settings.

When creating a spec from an empty Kanban board (via "Create Spec" button),
the agent was not automatically starting after clicking "Continue to Project".

Root cause: The SpecCreationChat component in App.tsx had an onComplete handler
that only closed the chat and refreshed queries, but did not call startAgent().
This was different from the NewProjectModal flow which correctly started the agent.

Changes:
- Add startAgent import to App.tsx
- Update onComplete handler to call startAgent() with yoloMode and maxConcurrency

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Jan 31, 2026

📝 Walkthrough

Walkthrough

The PR fixes a bug where the agent fails to automatically start after creating a spec through the Kanban board. It adds the missing startAgent call to the onComplete handler in App.tsx, matching the behavior already present in NewProjectModal.tsx.

Changes

Cohort / File(s) Summary
Agent Auto-Start on Spec Creation
ui/src/App.tsx
Added startAgent import from './lib/api. Updated onComplete handlers in both SpecCreationChat usages to automatically start the agent with yoloMode and maxConcurrency: 3 after spec creation, wrapped in try/catch error handling. Queries are refreshed and spec chat is hidden after agent starts.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐰 A spec is born, the agent springs to start,
No waiting, no clicking—just pure bunny heart!
From chat to action, smooth as morning dew,
The Kanban board now knows what to do! 🏃‍♂️✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main fix: auto-starting the agent after spec creation from an empty Kanban board, which directly matches the changeset in App.tsx.
Linked Issues check ✅ Passed The PR fully addresses issue #144 by importing startAgent and updating the onComplete handler in App.tsx to call startAgent with proper parameters (yoloMode and maxConcurrency), error handling, and query invalidation.
Out of Scope Changes check ✅ Passed All changes in App.tsx are directly scoped to fixing the agent auto-start issue; no unrelated modifications or unnecessary changes are present.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@leonvanzyl leonvanzyl merged commit d27db31 into AutoForgeAI:master Feb 1, 2026
3 checks passed
@leonvanzyl
Copy link
Collaborator

Thank you!

rudiheydra added a commit to rudiheydra/AutoBuildr that referenced this pull request Feb 2, 2026
…AI#145)

Add metadata-only endpoint returning artifact info without content body.
Returns id, run_id, artifact_type, content_hash, size_bytes, metadata,
created_at, and has_inline_content flag using ArtifactListItemResponse schema.

- Added get_artifact_metadata endpoint to server/routers/artifacts.py
- Returns 404 for non-existent artifacts
- Works for both inline and file-based artifacts
- 9 tests covering logic, HTTP, and schema validation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
CoreAspectStu pushed a commit to CoreAspectStu/autocoder-custom that referenced this pull request Feb 9, 2026
…-from-empty-kanban

Fix: auto-start agent after spec creation from empty Kanban
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.

[Bug] Agent does not auto-start after spec creation from empty Kanban

2 participants