fix(claude): prefill continuation context for manual submission

This commit is contained in:
Neil
2026-09-20 22:05:37 -07:00
parent 2d697a4012
commit f0256006ff
2 changed files with 5 additions and 2 deletions
@@ -72,7 +72,7 @@ describe('launchAgentSessionContinuation', () => {
worktreeId: 'wt-1',
groupId: 'group-1',
initialCwd: '/repo/worktree/packages/app',
promptDelivery: 'submit-after-ready'
promptDelivery: 'draft'
})
)
})
@@ -129,6 +129,9 @@ describe('launchAgentSessionContinuation', () => {
launchSource: 'sidebar'
})
expect(launchAgentInNewTab).toHaveBeenCalledWith(
expect.objectContaining({ agent: 'codex', promptDelivery: 'submit-after-ready' })
)
await vi.waitFor(() =>
expect(toast.error).toHaveBeenCalledWith(
'The new Codex session started, but its context could not be sent.'
@@ -90,7 +90,7 @@ export async function launchAgentSessionContinuation({
worktreeId,
...(groupId ? { groupId } : {}),
prompt,
promptDelivery: 'submit-after-ready',
promptDelivery: agent === 'claude' ? 'draft' : 'submit-after-ready',
launchSource,
...(initialCwd ? { initialCwd } : {}),
onPromptDelivered: () =>