Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
cursor-agent version 2026.09.18-9a7762b intermittently hard-crashes on Linux x86_64 while the Ink/React TUI redraws large ANSI-styled or syntax-highlighted terminal output. Fatal outcomes observed: Illegal instruction and Segmentation fault.
Same agent version in Herdr on macOS arm64 does not crash under normal use.
Already latest: cursor-agent update says Already up to date. Clearing ~/.cache/cursor-compile-cache did not help.
Environment details:
Broken host: Linux x86_64 LXC (Proxmox 6.8.12-43-pve), CPU Intel Core i7-10710U
Working host: macOS 26.6.2 arm64, same agent version
Multiplexer: Herdr 0.9.1 on both hosts (agent runs in a Herdr pane PTY)
Remote attach: SSH to Herdr; SemanticFrame seen (example cols=209 rows=43)
Remote color env: TERM=dumb, COLORTERM unset
Crash site is Ink ANSI style merge while painting a large string (about 13k chars), inside Cursor bundled Node, not Herdr Rust code. Herdr then shows pane agent going from Cursor to None. On the Linux host, herdr.service has also died in the same window with SIGBUS / SIGSEGV under agent load (memory peak about 1.2 to 2.6 GiB).
Stack frames include: B(aka B) style merge (endCode / code Sets), get (screen buffer), onImmediateRender / Yoga layout, React commit (Bs/bs/as/os), processImmediate.
Source snippet from the crash:
function B(e,t){
const r=new Set(t.map((e=>e.endCode))),
n=new Set(t.map((e=>e.code))),
s=new Set(e.map((e=>e.code)));
return[…(i=e.filter((e=>v(e)?!n.has(e.code):!r.has(e.endCode))),
function(e){return b(,e)}(i).reverse().map((e=>({…e,code:e.endCode})))),
…t.filter((e=>!s.has(e.code)))];var i
}
Binary path: ~/.local/share/cursor-agent/versions/2026.09.18-9a7762b/index.js
Terminal ends with: Illegal instruction
Full stacktrace available (includes String[13289] and JSArray[208] of ANSI tokens).
Workarounds: avoid huge highlighted dumps in the live TUI; NO_COLOR=1; or agent -p / non-interactive print mode.
Steps to Reproduce
- On Linux x86_64, run Herdr 0.9.1 headless and attach the TUI (local or over SSH).
- In a pane, start interactive cursor-agent / agent version 2026.09.18-9a7762b.
- Drive a session that causes large syntax-highlighted or heavily ANSI-colored TUI redraws (large file dumps, big diffs, long colored tool output).
- Observe hard crash (Illegal instruction or Segmentation fault); pane agent disappears.
Control: same steps on macOS arm64 Herdr with the same agent version — no crash.
Intermittent, but happens semi-regularly under heavy highlighted redraws.
Expected Behavior
Agent TUI stays stable when rendering highlighted code, diffs, or long tool output in a Herdr pane on Linux x86_64. No Illegal instruction or Segmentation fault.
Operating System
Linux
Version Information
CLI: cursor-agent / agent 2026.09.18-9a7762b
Not an IDE crash; IDE version N/A for the failing path
Herdr (host multiplexer): 0.9.1
Bundled Node: the agent-shipped Linux x64 node under ~/.local/share/cursor-agent/versions/2026.09.18-9a7762b/node
For AI issues: which model did you use?
Not model-specific.
For AI issues: add Request ID with privacy disabled
N/A
Additional Information
Same agent version: works in Herdr on macOS arm64; crashes in Herdr on Linux x86_64.
Looks platform-specific to the Linux x86_64 agent build / Ink redraw path under large highlighted output.
After crash, Herdr pane agent clears (Cursor to None). Sometimes herdr.service itself exits with SIGBUS or SIGSEGV in the same timeframe.
cursor-agent update reports Already up to date.
Workarounds reduce exposure but do not fix the crash.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor