fix(ui): honor custom themes in static pager#352
Conversation
Greptile SummaryThis PR fixes a missing custom-theme propagation in the static diff pager path. Previously,
Confidence Score: 5/5Safe to merge — the change threads a single optional field through an existing data path and touches no diff-parsing or rendering logic. The root cause (only reading No files require special attention; all changed files are self-contained and well-covered by the new tests. Important Files Changed
Sequence DiagramsequenceDiagram
participant CLI as CLI argv
participant startup as prepareStartupPlan
participant config as resolveConfiguredCliInput
participant main as main.tsx
participant pager as renderStaticDiffPager
participant theme as resolveTheme
CLI->>startup: argv (pager mode)
startup->>config: resolveConfiguredCliInputImpl(staticPatchInput)
config-->>startup: "{ input, customTheme? }"
Note over startup: NEW: read customTheme from full result object
startup-->>main: "StartupPlan { kind: static-diff-pager, options, customTheme? }"
Note over main: NEW: pass customTheme via deps bag
main->>pager: "renderStaticDiffPager(text, options, { customTheme, stderr })"
pager->>theme: resolveTheme(options.theme, null, deps.customTheme)
Note over theme: Already supported custom theme resolution
theme-->>pager: AppTheme (custom palette applied)
pager-->>main: ANSI-colored diff output
Reviews (1): Last reviewed commit: "fix(ui): honor custom themes in static p..." | Re-trigger Greptile |
142fe63 to
fc9ee89
Compare
Summary
Testing
bun test src/core/startup.test.ts src/ui/staticDiffPager.test.tsbun run typecheckThis PR description was generated by Pi using OpenAI GPT-5