Skip to content

fix(mod): hide the setup.sh step when an app has none#381

Merged
UtkarshBhardwaj007 merged 1 commit into
mainfrom
mod-hide-missing-setup
Jun 13, 2026
Merged

fix(mod): hide the setup.sh step when an app has none#381
UtkarshBhardwaj007 merged 1 commit into
mainfrom
mod-hide-missing-setup

Conversation

@UtkarshBhardwaj007

Copy link
Copy Markdown
Member

Problem

When users run playground mod on an app with no setup.sh, the "run setup.sh" step threw a StepWarning("no setup.sh found"), which StepRunner rendered as a yellow ⚠ warning row. Apps without a setup script are the common case, so this looked like something had gone wrong and alarmed users.

Fix

  • StepRunner: added a silent-skip mechanism. A step that throws an error carrying isSilentSkip = true is marked skipped, execution continues, ok is preserved, and the row is filtered out of the rendered list entirely (nothing shows). This mirrors the existing duck-typed isWarning / haltAsWarning flags.
  • SetupScreen: replaced the now-unused StepWarning with a SilentSkip class, thrown when setup.sh is absent.

setupRan still stays false on this path, so the generic "Next steps" footer prints exactly as before — only the scary warning row is gone.

Verification

All four CI checks pass locally: pnpm format:check, pnpm lint:license, pnpm typecheck, pnpm test (84 files, 942 tests).

🤖 Generated with Claude Code

Apps without a setup.sh are the common case, but the absent-script path
threw a StepWarning that StepRunner rendered as a yellow warning row,
which alarmed users. Add a silent-skip mechanism to StepRunner
(isSilentSkip flag, mirroring the existing isWarning/haltAsWarning
duck-typing) that removes the step's row entirely while preserving ok
and continuing execution. SetupScreen now throws SilentSkip when there
is no setup.sh; setupRan stays false so the generic "Next steps" footer
still prints.
@UtkarshBhardwaj007 UtkarshBhardwaj007 merged commit 550091f into main Jun 13, 2026
19 of 20 checks passed
@UtkarshBhardwaj007 UtkarshBhardwaj007 deleted the mod-hide-missing-setup branch June 13, 2026 14:19
@github-actions

Copy link
Copy Markdown
Contributor

E2E Test Pass · ✅ PASS

Tag: e2e-ci-pr · Branch: mod-hide-missing-setup · Commit: 586c2ab · Run logs

Cell Result Time
pr-deploy-cdm ✅ PASS 4m23s
pr-login-session ✅ PASS 1m55s
pr-install ✅ PASS 0m59s
pr-deploy-frontend ✅ PASS 7m52s
pr-preflight ✅ PASS 2m26s
pr-deploy-foundry ✅ PASS 0m54s
pr-mod ✅ PASS 1m33s
${{ matrix.cell }} ⏭️ SKIP 0m-1s
${{ matrix.cell }} ⏭️ SKIP 0m-9s

Sentry traces: view spans for this run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant