feat(config): merge platform config model and add disabled-platform guard #336

Merged
barrettruth merged 1 commit from feat/platform-config into main 2026-03-06 21:14:16 +00:00
barrettruth commented 2026-03-06 21:11:14 +00:00

Problem

Supplying any platforms table silently dropped all unlisted platforms,
making it easy to accidentally disable platforms. Invoking a disabled
platform produced no user-facing error.

Solution

Switch to a merge model: all six platforms are enabled by default and
user entries are deep-merged on top. Set a platform key to false to
disable it explicitly. Add a check_platform_enabled guard in
handle_command for contest fetch, login, logout, and race actions.

## Problem Supplying any `platforms` table silently dropped all unlisted platforms, making it easy to accidentally disable platforms. Invoking a disabled platform produced no user-facing error. ## Solution Switch to a merge model: all six platforms are enabled by default and user entries are deep-merged on top. Set a platform key to `false` to disable it explicitly. Add a `check_platform_enabled` guard in `handle_command` for contest fetch, login, logout, and race actions.
Sign in to join this conversation.
No description provided.