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:
Cursor Agent
2026-07-04 00:18:30 +00:00
committed by Codesmith
parent 4866b04f39
commit 89bc05ae69

View File

@@ -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',