Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/fix-sandbox-identifier-persistence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@aws-amplify/sandbox': patch
---

fix: maintain custom sandbox identifier after file changes

The sandbox identifier provided via --identifier flag now persists throughout the entire session, including after file changes trigger rebuilds. Previously, the identifier would fall back to the default (whoami) value after file changes.
2 changes: 1 addition & 1 deletion packages/sandbox/src/file_watching_sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class FileWatchingSandbox extends EventEmitter implements Sandbox {
this.filesChangesTracker.trackFileChange(filePath);
if (latch === 'open') {
this.printer.clearConsole();
await this.printSandboxNameInfo();
await this.printSandboxNameInfo(options.identifier);
}
this.printer.log(
`[Sandbox] Triggered due to a file ${eventName} event: ${path.relative(
Expand Down