The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: admit native busy slash kickoffs through canonical submit
Teknium6bef46ea53dc
diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.test.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.test.tsindex 08c5dcdfb2d..f2458161986 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.test.ts+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.test.ts@@ -29,6 +29,12 @@ afterEach(() => {$sessionStates.set({})})+it('leaves canonical busy kickoff admission to the submit pipeline instead of the local queue', () => {+ $connection.set({ mode: 'local', wsUrl: 'ws://localhost/api/ws?native_dial=unminted' } as never)+ expect(queueKickoffIfSessionBusy({ sessionId: 'runtime-a', text: 'expanded' })).toBe('idle')+ expect(queue.getQueuedPrompts('stored-a')).toEqual([])+})+it('forwards kickoff identity to queue admission and leaves idle targets alone', () => {const enqueue = vi.spyOn(queue, 'enqueueQueuedPrompt')const input = { id: 'caller-kickoff', sessionId: 'runtime-a', text: 'expanded skill', displayText: '/work' }diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.tsindex dbcb57686cc..a3b41bcd1be 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.ts+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/queue-if-busy.ts@@ -1,4 +1,4 @@-import { enqueueQueuedPrompt } from '@/store/composer-queue'+import { enqueueQueuedPrompt, serverOwnsComposerQueue } from '@/store/composer-queue'import { $sessions, resolveComposerSessionKey } from '@/store/session'import { $sessionStates } from '@/store/session-states'@@ -36,7 +36,7 @@ export function queueKickoffIfSessionBusy({}: QueueIfBusyInput): 'busy' | 'idle' | 'queued' {const states = $sessionStates.get()- if (!isTargetSessionBusy(states, sessionId, foregroundBusy)) {+ if (serverOwnsComposerQueue(sessionId) || !isTargetSessionBusy(states, sessionId, foregroundBusy)) {return 'idle'}