Skip to content

[Bug Bash] P3: core: redundant --hotswap flag passed to cdk watch in sandbox #3249

Description

@vishaalmehrishi

Priority: P3 · Package: core

npm run sandbox spawns cdk watch with an explicit --hotswap flag. Since cdk watch already implies hotswap, the extra flag is redundant and can emit a benign "unknown/duplicate option"-style warning on some aws-cdk CLI versions. Cosmetic (stderr is surfaced as [CDK Watch] ...), not a failure.

Verified present on main (e98bab4, 2026-06-19).

packages/core/src/scripts/sandbox.ts#L142-L143

const cdkWatch = spawnCommand("npx", [
  "cdk", "watch", "--hotswap",   // ← redundant; cdk watch already hotswaps
  ...
]);

Confidence

Low — the exact warning text is aws-cdk CLI-version-dependent and was not reproduced.

Fix

A ~2-minute local run against the pinned aws-cdk version; if --hotswap warns, drop the redundant flag from the cdk watch invocation in sandbox.ts.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions