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

  1. Read the ⚠️ text to identify the degraded condition and fix the underlying cause.
  2. Use --json for machine-parseable warning output in scripts/CI.
  3. 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

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


AI-assisted analysis of eyaltoledano/claude-task-master@c0c98d367c (2026-08-29). Data as JSON: /api/errors/bf9c6d6465679747. Report an issue: GitHub.