Repository navigation
fix(cli): accept uppercase JSON theme file extensions - #42672
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceRan the built CLI on Linux x86_64 with Node v26.13.1. Created identical Nightfall fixtures and ran
Images render captured CLI transcripts and filesystem observations. Lowercase succeeds on both commits. Base rejects uppercase and mixed-case filenames; head publishes Reproduction driver · Capture renderer · Before transcript · After transcript |


Problem
t3 theme set nightfall.JSONtreats the file name as a theme ID and exits with an error. A path such as./nightfall.JsOnreaches the file handler, but it leaves the extension in the default theme ID and fails validation.Change
Use the same case-insensitive JSON suffix for recognizing a theme file argument and deriving its default ID. The published file is
nightfall.jsonand the selected ID isnightfall.Scope
This is a small CLI fix with a standalone reproduction below. It follows the existing file-path behavior exercised in #41737.
Verification
I ran the real CLI on macOS with Node 26.13.1. Each command used a fresh temporary base directory and the same valid theme JSON.
t3 theme setca81b7b97anightfall.JSONnightfall./nightfall.JsOnnightfallnightfall.jsonnightfallnightfallThe published JSON matched the source bytes in every successful run. Both new cases failed on upstream and passed with the fix.
vp run check:changed upstream/mainpassed, including typechecking three packages and running all 19 selected tests.Model: GPT-6.2 Sol. Harness: Codex Desktop.