Skip to content

Fix/quiz chat mode prod loading - #3

Open
nlisch wants to merge 2 commits into
mainfrom
fix/quiz-chat-mode-prod-loading
Open

Fix/quiz chat mode prod loading#3
nlisch wants to merge 2 commits into
mainfrom
fix/quiz-chat-mode-prod-loading

Conversation

@nlisch

@nlisch nlisch commented Apr 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

nlisch and others added 2 commits April 27, 2026 16:31
In prod, configuration is loaded from APP_CONFIG (Google Secret Manager)
as a JSON blob, not from individual environment variables. Until now,
QUIZ_CHAT_MODE was only read via os.environ.get() at module import
time (BaseConfig line ~160), which meant the JSON key
"QUIZ_CHAT_MODE": "True" sitting in Secret Manager was never picked up.
The flag silently defaulted to False, hiding the immersive chat UI in
production.

This patch makes ProductionConfig.__init__ read the value from the
loaded JSON dict and override self.QUIZ_CHAT_MODE accordingly,
accepting "true"/"True"/"1"/"yes" case-insensitively.

Dev/local behaviour is unchanged — BaseConfig still reads from
os.environ as before (via .env).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant