eyaltoledano/claude-task-master · warning
⚠️ ${message}
Error message
⚠️ ${message} What it means
Human-readable branch of the autopilot shared warning() helper: when JSON mode is off, warnings print to console.warn as a yellow '⚠️ <message>' using chalk. It is informational output on stderr for non-fatal issues detected during autopilot command execution.
Source
Thrown at apps/cli/src/commands/autopilot/shared.ts:125
}
}
/**
* Output warning message
*/
warning(message: string): void {
if (this.useJson) {
console.warn(
JSON.stringify(
{
warning: message
},
null,
2
)
);
} else {
console.warn(chalk.yellow(`⚠️ ${message}`));
}
}
/**
* Output info message
*/
info(message: string): void {
if (this.useJson) {
// Don't output info messages in JSON mode
return;
}
console.log(chalk.blue(`ℹ ${message}`));
}
}
View on GitHub (pinned to c0c98d367c)
Solutions
- Read the ⚠️ text to identify the degraded condition and fix the underlying cause.
- Use --json for machine-parseable warning output in scripts/CI.
- Ignore if the warning describes an optional, intentionally skipped step.
Defensive patterns
Strategy: try-catch
Try / catch
// Human-readable warnings are not catchable; capture stderr if you need them
const { stdout, stderr } = await execFilePromise('task-master', ['autopilot', '...']);
for (const line of stderr.split('\n')) {
if (line.startsWith('⚠️')) handleWarning(line.slice(1).trim());
} Prevention
- Read the ⚠️ message to fix the underlying degraded condition.
- In scripts, prefer --json mode for parseable warnings (see error 702).
- Treat ⚠️ lines as informational; verify success via exit code.
When it happens
Trigger: Running an autopilot command without --json while execute() calls output.warning(message) for any recoverable condition (missing optional data, skipped work, degraded behavior).
Common situations: Interactive terminal sessions where an optional step could not complete; users mistaking the ⚠️ line for a failure when the command still succeeded.
Related errors
- {"warning":"${message}"}
- Warning: Could not fetch tasks from ${failedTags.length} tag
- Warning: ${invalidDependencies.length} invalid dependency re
- Task ${taskId} depends on non-existent task ${depId}
- ...and ${invalidDependencies.length - 5} more
AI-assisted analysis of eyaltoledano/claude-task-master@c0c98d367c (2026-08-29).
Data as JSON: /api/errors/bf9c6d6465679747.
Report an issue: GitHub.