fix(setup): show a known manual step in the interactive dry run

The approval prompt now discloses a client's manual completion step,
but the interactive TTY dry run still printed only the planned file
changes, so `rea setup --dry-run --client grok_bot` hid the Grok Bot
connector step. The dry-run renderer now prints the planned result's
remediation the same way.

Refs #7692

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
gensokyo-devandgensokyo-dev authored and Ysopwnable committed 2026-11-14 14:16:39 +01:00
1 parent bbad1db998
commit cf58037726
3 files changed
+62 -26

No files matched your search

+9 -1
View File
@@ -94,9 +94,17 @@ export const renderSetupProgress = (event: SetupProgressEvent): void => {
};
/** Show the resolved dry-run plan to a human at an interactive terminal. */
export const renderSetupDryRun = (actions: readonly SetupAction[]): void => {
export const renderSetupDryRun = (
actions: readonly SetupAction[],
remediation?: string,
): void => {
intro("REA setup plan", promptStreams);
renderPreflight(actions);
// A known manual step belongs to the plan, as it does at approval.
if (remediation !== undefined) {
writeLine("│");
writeLine(`│ ${remediation}`);
}
outro("Dry run complete. No changes were made.", promptStreams);
};
+2 -1
View File
@@ -282,7 +282,8 @@ const runSetupCommand = async (
!input.formatExplicit &&
hasInteractiveTerminal()
) {
if (result.status === "planned") renderSetupDryRun(result.plannedActions);
if (result.status === "planned")
renderSetupDryRun(result.plannedActions, result.remediation);
else renderInteractiveSetupResult(result, environment);
}
return result;