INNER CODE UNIT · Python
has_settings_error
Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:346
def has_settings_error(self, content: str) -> bool:
"""Check for settings corruption"""
# First check if Claude is actually ready (avoid false positives)
if self.is_claude_ready(content):
return False
error_indicators = [
# Login/auth prompts
"Select login method:",
"Claude account with subscription",
"Sign in to Claude",
"Log in to Claude",
"Enter your API key",
"API key",
# Configuration errors
"Configuration error",
"Settings corrupted",
"Invalid API key",