Fix fast map gate misrouting onboard after project setup
Move partial-planning ahead of the fast-map handoff and require !projectExists so complete-map-before-new-project only applies before new-project, allowing write-summary and partial-planning to win.
This commit is contained in:
@@ -260,14 +260,6 @@ function nextAction(params: {
|
||||
};
|
||||
}
|
||||
|
||||
if (params.fastMode && params.mapReadiness === 'fast') {
|
||||
return {
|
||||
kind: 'complete-map-before-new-project',
|
||||
command: params.handoffCommands.map_codebase,
|
||||
reason: 'The fast map is enough for lightweight onboarding, but project setup still requires the complete codebase map.',
|
||||
};
|
||||
}
|
||||
|
||||
if (params.hasPlanningArtifacts && params.missingPlanningFiles.length > 0) {
|
||||
return {
|
||||
kind: 'partial-planning',
|
||||
@@ -276,6 +268,14 @@ function nextAction(params: {
|
||||
};
|
||||
}
|
||||
|
||||
if (params.fastMode && params.mapReadiness === 'fast' && !params.projectExists) {
|
||||
return {
|
||||
kind: 'complete-map-before-new-project',
|
||||
command: params.handoffCommands.map_codebase,
|
||||
reason: 'The fast map is enough for lightweight onboarding, but project setup still requires the complete codebase map.',
|
||||
};
|
||||
}
|
||||
|
||||
if (params.hasDocsCandidates && !params.projectExists) {
|
||||
return {
|
||||
kind: 'ingest-docs',
|
||||
|
||||
Reference in New Issue
Block a user