Files
orca/src/shared/source-control-push-failure-agent-command.ts
T
Jinjinganddalveytech-vincent 070a956a72 feat(source-control): add push failure AI recovery (#7826)
* feat(source-control): add Fix push failure with AI for pre-push hooks

Detect pre-push hook failures separately from auth/transport errors so
push toasts and inline messages no longer suggest checking repo access.
Mirror the commit-failure recovery flow with a fixPushFailure action,
summary panel, details dialog, and agent launch recipe in Settings.

Fixes #6497

* feat(source-control): add push failure AI recovery

Co-authored-by: dalveytech-vincent <vincent@dalveytech.com>

---------

Co-authored-by: dalveytech-vincent <vincent@dalveytech.com>
2026-07-08 18:59:28 -07:00

19 lines
469 B
TypeScript

import { buildSourceControlRecoveryAgentCommandInput } from './source-control-recovery-agent-command'
export function buildPushFailureAgentCommandInput({
promptOverride,
commandInputTemplate,
basePrompt
}: {
promptOverride?: string
commandInputTemplate?: string | null
basePrompt: string
}): string {
return buildSourceControlRecoveryAgentCommandInput({
actionId: 'fixPushFailure',
promptOverride,
commandInputTemplate,
basePrompt
})
}