Commit Graph

12 Commits

Author SHA1 Message Date
Robin Braumann
38595748aa
fix: harden queued agent turn handling
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 17:38:05 +02:00
Robin Braumann
3163f426ae
refactor: simplify agent thread claims
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 16:20:51 +02:00
Robin Braumann
d50d02555b
feat(core): Queue all agent turns durably
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 15:52:10 +02:00
Robin Braumann
bdcc8da6bf
feat(core): Queue concurrent agent messages per thread
One turn per durable agent thread at a time, on every surface: preview chat,
published chat integrations, background wake, task runs, HITL resume.

- AgentThreadTurnCoordinator: bounded FIFO per thread and main (50 waiters),
  distributed agent-thread-turn lease, abort-aware waiting, queue-full error.
- agent_execution.activeThreadId claim with a unique partial index as the
  fail-closed fence; heartbeat drops the claim when the row is no longer ours.
- Chat SDK runs with concurrency 'concurrent'; the coordinator orders turns.
- Preview chat surfaces the queue-full error; channel threads post a notice.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-12 10:31:18 +02:00
Robin Braumann
072f4960f0
feat(core): Share integration threads across participants (#38461)
Some checks are pending
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (24.18.1) (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (26.5.1) (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Verify single-instance deps (npm-install) (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-12 05:14:33 +00:00
Robin Braumann
d551999c6c
fix(core): Surface failures in agent sessions (#36492)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 13:07:10 +00:00
Robin Braumann
1546c95485
feat(core): Persist agent session timelines during execution (#35490)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 08:12:58 +00:00
Eugene
0932806c05
feat: Support inbound binary attachments for agents (no-changelog) (#34869)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 14:20:06 +00:00
Robin Braumann
0b4bbd05b8
feat(core): Add storedAt column to agent_execution (#34858)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 08:57:18 +00:00
yehorkardash
bc3fe3eaa6
refactor(core): Drop redundant agent execution columns (#32862) 2026-06-30 07:36:26 +00:00
Tomi Turtiainen
711f8abc57
chore(core): Make DB schema docs generation deterministic (#32373) 2026-06-16 11:35:33 +00:00
Tomi Turtiainen
f5ced2faf9
feat(core): Add auto-generated database schema documentation (no-changelog) (#32069) 2026-06-12 07:44:01 +00:00