mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 21:23:07 +00:00
Merge pull request #163 from AutoMaker-Org/fix/automode-infinite-loop
fix: prevent infinite loop when resuming feature with existing context
This commit is contained in:
@@ -487,6 +487,8 @@ export class AutoModeService {
|
||||
|
||||
try {
|
||||
// Check if feature has existing context - if so, resume instead of starting fresh
|
||||
// Skip this check if we're already being called with a continuation prompt (from resumeFeature)
|
||||
if (!options?.continuationPrompt) {
|
||||
const hasExistingContext = await this.contextExists(
|
||||
projectPath,
|
||||
featureId
|
||||
@@ -499,6 +501,7 @@ export class AutoModeService {
|
||||
this.runningFeatures.delete(featureId);
|
||||
return this.resumeFeature(projectPath, featureId, useWorktrees);
|
||||
}
|
||||
}
|
||||
|
||||
// Emit feature start event early
|
||||
this.emitAutoModeEvent("auto_mode_feature_start", {
|
||||
|
||||
Reference in New Issue
Block a user