Skip to content

feat(web): follow-ups queue while a message uploads - #24

Merged
lbgos merged 5 commits into
mainfrom
t3/queue-followup
Nov 26, 2026
Merged

lbgos merged 5 commits into
mainfrom
t3/queue-followup

Conversation

@lbgos

@lbgos lbgos commented Nov 26, 2026

Copy link
Copy Markdown
Owner

In a bot chat, a message with a large batch of attachments can take minutes to upload. A second message sent during the upload was refused with "Still sending your previous message". A follow-up sent while the bot was replying steered the reply by default instead of waiting for its turn.

Now a follow-up sent during an upload queues behind it:

  • It is held on the device, shown in the queue, and sent with queue_after_active once the earlier message reaches the server. Messages reach the server in the order they were sent, and the existing server queue runs each one after the turn before it.
  • A held follow-up can be removed, or moved back to the composer to edit. Held rows come from the client's send order rather than the view, so they stay in the queue across a chat switch.
  • If the earlier message fails or never goes out, the follow-ups behind it stop too. They all come back to the composer in send order, with their attachments.
  • If the page reloads or closes first, a small journal in local storage brings back the text of the messages the server never got. A notice asks for their files again. A page that is still open keeps its entries (heartbeat), and entries older than a week are ignored.
  • The Follow-ups setting is now the followUps client setting, with Queue as the default. The earlier value is not read, so a previous Steer choice resets to Queue. Choosing Steer again keeps steering.
  • Multiple-model sends and approval redirects still wait for the earlier send, as before.

Phone, 390x844, with three follow-ups queued while a 60-file batch uploads:

Desktop, 1440x900:

The queue draining in order after the upload lands:

A send that waits on uploads holds the sends after it, which then queue
behind its turn. A journal keeps unsent messages across a page reload.
A message sent while an earlier one is still uploading queues behind it
instead of being refused. It shows in the queue, where it can be removed
or moved back to the composer, and goes out once the earlier message
reaches the server. If the earlier send fails, the follow-ups return to
the composer with it, in order. Bot chats queue follow-ups during a
running turn, and a reload brings back the text of messages that never
went out.
Held queue rows no longer offer Send now, which cannot reach them.
Follow-ups is its own client setting that defaults to Queue, so an
explicit Steer still steers. Held follow-ups render from the send order
and stay in the queue across a thread switch or remount. Unsent messages
are restored only from pages that stopped beating and only within a week,
and a multiple-model send is still refused while an earlier send uploads.
@lbgos
lbgos deployed to leak-gate November 26, 2026 12:40 — with GitHub Actions Active
@lbgos
lbgos merged commit 44911fc into main Nov 26, 2026
19 checks passed

This branch was successfully deployed

1 active deployment
leak-gate — e4f7f71f Deployed Nov 26, 2026 by lbgos via Denylist #55
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.

1 participant