mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-01-30 06:12:05 +00:00
fix: suppress config warnings during Sentry init and API mode detection (#1482)
This commit is contained in:
@@ -72,7 +72,8 @@ import {
|
||||
getDebugFlag,
|
||||
getDefaultNumTasks,
|
||||
isApiKeySet,
|
||||
isConfigFilePresent
|
||||
isConfigFilePresent,
|
||||
setSuppressConfigWarnings
|
||||
} from './config-manager.js';
|
||||
|
||||
import {
|
||||
@@ -161,13 +162,17 @@ function isConnectedToHamster() {
|
||||
}
|
||||
|
||||
// Fallback: Check if storage type is 'api' (user selected Hamster during init)
|
||||
// Suppress warnings during this check since we're detecting API mode
|
||||
setSuppressConfigWarnings(true);
|
||||
try {
|
||||
const config = getConfig();
|
||||
const config = getConfig(null, false, { storageType: 'api' });
|
||||
if (config?.storage?.type === 'api') {
|
||||
return true;
|
||||
}
|
||||
} catch {
|
||||
// Config check failed, continue
|
||||
} finally {
|
||||
setSuppressConfigWarnings(false);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user