Skip to content

The agent that grows with you

fix(desktop): hide Queue action while composer is idle

Finn763374eaf5143ec
diff --git a/apps/desktop/src/app/chat/composer/controls.test.tsx b/apps/desktop/src/app/chat/composer/controls.test.tsx
index ac96d645c42..e2575bd66b6 100644
--- a/apps/desktop/src/app/chat/composer/controls.test.tsx
+++ b/apps/desktop/src/app/chat/composer/controls.test.tsx
@@ -158,6 +158,13 @@ describe('ComposerControls shortcut tooltips', () => {
await expectShortcutTooltip('Queue message', 'Ctrl+↵')
})
+
+ it('hides Queue while idle even if the composer has a payload', () => {
+ renderControls({ busy: false, busyAction: 'queue', hasComposerPayload: true })
+
+ expect(screen.queryByLabelText('Queue message')).toBeNull()
+ expect(screen.getByLabelText('Send')).toBeTruthy()
+ })
})
describe('wake-word ear visibility', () => {
diff --git a/apps/desktop/src/app/chat/composer/controls.tsx b/apps/desktop/src/app/chat/composer/controls.tsx
index 9e74e8b7b3a..dc278982791 100644
--- a/apps/desktop/src/app/chat/composer/controls.tsx
+++ b/apps/desktop/src/app/chat/composer/controls.tsx
@@ -82,7 +82,7 @@ export function ComposerControls({
// Steer is just send: a payload keeps the Send affordance mid-turn. Stop
// only when the composer is empty and a turn is running.
const showStop = busy && !hasComposerPayload
- const showQueueButton = busyAction !== 'stop' && hasComposerPayload
+ const showQueueButton = busy && busyAction !== 'stop' && hasComposerPayload
// The HUD is a Spotlight bar a few hundred pixels wide, so the four separate
// voice toggles fold into one menu there and leave the row to the input. A
// narrow tile hits the same wall from the other direction and folds for the