From 33f8822ceca94fc67edfcc0c7abb612dd08457a6 Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Mon, 3 Nov 2025 07:15:21 -0500 Subject: [PATCH 1/3] fix: don't show EPIPE error --- packages/data-context/src/data/ProjectConfigIpc.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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) }) From bd5a6a204ac065b03f4075e50a8ec0ab8750760f Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Mon, 3 Nov 2025 07:18:19 -0500 Subject: [PATCH 2/3] Update CHANGELOG.md --- cli/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index efa0ef2ba9d..a6a56d70efd 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -16,6 +16,7 @@ _Released 11/4/2025 (PENDING)_ - 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). - 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). - Fixed an issue where absolute file paths were not correctly determined from the source map when the source map root was updated. Fixes [#32809](https://github.com/cypress-io/cypress/issues/32809). +- 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 [#32873](https://github.com/cypress-io/cypress/pull/32873). **Misc:** From daeab02b66a580f532db58dcf41f3eabdcb0f2a1 Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Sat, 8 Nov 2025 07:30:49 -0500 Subject: [PATCH 3/3] add debug statements --- packages/data-context/src/data/ProjectConfigIpc.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/data-context/src/data/ProjectConfigIpc.ts b/packages/data-context/src/data/ProjectConfigIpc.ts index 9ff8061a802..1e4be4f461d 100644 --- a/packages/data-context/src/data/ProjectConfigIpc.ts +++ b/packages/data-context/src/data/ProjectConfigIpc.ts @@ -159,6 +159,7 @@ export class ProjectConfigIpc extends EventEmitter { this._childProcess.on('error', (err: NodeJS.ErrnoException) => { if (err.code === 'EPIPE') { + debug('EPIPE error in loadConfig() of child process %s', err) return } @@ -235,6 +236,7 @@ export class ProjectConfigIpc extends EventEmitter { this._childProcess.on('error', (err: NodeJS.ErrnoException) => { if (err.code === 'EPIPE') { + debug('EPIPE error in registerSetupIpcHandlers() of child process %s', err) return }