Add API error monitoring tests and error context snapshots for various browsers

- Created error context snapshots for Firefox, WebKit, and Chromium to capture UI state during API error monitoring.
- Implemented e2e tests for API error detection, including console errors, failed API requests, and proxy errors.
- Added functionality to ignore specific API patterns in monitoring assertions.
- Ensured tests validate the monitoring system's ability to detect and report errors effectively.
This commit is contained in:
catlog22
2026-01-31 00:15:59 +08:00
parent f1324a0bc8
commit a0f81f8841
66 changed files with 3112 additions and 3175 deletions

View File

@@ -135,6 +135,12 @@ Bash(`mkdir -p ${sessionFolder}/agents`)
Use CLI to analyze and split requirements:
**⚠️ CRITICAL - CLI EXECUTION REQUIREMENT**:
- **MUST** wait for CLI execution to fully complete before proceeding
- After launching CLI with `run_in_background: true`, **STOP** and wait for hook callback
- **DO NOT** proceed to Phase 2 until CLI results are fully received
- Minimize scope: Proceed only when 100% result available
```javascript
TodoWrite({ todos: [
{ content: "Phase 1: Requirement Analysis", status: "in_progress", activeForm: "Analyzing requirements" },
@@ -193,9 +199,12 @@ CONSTRAINTS: Maximum ${maxAgents} sub-requirements | Ensure clear boundaries
})
// Wait for CLI completion and parse result
// ⚠️ CRITICAL: Must wait for CLI complete - do NOT proceed until results received
// ... (hook callback will provide result)
```
**⚠️ STOP POINT**: After launching CLI, stop output immediately. Wait for hook callback to receive complete result before continuing.
**After CLI completes**:
```javascript