#8978·multica

[Bug]: Resumed Cursor run can sit silent with no first output for up to 2h — Cursor has no first-output/no-progress watchdog (Codex/OpenCode do)

Author: karlarsoCreated Sep 30, 2026Updated Sep 30, 2026

Deployment type

Official App

Area

Agents and runtimes

What happened?

A resumed Cursor run (cursor-agent --resume <session>) produced no output at all for 30m15s after launch, while the task showed running in the UI with zero messages. Nothing in Multica flagged it; it looked identical to a healthy run. It eventually recovered by itself (first output at +1815s), finished its work in ~50s and completed normally.

While it was silent, the cursor-agent process was idle (≈1.2s CPU over 22 minutes), held a single ESTABLISHED HTTPS connection to an AWS host (Cursor backend), and its session transcript was not appended. So the stall was on the Cursor side (a resume request that never answered), not in the daemon — every daemon phase (claim → prepare → runtime_started → draining) was logged within 1s and the daemon forwarded output immediately once it arrived.

The Multica-side problem is that Cursor has no first-output / no-progress bound. The backend is invoked with idle_watchdog=0s, i.e. no per-provider override, so it falls back to the daemon-wide DefaultAgentIdleWatchdog = 2h. Other providers already have a tighter bound for exactly this case:

  • Codex: first-turn/first-item timeout (logged as first_item_wait ... timeout=1m0s) plus semantic inactivity timeout
  • OpenCode: DefaultOpenCodeIdleWatchdog = 10m, whose comment says it "covers both a missing first model token and a stalled response stream"

For Cursor, a hung resume can therefore sit silently for up to 2 hours. In a squad this is worse: the leader is the one stuck, so no member gets dispatched and the whole issue silently stalls.

Expected

One or both of:

  1. A Cursor-specific no-first-output timeout (e.g. a few minutes, configurable like MULTICA_CODEX_FIRST_TURN_TIMEOUT) that fails the attempt as retryable, so the existing max_attempts=2 gets a fresh attempt instead of waiting up to 2h. A shorter Cursor idle window while no tool is in flight (like OpenCode's) would also cover it.
  2. A visible signal in the UI/CLI for a run that has been running with no messages for N minutes, so a human can cancel/rerun instead of guessing.

Steps to reproduce

Not deterministically reproducible — it is an intermittent upstream hang. What happened:

  1. Agent on the Cursor runtime (model claude-opus-5-5-medium) completes a first run on an issue.
  2. ~75 min later a member comment triggers a new run; daemon resumes the previous session (resume_session=true reuse_workdir=true).
  3. cursor-agent starts but emits nothing on stdout for 30 minutes; the run stays running with 0 messages.

Frequency from local daemon logs over the last few days (time from launch to first output):

provider / resume runs median max
cursor, resume 38 14s 1815s (this one; all others < 120s)
cursor, fresh 10 15s 18s
claude, resume 86 14s 65s
codex / pi / others ~56 17–43s 65s

Other Cursor runs on the same machine and account during the stall window ran normally.

Additional context

bash
multica CLI / daemon 0.6.0 (launched_by=desktop), macOS
cursor-agent 2026.09.28-64d2043
No MULTICA_AGENT_* env overrides (daemon-wide idle watchdog = default 2h)

11:50:40.957 INF starting agent provider=cursor model=claude-opus-5-5-medium resume_reachable=true
11:50:40.957 INF resuming session session_id=<redacted>
11:50:40.957 DBG invoking backend provider=cursor ... resume_session=true timeout=0s idle_watchdog=0s
11:50:40.962 INF task phase recorded task_phase=runtime_started total_elapsed_ms=692
11:50:40.962 DBG backend started, draining messages
                 ... nothing for 30 minutes ...
12:20:56.087 INF task phase recorded task_phase=first_output_received phase_elapsed_ms=1815116
12:21:46.223 INF agent finished status=completed duration=31m5s tools=4

Possibly related but different: #7791 (Cursor blocking on a workspace-trust prompt without a TTY — that one never recovers; this one produced no prompt and recovered after 30 min).