Skip to content

Touch composer: show the Queue/Steer alternative as a visible button instead of a long-press menu #4812

Description

@hxy91819

The workflow

On a phone, while a thread is running, I want to decide per message whether it steers the current run or is queued for after the run ends, the same way I do on desktop with Enter versus Ctrl/Cmd+Enter.

What happens today

Tested against desktop-v0.45.0 (129f621771a3e275773992db648316966ac207cf).

The follow-up composer picks the primary action from the "Default thread followup behavior" setting (steerActiveThreadOnEnter):

const steerOnPrimarySubmit =
submitMode.kind === "queue" && composer.steerActiveThreadOnEnter;
const isSteeringWhenReady =
steerOnPrimarySubmit &&
(composer.threadRuntimeDisplayStatus === "provisioning" ||
composer.threadRuntimeDisplayStatus === "starting");
const onModifierSubmit = composer.canModifierSubmit
? composer.onModifierSubmit
: undefined;

The alternative action is only reachable through ComposerSendMenu. On a coarse pointer with a compact viewport that menu is a long-press on the Send button (700 ms hold, compact-long-press-menu.tsx L14), with no visible affordance that the button has a secondary gesture:

if (isPointerCoarse && isCompactViewport) {
if (!canSubmit) return children;
return (
<CompactLongPressMenu
label="Send options"
onOpenChange={handleOpenChange}
items={items}
>
<span
className="inline-flex"
onPointerUpCapture={(event) => {
if (!open) return;
event.preventDefault();
event.stopPropagation();
}}
>
{children}
</span>
</CompactLongPressMenu>
);

The modifier shortcut is not available on a soft keyboard. In practice a phone user only gets the default action; getting the other one means either discovering the long-press or changing the global setting in Settings → General, which affects desktop too.

Steps:

  1. Open a thread that is currently running at a phone-sized touch viewport (for example 390 × 844 with touch emulation, or Safari on iOS).
  2. Type a follow-up. The footer shows a single Send button whose action is whatever steerActiveThreadOnEnter says.
  3. The only way to perform the other action is to press and hold Send for at least 700 ms and pick "Queue" or "Steer" from the pop-up.

What you would expect

  • On coarse-pointer devices, while the thread is running, a second visible icon button next to Send in the follow-up composer that performs the non-default action: when Enter steers, the extra button queues ("Queue follow-up", clock icon); when Enter queues, it steers ("Steer current run", zap icon).
  • When the alternative is not available (for example steering is not possible but queueing is), the extra button is hidden and the primary button keeps working.
  • The long-press menu can stay for plugin-contributed send items.
  • Desktop (fine pointer) behavior unchanged.

How the fork implements it

Prototype: desktop-v0.45.0...hxy91819:bb:feature/mobile-queue-action (4 files, +160/−44).

  • PromptBoxSubmissionConfig gains an optional secondaryAction: { icon, onSubmit, title }.
  • FollowUpPromptBox derives it from steerOnPrimarySubmit: composer.onSubmit with the clock icon when Enter steers, composer.onModifierSubmit with the zap icon otherwise, and only when that action is currently allowed.
  • PromptBoxInternal renders it as an outline icon button (data-promptbox-secondary-submit-action) immediately before the existing ComposerSendMenu, only when isPointerCoarse, with a gap-3 between the two buttons; app.css reserves extra right padding in the collapsed follow-up composer when the second button is present so text does not run under it.
  • Unit tests in FollowUpPromptBox.test.tsx cover both settings and the "steer unavailable, queue still offered" case.

Two unrelated changes are on the same branch and would be split out or dropped before a PR: the Send button renders as a ghost/outlined variant while the draft is empty (all pointer types), and an allowSoftKeyboardAutoFocus prop on PromptBoxInternal that no caller sets yet.

What I ruled out

Per CONTRIBUTING, this issue comes before a PR. I will open the PR from the branch above after sign-off here and contributor approval.

AGENT GENERATED

Activity

  1. added a commit that references this issue on Oct 3, 2026
  2. added
    ui
    mobile
    on Oct 3, 2026
  3. bb-slop-cop commented on Oct 3, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied missing classifications: Type: Feature · Priority: Low · Effort: Medium. Added labels: ui, mobile. No existing classification values or labels were replaced; final values verified.

    This adds a visible touch-composer action for functionality already available through the send menu, rather than correcting unexpected behavior. Low priority reflects the existing workaround; medium effort reflects coordinated composer, layout, and interaction-test changes.

    No reproduction report or pull request: the final Type is Feature, so this rule skips bug reproduction and fixes.

  4. added a commit that references this issue on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    mobileui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions