mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
* 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>
19 lines
473 B
TypeScript
19 lines
473 B
TypeScript
import { buildSourceControlRecoveryAgentCommandInput } from './source-control-recovery-agent-command'
|
|
|
|
export function buildCommitFailureAgentCommandInput({
|
|
promptOverride,
|
|
commandInputTemplate,
|
|
basePrompt
|
|
}: {
|
|
promptOverride?: string
|
|
commandInputTemplate?: string | null
|
|
basePrompt: string
|
|
}): string {
|
|
return buildSourceControlRecoveryAgentCommandInput({
|
|
actionId: 'fixCommitFailure',
|
|
promptOverride,
|
|
commandInputTemplate,
|
|
basePrompt
|
|
})
|
|
}
|