diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 734f96fa730..5cddc23c4c8 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -12,6 +12,7 @@ _Released 10/20/2025 (PENDING)_ - Fixed an issue where grouped command text jumps up and down when expanding and collapsing in the command log. Addressed in [#32757](https://github.com/cypress-io/cypress/pull/32757). - Fixed an issue where command snapshots were not correctly displayed in Studio. Addressed in [#32808](https://github.com/cypress-io/cypress/pull/32808). - Fixed an issue with grouped console prop items having a hard to read blue color in the console log and duplicate `:` characters being displayed. Addressed in [#32776](https://github.com/cypress-io/cypress/pull/32776). +- Fixed an issue where a EPIPE error shows up after CTRL+C is done in terminal. Fixes [#30659](https://github.com/cypress-io/cypress/issues/30659). Addressed in [#32821](https://github.com/cypress-io/cypress/pull/32821). - Added more context to the error message shown when `cy.prompt()` fails to download. Addressed in [#32822](https://github.com/cypress-io/cypress/pull/32822). **Misc:** diff --git a/packages/data-context/src/data/ProjectConfigIpc.ts b/packages/data-context/src/data/ProjectConfigIpc.ts index 45bbf068385..9ff8061a802 100644 --- a/packages/data-context/src/data/ProjectConfigIpc.ts +++ b/packages/data-context/src/data/ProjectConfigIpc.ts @@ -157,7 +157,11 @@ export class ProjectConfigIpc extends EventEmitter { let resolved = false - this._childProcess.on('error', (err) => { + this._childProcess.on('error', (err: NodeJS.ErrnoException) => { + if (err.code === 'EPIPE') { + return + } + debug('unhandled error in child process %s', err) this.handleChildProcessError(err, this, resolved, reject) reject(err) @@ -229,7 +233,11 @@ export class ProjectConfigIpc extends EventEmitter { return new Promise((resolve, reject) => { let resolved = false - this._childProcess.on('error', (err) => { + this._childProcess.on('error', (err: NodeJS.ErrnoException) => { + if (err.code === 'EPIPE') { + return + } + this.handleChildProcessError(err, this, resolved, reject) reject(err) })