brain-dev 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -913,7 +913,6 @@ function stepActivate(brainDir, state, storyDir, storyMeta) {
913
913
  // Update state phases
914
914
  state.phase = state.phase || { current: 0, status: 'initialized', total: 0, phases: [] };
915
915
  state.phase.current = 1;
916
- syncPhaseStatus(state, 'ready');
917
916
  state.phase.total = roadmapData.phases.length;
918
917
  state.phase.phases = roadmapData.phases.map(p => ({
919
918
  number: p.number,
@@ -921,7 +920,8 @@ function stepActivate(brainDir, state, storyDir, storyMeta) {
921
920
  status: p.status === 'Pending' ? 'pending' : p.status.toLowerCase(),
922
921
  goal: p.goal
923
922
  }));
924
- state.phase.execution_started_at = null;
923
+ // Sync AFTER phases array is rebuilt so per-phase status is correctly updated
924
+ syncPhaseStatus(state, 'ready');
925
925
  state.phase.stuck_count = 0;
926
926
  state.phase.last_stuck_at = null;
927
927
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brain-dev",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "AI-powered development workflow orchestrator",
5
5
  "author": "halilcosdu",
6
6
  "license": "MIT",