Draft
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Add runtime-backed inbox queue modes with editable pending messages, queue draining, steer support, and a shared drawer UI so prompts are processed predictably across clients. Co-authored-by: Cursor <cursoragent@cursor.com>
Pause the queue head while a pending message is edited and resume processing when it returns to queued mode. Co-authored-by: Cursor <cursoragent@cursor.com>
Always send inbox prompts as queued while projecting idle optimistic sends directly into the chat until the runtime processes them. Co-authored-by: Cursor <cursoragent@cursor.com>
❌ 58 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
KyleAMathews
reviewed
May 8, 2026
| wakeOffset: string | ||
| ): string { | ||
| if (wakeEvent.type === `message_received`) { | ||
| if (wakeEvent.type === `inbox` || wakeEvent.type === `message_received`) { |
Contributor
There was a problem hiding this comment.
let's completely remove message_recieved
| collectionNameByEventType.set(def.type, name) | ||
| rowOffsetsByCollection.set(name, new Map()) | ||
| } | ||
| // Back-compat for streams written before the inbox collection's event type |
Contributor
There was a problem hiding this comment.
seems fine to have no backwards compatibility?
| payload: unknown | ||
| timestamp: string | ||
| mode?: `immediate` | `queued` | `paused` | `steer` | ||
| status?: `pending` | `processed` | `cancelled` |
Contributor
There was a problem hiding this comment.
not necessarily needed for this PR but I'm annoyed that these types still exist as I tried to derive everything from entity-schema.ts but missed this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
queued,steer, andpaused) with pending/processed/cancelled status metadata across the agents runtime and server APIs.Test plan
pnpm -C packages/agents-runtime typecheckpnpm -C packages/agents-server typecheckpnpm -C packages/agents-server-ui typecheckhttp://localhost:5173/__agent_ui/for queued sends, inline idle optimistic display, and Horton generation.Made with Cursor