refactor(review): compose presentation profiles - #234
Conversation
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThe PR refactors legacy widget configuration into a compiled presentation contract while preserving the existing
Confidence Score: 5/5The PR appears safe to merge, with the presentation refactor preserving the existing legacy widget-mode contracts. Configuration loading, runtime compilation, tool metadata, change-review registration, checkpoint initialization, and instructions remain consistently aligned across all supported modes.
|
| Filename | Overview |
|---|---|
| src/presentation.ts | Defines the presentation modes and compiles each mode into coordinated widget, tool, workspace, and instruction behavior. |
| src/config.ts | Replaces the internal widget field with PresentationConfig while preserving legacy environment parsing and defaults. |
| src/runtime-config.ts | Adds compiled presentation behavior to RuntimeConfig alongside the existing compiled harness. |
| src/server.ts | Consumes the compiled presentation contract for UI metadata, review initialization, instructions, and show_changes registration without changing legacy behavior. |
| src/server.test.ts | Adds end-to-end assertions that full, changes, and off modes expose the intended tools and UI metadata. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Env[DEVSPACE_WIDGETS] --> Parse[Legacy widget mode]
Parse --> Map[PresentationConfig]
Map --> Compile[compilePresentation]
Compile --> Widgets[Widget metadata]
Compile --> Groups[Tool registration]
Compile --> Behaviors[Workspace review initialization]
Compile --> Instructions[Server instructions]
Reviews (1): Last reviewed commit: "refactor(review): compose presentation b..." | Re-trigger Greptile
Waishnav
commented
Aug 23, 2026
Closing this stacked PR because the v1.1 configuration/runtime refactor is being collapsed into one review PR. The commits are preserved in the combined branch. |
Waishnav
commented
Aug 23, 2026
Superseded by the combined v1.1 refactor PR #238. |
The existing widget mode also controls review checkpoints, show_changes registration, and model guidance, so treating it as presentation-only spreads one workflow across server branches. This layer models off, inline, and change-review presentation profiles and compiles their widget, review lifecycle, tool, and instruction behavior together.
Stacked on #233. The legacy DEVSPACE_WIDGETS values keep their existing behavior.
Stack created with GitHub Stacks CLI • Give Feedback 💬