Long Running Sessions Integration
Follow a Cursor cloud agent run from an incident until it opens a pull request.
When you send an incident fix to a cloud agent, the agent works on its own for minutes. Neatlogs tracks the run for you. You see its status, branch, pull request link, duration, and any error on the incident.
Cursor is the cloud agent you can use today. Claude Code and Codex appear in the same menu with a Coming soon label and cannot be selected yet.
Connect Cursor
- Open Settings → Account → Coding agents and choose Cursor.
- Paste your Cursor User API Key and connect.
- Make sure the repository you want to fix is authorized in Cursor for GitHub push and pull request creation.
The key is personal to your account. Repository access is configured through GitHub.
Start a run
- Open an incident and finish an investigation. The cloud agent option stays off until the investigation is complete.
- Open the Fix in menu and choose Cursor under Cloud Agent.
- In Send to Cursor Background Agent, select a repository, set an optional branch (the default branch is used when empty), and pick a model: GPT-5, Claude Sonnet 4.5, or GPT-5 Codex.
- Review the prompt. It holds the incident context and you can edit it.
- Select Dispatch.
If Cursor is not connected, the dialog links you to Settings → Account → Coding agents.
Follow the run
Runs appear in the Cloud agent runs section of the incident. An active run opens by default.
Each run shows:
| Data | Description |
|---|---|
| Status | pending, running, succeeded, failed, or cancelled |
| Branch | The branch where the agent made changes |
| Pull request | A link once the agent opens one |
| Model | The model you chose |
| Duration | Time from start to finish |
| Error | The failure message when a run fails |
| Timeline | Run started, branch created, pull request opened, and run finished |
Neatlogs polls Cursor and keeps these fields current.
What to do next
- Succeeded: open the pull request and review it. Merge it as you would any change, then verify the fix with new traces. See Verify a fix.
- Failed: read the error. Check that your Cursor key is valid and that the repository is authorized in Cursor, then dispatch again.
- Cancelled: the run was stopped. Start a new run if the fix is still needed.
For a local editor instead of a cloud run, choose an app under Open in in the same Fix in menu. See Review and hand off a fix.
