We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e018f7 commit c1376b8Copy full SHA for c1376b8
1 file changed
src/workflows/controller/config.ts
@@ -73,7 +73,7 @@ export async function loadControllerConfig(cmRoot: string): Promise<{
73
export async function saveControllerConfig(
74
cmRoot: string,
75
config: ControllerConfig,
76
- autonomousMode = 'true'
+ autonomousMode?: string
77
): Promise<void> {
78
const trackingPath = path.join(cmRoot, TEMPLATE_TRACKING_FILE)
79
@@ -88,7 +88,10 @@ export async function saveControllerConfig(
88
}
89
90
91
- data.autonomousMode = autonomousMode
+ // Only update autonomousMode if explicitly provided, otherwise preserve existing
92
+ if (autonomousMode !== undefined) {
93
+ data.autonomousMode = autonomousMode
94
+ }
95
data.controllerConfig = config
96
data.lastUpdated = new Date().toISOString()
97
// Ensure resumeFromLastStep is set for crash recovery
0 commit comments