Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop): report sandbox notification fixture failures

Josuéaff9deed771a
diff --git a/tests/e2e/fixtures/package-lock.json b/tests/e2e/fixtures/package-lock.json
index b70017584..2efdcc651 100644
--- a/tests/e2e/fixtures/package-lock.json
+++ b/tests/e2e/fixtures/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@clerum/e2e-test-fixtures",
- "version": "1.0.56",
+ "version": "1.0.57",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@clerum/e2e-test-fixtures",
- "version": "1.0.56",
+ "version": "1.0.57",
"dependencies": {
"@kubernetes/client-node": "^1.0.0"
},
diff --git a/tests/e2e/fixtures/package.json b/tests/e2e/fixtures/package.json
index 05a7b1e21..bb03c2063 100644
--- a/tests/e2e/fixtures/package.json
+++ b/tests/e2e/fixtures/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerum/e2e-test-fixtures",
- "version": "1.0.56",
+ "version": "1.0.57",
"description": "E2E test fixtures and utilities for Clerum testing",
"type": "module",
"main": "index.ts",
diff --git a/tests/e2e/fixtures/workflow-plugin-sdk-e2e/src/index.js b/tests/e2e/fixtures/workflow-plugin-sdk-e2e/src/index.js
index 07e11042e..3e13981ec 100644
--- a/tests/e2e/fixtures/workflow-plugin-sdk-e2e/src/index.js
+++ b/tests/e2e/fixtures/workflow-plugin-sdk-e2e/src/index.js
@@ -191,6 +191,12 @@ function startSandboxUiFixture() {
`<!doctype html><title>E2E Layout Notification App</title><main><h1>E2E Layout Notification App</h1><p data-notification-id="${notificationId}">Notification sent.</p></main>`
)
} catch (error) {
+ const reason =
+ error instanceof Error &&
+ /^client notification failed: (?:[a-z0-9_-]+|http_\d+)$/i.test(error.message)
+ ? error.message.replace('client notification failed: ', '')
+ : 'notification_emit_failed'
+ log(`E2E_SDK_SANDBOX_UI_FAIL=${reason}`)
res.writeHead(500, { 'content-type': 'text/plain; charset=utf-8' })
res.end(
`Could not emit Sandbox UI notification: ${error instanceof Error ? error.message : error}`