You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -203,29 +221,36 @@ function _loadAndValidateConfig(explicitRoot = null) {
203
221
}
204
222
}else{
205
223
// Config file doesn't exist at the determined rootToUse.
206
-
if(explicitRoot){
207
-
// Only warn if an explicit root was *expected*.
208
-
console.warn(
209
-
chalk.yellow(
210
-
`Warning: Configuration file not found at provided project root (${explicitRoot}). Using default configuration. Run 'task-master models --setup' to configure.`
211
-
)
212
-
);
213
-
}else{
214
-
// Don't warn about missing config during initialization
215
-
// Only warn if this looks like an existing project (has .taskmaster dir or legacy config marker)
216
-
consthasTaskmasterDir=fs.existsSync(
217
-
path.join(rootToUse,TASKMASTER_DIR)
218
-
);
219
-
consthasLegacyMarker=fs.existsSync(
220
-
path.join(rootToUse,LEGACY_CONFIG_FILE)
221
-
);
222
-
223
-
if(hasTaskmasterDir||hasLegacyMarker){
224
+
// Skip warnings if:
225
+
// 1. Global suppress flag is set (during API mode detection)
226
+
// 2. storageType is explicitly 'api' (remote storage mode - no local config expected)
`Warning: Configuration file not found at derived root (${rootToUse}). Using defaults.`
234
+
`Warning: Configuration file not found at provided project root (${explicitRoot}). Using default configuration. Run 'task-master models --setup' to configure.`
227
235
)
228
236
);
237
+
}else{
238
+
// Don't warn about missing config during initialization
239
+
// Only warn if this looks like an existing project (has .taskmaster dir or legacy config marker)
240
+
consthasTaskmasterDir=fs.existsSync(
241
+
path.join(rootToUse,TASKMASTER_DIR)
242
+
);
243
+
consthasLegacyMarker=fs.existsSync(
244
+
path.join(rootToUse,LEGACY_CONFIG_FILE)
245
+
);
246
+
247
+
if(hasTaskmasterDir||hasLegacyMarker){
248
+
console.warn(
249
+
chalk.yellow(
250
+
`Warning: Configuration file not found at derived root (${rootToUse}). Using defaults.`
251
+
)
252
+
);
253
+
}
229
254
}
230
255
}
231
256
// Keep config as defaults
@@ -241,17 +266,19 @@ function _loadAndValidateConfig(explicitRoot = null) {
241
266
* Handles MCP initialization context gracefully.
242
267
* @param {string|null} explicitRoot - Optional explicit path to the project root.
243
268
* @param {boolean} forceReload - Force reloading the config file.
0 commit comments