t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Mobile: Stop in the background-work capsule sits between two navigation taps and stops all subagents without confirmation

Open VendettaGhub opened this issue 1 month ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Related, but not the same problem: #10697 (confirm before closing the window while agents run).

Area

apps/mobile

Steps to reproduce

  1. On mobile, start a thread whose agent launches background subagents.
  2. Wait until the parent turn ends and the floating capsule above the composer shows the background-work status.
  3. Tap the capsule to look at the subagents: either the status label (opens Background work) or the agents segment (opens the agents list).

Expected behavior

Tapping the capsule to check on the subagents never stops them. A destructive action that ends all background work is set apart from the navigation targets, or asks for confirmation first.

Actual behavior

The capsule puts Stop between the two navigation targets: [status label → Background work] | [Stop] | [agents → agents list]. The only separation is a 1px divider (floating-working-control.tsx, the action Pressable). A slightly off tap lands on Stop, which immediately runs runStatusAction("stop") (ThreadDetailScreen.tsx, kind: "background" status) with no confirmation and no undo. All running subagents are stopped.

On a phone this happens regularly when trying to open the subagent list.

Impact

Major degradation or frequent failure

Version or commit

main @ aaf4a901c4

Environment

Mobile app, Android

Workaround

None, apart from tapping very carefully. Stopped subagents have to be restarted.

Suggested fix

Either of these would be enough:

  • Ask for confirmation before stopping background work ("Stop N background tasks?"), or
  • Move Stop out of the capsule, for example into the Background work screen that the status label already opens.

VendettaGhub avatar Oct 24 '26 09:10 VendettaGhub

Fixed by #37767, now on main: Background-work Stop now lives in the feed footer instead of between the capsule’s navigation targets, so tapping the capsule to open the agents list cannot accidentally stop the subagents.

juliusmarminge avatar Nov 16 '26 21:11 juliusmarminge