Summary
The planning automation currently hardcodes sprint_number=1 when calling LeadAgent.generate_issues(). This should be configurable or derived from project state.
Location
codeframe/ui/routers/discovery.py:193
issues = await asyncio.to_thread(agent.generate_issues, sprint_number=1)
Suggested Solutions
- Derive from project state: Query the current/next sprint number from the database
- Pass as parameter: Allow sprint number to be specified in the PRD generation request
- Auto-increment: Track sprint count per project and auto-increment
Acceptance Criteria
Context
This was identified during code review of PR #205 (planning phase automation).
Summary
The planning automation currently hardcodes
sprint_number=1when callingLeadAgent.generate_issues(). This should be configurable or derived from project state.Location
codeframe/ui/routers/discovery.py:193Suggested Solutions
Acceptance Criteria
Context
This was identified during code review of PR #205 (planning phase automation).