Repository navigation
fix(mobile): keep the paperclip open while a reply streams - #1575
Merged
Merged
Conversation
The attach button was disabled whenever `remote.streaming` was true, left over from when a send during a run could only be refused. Since a send now goes to the session's queue instead, a text draft could be queued and a draft with a photo could not: the one control that adds the files was the one control the run locked. Drop the streaming guard (the short upload/send phase still locks it via `editable`, and a host without file transfer still hides it). The queueing policy and the uploads already travel on the same prompt command, so the photo reaches the session and runs at the turn boundary. Tests: the paperclip stays enabled and hands over with the queueing policy while streaming; the outbox carries the attachment and the policy in one prompt.
huichen
enabled auto-merge (squash)
November 9, 2026 16:18
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.
What
The mobile composer's paperclip (attach) button stayed disabled for the whole
duration of a streamed reply. That guard was written when a send during a run
could only be refused; now that a send is queued behind the run instead, a text
draft could be queued but a draft with a photo could not — the one control that
adds the files was the one control the run locked.
This drops the
remote.streamingterm from the button's disabled/styleconditions.
editablestill locks it for the short upload/send phase, where anew pick would race the submission already in flight, and a host without file
transfer still hides it. The queueing policy and the upload travel on the same
prompt command, so the photo reaches the session and runs at the turn boundary.
Commits
Verification
Run in the main worktree on the branch tip (
da89b8e0b), mobile TypeScript only:npx tsc --noEmit(mobile) → exit 0, no diagnosticsnpx eslint src/features/chat/composer/ComposerToolbar.tsx src/features/chat/__tests__/ComposerDock.test.ts src/remote/__tests__/usePromptOutbox.test.ts→ exit 0npx jest --runInBandon the two touched suites → 2 suites passed, 104 tests passed(the main worktree's
mobile/node_modulesis missing@react-native/jest-preset, so the run resolved it viaNODE_PATHpointing at another worktree's installed tree; no dependency or lockfile change was made)User-visible changes
cbaa5dedb.