diff --git a/src/provider/rotation.ts b/src/provider/rotation.ts index cc24aef..3d85192 100644 --- a/src/provider/rotation.ts +++ b/src/provider/rotation.ts @@ -165,7 +165,7 @@ export function registerExhaustionRotation( 'info', ); awaitingContinuation = true; - pi.sendUserMessage(ROTATION_CONTINUATION); + pi.sendUserMessage(ROTATION_CONTINUATION, { deliverAs: 'followUp' }); return; } diff --git a/tests/provider/rotation.test.ts b/tests/provider/rotation.test.ts index df0f7dd..93d2db8 100644 --- a/tests/provider/rotation.test.ts +++ b/tests/provider/rotation.test.ts @@ -136,7 +136,9 @@ describe('Grok CLI exhaustion rotation', () => { }); expect((await getAccountVault()).activeAccountId).toBe('account-1'); expect(test.setModel).not.toHaveBeenCalled(); - expect(test.sendUserMessage).toHaveBeenCalledWith(ROTATION_CONTINUATION); + expect(test.sendUserMessage).toHaveBeenCalledWith(ROTATION_CONTINUATION, { + deliverAs: 'followUp', + }); expect(test.notify).toHaveBeenCalledWith( 'Grok CLI: “Account 1” exhausted; switched to “Work” and continuing.', 'info', @@ -260,6 +262,8 @@ describe('Grok CLI exhaustion rotation', () => { await expect(pending).resolves.toBeUndefined(); expect(test.selection.accountId('session-a')).toBe('account-3'); expect((await getAccountVault()).activeAccountId).toBe('account-1'); - expect(test.sendUserMessage).toHaveBeenCalledWith(ROTATION_CONTINUATION); + expect(test.sendUserMessage).toHaveBeenCalledWith(ROTATION_CONTINUATION, { + deliverAs: 'followUp', + }); }); });