Fix WATCH_DETAIL silently falling back to default
An inline comment on the WATCH_DETAIL value line (e.g. `WATCH_DETAIL=balanced # ...`) parsed as the literal "balanced # ..." value, failed validation, and silently reverted to the default mode. - setup.py: move the allowed-values list off the value line in the env template so the wizard no longer models a trailing inline comment. - config.py: strip a whitespace-preceded inline comment from unquoted values so a stray comment can't silently break selection again (preserves '#' inside quotes / API keys). - SKILL.md: note to write the bare key with no trailing comment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -52,8 +52,10 @@ ENV_TEMPLATE = """# /watch API configuration
|
||||
GROQ_API_KEY=
|
||||
OPENAI_API_KEY=
|
||||
|
||||
# Default watch behavior (the /watch first-run wizard sets this for you):
|
||||
# WATCH_DETAIL=balanced # transcript | efficient | balanced | token-burner
|
||||
# Default watch behavior (the /watch first-run wizard sets this for you).
|
||||
# Allowed values: transcript | efficient | balanced | token-burner
|
||||
# Keep the value on its own line with no trailing comment.
|
||||
# WATCH_DETAIL=balanced
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user