mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 00:02:31 +00:00
fix(claude): prefill continuation context for manual submission
This commit is contained in:
@@ -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: () =>
|
||||
|
||||
Reference in New Issue
Block a user