Skip to content

feat(scripts): harden cursor_agent_chat wait/retry path - #16

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/agent-chat-robust-59a1
Jul 30, 2026
Merged

feat(scripts): harden cursor_agent_chat wait/retry path#16
cursor[bot] merged 1 commit into
mainfrom
cursor/agent-chat-robust-59a1

Conversation

@mgttt

@mgttt mgttt commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

Make scripts/cursor_agent_chat.sh the robust default path for fleet agent chat.

  • Default --wait: on 409 agent_busy, probe GET /agents/{id} + latest run status, exponential backoff + jitter, retry until free or --wait-timeout (default 600s)
  • Busy foresight: agent ACTIVE ≠ free; free when latest run is FINISHED / ERROR / FAILED / CANCELLED (or missing)
  • Adaptive: re-resolve display names during wait; live API beats stale registry
  • Transport: curl connect/max timeouts; retry 429/5xx/network; fail-fast auth/4xx
  • Safety: payload via tempfile, message byte budget, desensitized logs, exit codes 0/1/2/3/4/5
  • Docs: skills/cursor/README.md + inter-agent-comms.md

Status

Landed on main via cherry-pick as d6dbe60 (original tip 546178d). This PR can be closed.

Open in Web Open in Cursor 

Default to waiting on 409 agent_busy with latest-run probes,
exponential backoff, adaptive name re-resolve, curl timeouts,
tempfile payloads, and clear exit codes. Update fleet chat skills.

Co-authored-by: datakk <mgttt@users.noreply.github.com>
@cursor
cursor Bot merged commit 913ac58 into main Jul 30, 2026
8 of 12 checks passed
@cursor
cursor Bot deleted the cursor/agent-chat-robust-59a1 branch July 30, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants