Conversation
zxch3n
added this pull request to stack #713
September 14, 2026 17:07
Model: gpt-5
Model: gpt-5
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.
Problem / pressure
Adding an attachment currently starts transfer inside the composer. Upload failure, navigation, and send ownership can separate the attachment from its intended message. New, child, and continuing conversations need one recoverable send lifecycle.
Summary
Stack layer 4/4, based on #709 (preceded by #705 and #707). Attachment selection now validates and previews locally. Send persists the complete input and Blob snapshots, releases the composer, and prepares files through the workspace owner before publishing history/queue operations. Same-session text preserves order; retry reuses successful files. Pending new conversations remain reachable through local metadata until commit.
Warmup cleanup, current eligibility checks, versioned recovery, and durable cancellation share the same lifecycle. Cancellation joins late work and preserves later messages. Permanent local references/zero upload remain a separate follow-up. Specs stay draft; implementation details and limits are recorded in the owning Note.
Visual explanation
Before / after
Test plan
TMPDIR=/private/tmp NODE_ENV=test pnpm checkpassed (480 component files / 3,677 tests). After restacking and the final concurrent-admission and idle-warmup refinements, 60 targeted tests, component typecheck, and targeted lint pass. Idle warmup is joined without triggering an unsaved-input warning.pnpm format, targeted component Prettier, andpnpm run docs check.Context handoff
Instructions for reviewing agents
session-send-admissionand per-file preparation before live history publication.Authoring context