Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): disable steering for queued standalone commands #25035

Openmaria-rckswants to merge 11 commits intomain fromrefs/pull/25035/headopened View on GitHub

Showing 12 changed files with 42 additions and 3 deletions (loading 9).

x
0 of 12 viewed, 12 left
14 additions and 1 deletionapps/mobile/src/features/threads/ThreadQueueControl.tsxModified
View file
@@ -252,7 +252,8 @@
No messages waiting in this queue.
</Text>
) : null}
- {queuedRuns.map(({ run, text, attachments, context, message }, index) => {
+ {queuedRuns.map((item, index) => {
+ const { run, text, attachments, context, message, steerRejectionReason } = item;
const controls = resolveThreadQueueRowControls({
busy: busyRunId !== null,
// A fresh message starts its own turn: it may skip compaction, but not steer into a turn.
@@ -263,6 +264,8 @@
editBlocked: editBlockedReason !== null,
isEditing: editing?.runId === run.id,
isGuestMessage: context?.guest !== undefined,
+ steerRejectionReason,
+ promoteSkipsCompaction: workflow?.promoteSkipsCompaction ?? false,
text,
});
const title =
@@ -285,6 +288,11 @@
id: "steer",
title: "Send now",
+ ...(!workflow?.canSendNow &&
+ !workflow?.promoteSkipsCompaction &&
+ steerRejectionReason
+ ? { subtitle: steerRejectionReason }
+ : {}),