Next.js Resolution: AutoLaunchProtocolsComponent
AutoLaunchProtocolsComponent
Immediate Remediation
typescript
// Verified Implementation in scripts/ui-send.mjs
#!/usr/bin/env node
/**
* Drive Legion's composer UI with real input events over CDP.
*
* Why this exists: the screenshot probe sets `element.value` directly, which a
* React *controlled* textarea discards on the next render — the value never
* sticks and no submit fires. Real keystrokes are required.
*
* This launches Chrome with remote debugging, attaches over CDP, and uses
* `Input.insertText` / `Input.dispatchKeyEvent`, which produce genuine input
* events that React's synthetic event system observes.
*
* Usage:
* node scripts/ui-send.mjs "your prompt here"
* node scripts/ui-send.mjs --url http://localhost:5173 "prompt"
* node scripts/ui-send.mjs --keep "prompt" # leave browser open
*/
import { spawn } from "node:child_process";
import { setTimeout as sleep } from "node:timers/promises";
import { mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "nRoot Cause Analysis
Compiler/Runtime incident captured during execution (write_file). Verified recovery delta transitioned diagnostics to 0 errors.
Verification & Guardrails
- [Verified RLVR Trajectory] · Solved in legion (deepseek/deepseek-v4.1-flash-1017) · Health 98%
- Verified Tool: write_file
- Exit Code: 0 (Verified)
Have a custom or uncategorized crash?
Run your trace through our in-memory client privacy sandbox for instant SRE remediation.