Shortcut questions
Shortcut questions (Chat landing page)
SHORTCUT_QUESTIONS_TTL_MS
SHORTCUT_QUESTIONS_TTL_MS
- What it controls: how often the background generator refreshes per-(category, locale) dynamic shortcut questions on the Chat landing page. The endpoint always serves the cached batch; this knob is how stale "stale-but-served" can get.
- Consumed by: src/shortcut-questions/refresh-loop.ts.
- When to set: lower for faster turnover on news / trending topics, higher to cut LLM cost. Each refresh runs ~11 Haiku 4.5 calls per locale (~22 calls total at default settings).
- Default: 21600000 (6 hours).
- Format: positive integer milliseconds.
- SHORTCUT_QUESTIONS_TTL_MS=21600000
- Setting home: Not a user-facing setting
SHORTCUT_QUESTIONS_DISABLED
SHORTCUT_QUESTIONS_DISABLED
- What it controls: skip the dynamic LLM generation entirely. The /v1/shortcut-questions endpoint still returns the hand-authored fixed lists;
dynamicarrays stay empty. - Consumed by: src/shortcut-questions/refresh-loop.ts.
- When to set: tests, cheap local dev without ANTHROPIC_API_KEY, or any environment where dynamic content isn't worth the spend.
- Default: empty (dynamic generation enabled).
- Format:
1to disable. Anything else (including unset) leaves generation enabled. - SHORTCUT_QUESTIONS_DISABLED=1
- Setting home: Not a user-facing setting