diff --git a/src/renderer/src/components/PullRequestPage.tsx b/src/renderer/src/components/PullRequestPage.tsx
index 1df423f64..b8e75098b 100644
--- a/src/renderer/src/components/PullRequestPage.tsx
+++ b/src/renderer/src/components/PullRequestPage.tsx
@@ -4476,7 +4476,7 @@ function ChecksTab({
title={translate('auto.components.PullRequestPage.a053bdd082', 'Fix Broken Checks With AI')}
description={translate(
'auto.components.PullRequestPage.ddfd42f460',
- 'Choose the agent and edit the full command input before launch.'
+ 'Review the prompt before starting an agent.'
)}
baseCommandInput={fixChecksComposerPrompt ?? ''}
connectionId={repo?.connectionId ?? null}
diff --git a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx
index 016976c41..d58d3a428 100644
--- a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx
+++ b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx
@@ -165,7 +165,11 @@ export function ChecksPanelReviewHeader({
{reviewNumberLabel}
@@ -181,7 +185,7 @@ export function ChecksPanelReviewHeader({
@@ -194,8 +198,14 @@ export function ChecksPanelReviewHeader({
type="button"
variant="ghost"
size="icon-xs"
- aria-label={translate("auto.components.right.sidebar.ChecksPanel.653c105ecc", "More PR actions")}
- title={translate("auto.components.right.sidebar.ChecksPanel.653c105ecc", "More PR actions")}
+ aria-label={translate(
+ 'auto.components.right.sidebar.ChecksPanel.653c105ecc',
+ 'More PR actions'
+ )}
+ title={translate(
+ 'auto.components.right.sidebar.ChecksPanel.653c105ecc',
+ 'More PR actions'
+ )}
className="text-muted-foreground hover:text-foreground"
>
@@ -204,10 +214,12 @@ export function ChecksPanelReviewHeader({
- {translate("auto.components.right.sidebar.ChecksPanel.7202f4a40a", "unlink PR")}
+ {translate('auto.components.right.sidebar.ChecksPanel.7202f4a40a', 'unlink PR')}
+
- {translate("auto.components.right.sidebar.ChecksPanel.07871c0589", "Link another PR")}
+ {translate('auto.components.right.sidebar.ChecksPanel.07871c0589', 'Link another PR')}
+
)}
@@ -1721,7 +1733,12 @@ export default function ChecksPanel(): React.JSX.Element {
}
if (!ok) {
setComments(previousComments)
- toast.error(translate("auto.components.right.sidebar.ChecksPanel.5788d1059d", "Could not update review thread. Check the GitHub API budget."))
+ toast.error(
+ translate(
+ 'auto.components.right.sidebar.ChecksPanel.5788d1059d',
+ 'Could not update review thread. Check the GitHub API budget.'
+ )
+ )
}
return ok
},
@@ -1826,9 +1843,12 @@ export default function ChecksPanel(): React.JSX.Element {
return
}
const confirmed = await confirm({
- title: translate("auto.components.right.sidebar.ChecksPanel.ea9b649ce3", "Delete comment?"),
- description: translate("auto.components.right.sidebar.ChecksPanel.3b203c62f8", "This will permanently remove the comment from the PR."),
- confirmLabel: translate("auto.components.right.sidebar.ChecksPanel.786e3c143f", "Delete"),
+ title: translate('auto.components.right.sidebar.ChecksPanel.ea9b649ce3', 'Delete comment?'),
+ description: translate(
+ 'auto.components.right.sidebar.ChecksPanel.3b203c62f8',
+ 'This will permanently remove the comment from the PR.'
+ ),
+ confirmLabel: translate('auto.components.right.sidebar.ChecksPanel.786e3c143f', 'Delete'),
confirmVariant: 'destructive'
})
if (!confirmed) {
@@ -1907,8 +1927,14 @@ export default function ChecksPanel(): React.JSX.Element {
const conflictFiles = activeConflictReview.conflictSummary?.files ?? []
setAgentComposerState({
actionId: 'resolveConflicts',
- title: translate("auto.components.right.sidebar.ChecksPanel.4ede779461", "Resolve Review Conflicts With AI"),
- description: translate("auto.components.right.sidebar.ChecksPanel.abf59262fb", "Review and edit the full command input before starting an agent."),
+ title: translate(
+ 'auto.components.right.sidebar.ChecksPanel.4ede779461',
+ 'Resolve Review Conflicts With AI'
+ ),
+ description: translate(
+ 'auto.components.right.sidebar.ChecksPanel.abf59262fb',
+ 'Review the prompt before starting an agent.'
+ ),
prompt: buildResolvePullRequestConflictsPrompt({
reviewKind: activeConflictReview.provider === 'gitlab' ? 'MR' : 'PR',
baseRef: activeConflictReview.conflictSummary?.baseRef,
@@ -1925,7 +1951,12 @@ export default function ChecksPanel(): React.JSX.Element {
}
const broken = getBrokenChecks(checks)
if (broken.length === 0) {
- toast.message(translate("auto.components.right.sidebar.ChecksPanel.5594400d73", "No broken checks to fix."))
+ toast.message(
+ translate(
+ 'auto.components.right.sidebar.ChecksPanel.5594400d73',
+ 'No broken checks to fix.'
+ )
+ )
return
}
const requestKey = stateRequestKey
@@ -1978,7 +2009,12 @@ export default function ChecksPanel(): React.JSX.Element {
launchSource: 'task_page'
})
if (started) {
- toast.success(translate("auto.components.right.sidebar.ChecksPanel.2ef90c9819", "Started an AI agent for the broken checks."))
+ toast.success(
+ translate(
+ 'auto.components.right.sidebar.ChecksPanel.2ef90c9819',
+ 'Started an AI agent for the broken checks.'
+ )
+ )
}
} finally {
setIsFixingChecksWithAI(false)
@@ -2381,17 +2417,33 @@ export default function ChecksPanel(): React.JSX.Element {
if (!activeWorktree) {
return (
-
{translate("auto.components.right.sidebar.ChecksPanel.a4ef4e0832", "No workspace selected")}
-
{translate("auto.components.right.sidebar.ChecksPanel.b5dd73a105", "Select a workspace to view checks")}
+
+ {translate(
+ 'auto.components.right.sidebar.ChecksPanel.a4ef4e0832',
+ 'No workspace selected'
+ )}
+
+
+ {translate(
+ 'auto.components.right.sidebar.ChecksPanel.b5dd73a105',
+ 'Select a workspace to view checks'
+ )}
+
)
}
if (isFolder) {
return (
-
{translate("auto.components.right.sidebar.ChecksPanel.976cefd02f", "Checks unavailable")}
+
+ {translate('auto.components.right.sidebar.ChecksPanel.976cefd02f', 'Checks unavailable')}
+
- {translate("auto.components.right.sidebar.ChecksPanel.dda5924a40", "Checks require a Git branch and hosted review context")}
+ {translate(
+ 'auto.components.right.sidebar.ChecksPanel.dda5924a40',
+ 'Checks require a Git branch and hosted review context'
+ )}
+
)
}
@@ -2468,7 +2520,15 @@ export default function ChecksPanel(): React.JSX.Element {
disabled={isPublishingBranch || isRemoteOperationActive}
onClick={handlePublishBranch}
>
- {isPublishingBranch ? translate("auto.components.right.sidebar.ChecksPanel.fdb27637f2", "Publishing…") : translate("auto.components.right.sidebar.ChecksPanel.6633c7a1fb", "Publish Branch")}
+ {isPublishingBranch
+ ? translate(
+ 'auto.components.right.sidebar.ChecksPanel.fdb27637f2',
+ 'Publishing…'
+ )
+ : translate(
+ 'auto.components.right.sidebar.ChecksPanel.6633c7a1fb',
+ 'Publish Branch'
+ )}
)}
{(canCreate || canPushCreate) && (
@@ -2480,8 +2540,16 @@ export default function ChecksPanel(): React.JSX.Element {
}}
>
{canPushCreate
- ? translate("auto.components.right.sidebar.ChecksPanel.98f4c37b33", "Push & Create {{value0}}", { value0: emptyReviewShortLabel })
- : translate("auto.components.right.sidebar.ChecksPanel.889cdfba04", "Create {{value0}}", { value0: emptyReviewShortLabel })}
+ ? translate(
+ 'auto.components.right.sidebar.ChecksPanel.98f4c37b33',
+ 'Push & Create {{value0}}',
+ { value0: emptyReviewShortLabel }
+ )
+ : translate(
+ 'auto.components.right.sidebar.ChecksPanel.889cdfba04',
+ 'Create {{value0}}',
+ { value0: emptyReviewShortLabel }
+ )}
)}
- {emptyRefreshing ? translate("auto.components.right.sidebar.ChecksPanel.71026ca2cb", "Refreshing…") : translate("auto.components.right.sidebar.ChecksPanel.7f4489f370", "Refresh")}
+ {emptyRefreshing
+ ? translate('auto.components.right.sidebar.ChecksPanel.71026ca2cb', 'Refreshing…')
+ : translate('auto.components.right.sidebar.ChecksPanel.7f4489f370', 'Refresh')}
)}
@@ -2540,7 +2610,7 @@ export default function ChecksPanel(): React.JSX.Element {
/>
void handleSaveTitle()}
disabled={titleSaving}
>
@@ -2552,7 +2622,7 @@ export default function ChecksPanel(): React.JSX.Element {
@@ -2574,7 +2644,9 @@ export default function ChecksPanel(): React.JSX.Element {
{/* Updated at */}
{activeReview.updatedAt && (
- {reviewShortLabel} {translate("auto.components.right.sidebar.ChecksPanel.34464d00b9", "updated")}{new Date(activeReview.updatedAt).toLocaleString()}
+ {reviewShortLabel}{' '}
+ {translate('auto.components.right.sidebar.ChecksPanel.34464d00b9', 'updated')}
+ {new Date(activeReview.updatedAt).toLocaleString()}
)}
{queueBadges.length > 0 ? (
@@ -2658,7 +2730,10 @@ export default function ChecksPanel(): React.JSX.Element {
}
}}
actionId={agentComposerState?.actionId ?? 'fixChecks'}
- title={agentComposerState?.title ?? translate("auto.components.right.sidebar.ChecksPanel.7fad8509fe", "Fix With AI")}
+ title={
+ agentComposerState?.title ??
+ translate('auto.components.right.sidebar.ChecksPanel.7fad8509fe', 'Fix With AI')
+ }
description={agentComposerState?.description ?? ''}
baseCommandInput={agentComposerState?.prompt ?? ''}
worktreeId={activeWorktreeId}
@@ -2700,9 +2775,19 @@ export default function ChecksPanel(): React.JSX.Element {
onSaveAgentDefault={saveLaunchActionDefault}
onLaunched={() => {
if (agentComposerState?.actionId === 'resolveConflicts') {
- toast.success(translate("auto.components.right.sidebar.ChecksPanel.a0181a8d76", "Started an AI agent for the conflicts."))
+ toast.success(
+ translate(
+ 'auto.components.right.sidebar.ChecksPanel.a0181a8d76',
+ 'Started an AI agent for the conflicts.'
+ )
+ )
} else {
- toast.success(translate("auto.components.right.sidebar.ChecksPanel.2ef90c9819", "Started an AI agent for the broken checks."))
+ toast.success(
+ translate(
+ 'auto.components.right.sidebar.ChecksPanel.2ef90c9819',
+ 'Started an AI agent for the broken checks.'
+ )
+ )
}
}}
/>
diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx
index 029ee808b..5694cf0b6 100644
--- a/src/renderer/src/components/right-sidebar/SourceControl.tsx
+++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx
@@ -938,7 +938,12 @@ function SourceControlInner(): React.JSX.Element {
if (ok) {
setPendingDiffCommentsClear(null)
} else {
- toast.error(translate("auto.components.right.sidebar.SourceControl.eae7a1da5f", "Failed to clear notes."))
+ toast.error(
+ translate(
+ 'auto.components.right.sidebar.SourceControl.eae7a1da5f',
+ 'Failed to clear notes.'
+ )
+ )
}
} finally {
setIsClearingDiffComments(false)
@@ -1890,7 +1895,14 @@ function SourceControlInner(): React.JSX.Element {
await abortGitOperation(context)
} catch (error) {
const message = error instanceof Error ? error.message : `Failed to abort ${label}`
- toast.error(translate("auto.components.right.sidebar.SourceControl.f99560ab29", "Abort {{value0}} failed", { value0: label }), { description: message })
+ toast.error(
+ translate(
+ 'auto.components.right.sidebar.SourceControl.f99560ab29',
+ 'Abort {{value0}} failed',
+ { value0: label }
+ ),
+ { description: message }
+ )
setRemoteActionErrors((prev) => ({
...prev,
[activeWorktreeId]: { kind: isRebase ? 'abort_rebase' : 'abort_merge', message }
@@ -1992,12 +2004,23 @@ function SourceControlInner(): React.JSX.Element {
})
])
} catch {
- toast.warning(translate("auto.components.right.sidebar.SourceControl.0453ca3a9a", "{{value0}} created, but Orca could not refresh it yet.", { value0: copy.titleLabel }), {
- action: {
- label: translate("auto.components.right.sidebar.SourceControl.812cb992ee", "Open on {{value0}}", { value0: copy.providerName }),
- onClick: () => window.api.shell.openUrl(result.url)
+ toast.warning(
+ translate(
+ 'auto.components.right.sidebar.SourceControl.0453ca3a9a',
+ '{{value0}} created, but Orca could not refresh it yet.',
+ { value0: copy.titleLabel }
+ ),
+ {
+ action: {
+ label: translate(
+ 'auto.components.right.sidebar.SourceControl.812cb992ee',
+ 'Open on {{value0}}',
+ { value0: copy.providerName }
+ ),
+ onClick: () => window.api.shell.openUrl(result.url)
+ }
}
- })
+ )
}
},
[
@@ -2414,11 +2437,23 @@ function SourceControlInner(): React.JSX.Element {
const number = result.existingReview.number
toast.success(
number
- ? translate("auto.components.right.sidebar.SourceControl.eef5446523", "{{value0}} #{{value1}} is already open", { value0: hostedReviewCreateCopy.titleLabel, value1: number })
- : translate("auto.components.right.sidebar.SourceControl.eef5446523", "{{value0}} is already open", { value0: hostedReviewCreateCopy.titleLabel }),
+ ? translate(
+ 'auto.components.right.sidebar.SourceControl.eef5446523',
+ '{{value0}} #{{value1}} is already open',
+ { value0: hostedReviewCreateCopy.titleLabel, value1: number }
+ )
+ : translate(
+ 'auto.components.right.sidebar.SourceControl.eef5446523',
+ '{{value0}} is already open',
+ { value0: hostedReviewCreateCopy.titleLabel }
+ ),
{
action: {
- label: translate("auto.components.right.sidebar.SourceControl.812cb992ee", "Open on {{value0}}", { value0: hostedReviewCreateCopy.providerName }),
+ label: translate(
+ 'auto.components.right.sidebar.SourceControl.812cb992ee',
+ 'Open on {{value0}}',
+ { value0: hostedReviewCreateCopy.providerName }
+ ),
onClick: () => window.api.shell.openUrl(result.existingReview!.url)
}
}
@@ -2498,7 +2533,11 @@ function SourceControlInner(): React.JSX.Element {
return isCreatingPr && action.kind === 'create_pr'
? {
...action,
- title: translate("auto.components.right.sidebar.SourceControl.fe5bd1a610", "Creating {{value0}}...", { value0: hostedReviewCreateCopy.reviewLabel }),
+ title: translate(
+ 'auto.components.right.sidebar.SourceControl.fe5bd1a610',
+ 'Creating {{value0}}...',
+ { value0: hostedReviewCreateCopy.reviewLabel }
+ ),
disabled: true
}
: action
@@ -3299,7 +3338,13 @@ function SourceControlInner(): React.JSX.Element {
item.id
)
if (result.summary.status !== 'ready') {
- toast.error(result.summary.errorMessage ?? translate("auto.components.right.sidebar.SourceControl.8a5ba6a988", "Failed to load commit diff"))
+ toast.error(
+ result.summary.errorMessage ??
+ translate(
+ 'auto.components.right.sidebar.SourceControl.8a5ba6a988',
+ 'Failed to load commit diff'
+ )
+ )
return
}
openCommitAllDiffs(
@@ -3311,7 +3356,14 @@ function SourceControlInner(): React.JSX.Element {
item.message
)
} catch (error) {
- toast.error(error instanceof Error ? error.message : translate("auto.components.right.sidebar.SourceControl.8a5ba6a988", "Failed to load commit diff"))
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : translate(
+ 'auto.components.right.sidebar.SourceControl.8a5ba6a988',
+ 'Failed to load commit diff'
+ )
+ )
}
},
[activeWorktreeId, openCommitAllDiffs, worktreePath]
@@ -3602,9 +3654,15 @@ function SourceControlInner(): React.JSX.Element {
}
})
if (result.aborted) {
- toast.error(translate("auto.components.right.sidebar.SourceControl.a5e5a11090", "Discard all failed — unable to unstage files before discard"), {
- description: errors[0] instanceof Error ? errors[0].message : undefined
- })
+ toast.error(
+ translate(
+ 'auto.components.right.sidebar.SourceControl.a5e5a11090',
+ 'Discard all failed — unable to unstage files before discard'
+ ),
+ {
+ description: errors[0] instanceof Error ? errors[0].message : undefined
+ }
+ )
} else if (result.failed.length > 0) {
// Why: only include the first error message to avoid a huge toast
// body on bulk failures; a short sample of failed paths gives users
@@ -3613,9 +3671,19 @@ function SourceControlInner(): React.JSX.Element {
const sample = result.failed.slice(0, 3).join(', ')
const more = result.failed.length > 3 ? `, +${result.failed.length - 3} more` : ''
toast.error(
- translate("auto.components.right.sidebar.SourceControl.8eb3782a0c", "Failed to discard {{value0}} file{{value1}}", { value0: result.failed.length, value1: result.failed.length === 1 ? '' : 's' }),
+ translate(
+ 'auto.components.right.sidebar.SourceControl.8eb3782a0c',
+ 'Failed to discard {{value0}} file{{value1}}',
+ { value0: result.failed.length, value1: result.failed.length === 1 ? '' : 's' }
+ ),
{
- description: firstMsg ? translate("auto.components.right.sidebar.SourceControl.dc5a6465fc", "{{value0}} (e.g. {{value1}}{{value2}})", { value0: firstMsg, value1: sample, value2: more }) : `${sample}${more}`
+ description: firstMsg
+ ? translate(
+ 'auto.components.right.sidebar.SourceControl.dc5a6465fc',
+ '{{value0}} (e.g. {{value1}}{{value2}})',
+ { value0: firstMsg, value1: sample, value2: more }
+ )
+ : `${sample}${more}`
}
)
}
@@ -3679,13 +3747,21 @@ function SourceControlInner(): React.JSX.Element {
if (!activeWorktree || !activeRepo || !worktreePath) {
return (
- {translate("auto.components.right.sidebar.SourceControl.c07b236287", "Select a workspace to view changes")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.c07b236287',
+ 'Select a workspace to view changes'
+ )}
+
)
}
if (isFolder) {
return (
- {translate("auto.components.right.sidebar.SourceControl.e131cd7128", "Source Control is only available for Git repositories")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.e131cd7128',
+ 'Source Control is only available for Git repositories'
+ )}
+
)
}
@@ -3714,7 +3790,12 @@ function SourceControlInner(): React.JSX.Element {
)}
onClick={() => setScope(value)}
>
- {value === "all" ? translate("auto.components.right.sidebar.SourceControl.77afaa8152", "All") : translate("auto.components.right.sidebar.SourceControl.0fad573938", "Uncommitted")}
+ {value === 'all'
+ ? translate('auto.components.right.sidebar.SourceControl.77afaa8152', 'All')
+ : translate(
+ 'auto.components.right.sidebar.SourceControl.0fad573938',
+ 'Uncommitted'
+ )}
))}
{hostedReview && (
@@ -3734,7 +3815,7 @@ function SourceControlInner(): React.JSX.Element {
)}
- {scope === "all" && shouldShowCompareSummary(branchSummary) && (
+ {scope === 'all' && shouldShowCompareSummary(branchSummary) && (
setDiffCommentsExpanded((prev) => !prev)}
aria-expanded={diffCommentsExpanded}
- title={diffCommentsExpanded ? translate("auto.components.right.sidebar.SourceControl.d13edef890", "Collapse notes") : translate("auto.components.right.sidebar.SourceControl.72f2bea3f4", "Expand notes")}
+ title={
+ diffCommentsExpanded
+ ? translate(
+ 'auto.components.right.sidebar.SourceControl.d13edef890',
+ 'Collapse notes'
+ )
+ : translate(
+ 'auto.components.right.sidebar.SourceControl.72f2bea3f4',
+ 'Expand notes'
+ )
+ }
>
- {translate("auto.components.right.sidebar.SourceControl.cc474e0b8c", "Notes")}
+
+ {translate('auto.components.right.sidebar.SourceControl.cc474e0b8c', 'Notes')}
+
{diffCommentCount > 0 && (
{diffCommentCount}
@@ -3791,7 +3884,10 @@ function SourceControlInner(): React.JSX.Element {
type="button"
className="inline-flex size-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
onClick={() => void handleCopyDiffComments()}
- aria-label={translate("auto.components.right.sidebar.SourceControl.3baf6c77b4", "Copy all notes to clipboard")}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.3baf6c77b4',
+ 'Copy all notes to clipboard'
+ )}
>
{diffCommentsCopied ? (
@@ -3801,7 +3897,11 @@ function SourceControlInner(): React.JSX.Element {
- {translate("auto.components.right.sidebar.SourceControl.eae2d051af", "Copy all notes")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.eae2d051af',
+ 'Copy all notes'
+ )}
+
)}
@@ -3813,14 +3913,21 @@ function SourceControlInner(): React.JSX.Element {
- {translate("auto.components.right.sidebar.SourceControl.2fe2a67580", "More note actions")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.2fe2a67580',
+ 'More note actions'
+ )}
+
@@ -3835,7 +3942,11 @@ function SourceControlInner(): React.JSX.Element {
}}
>
- {translate("auto.components.right.sidebar.SourceControl.1406954883", "Clear all notes...")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.1406954883',
+ 'Clear all notes...'
+ )}
+
@@ -3865,7 +3976,10 @@ function SourceControlInner(): React.JSX.Element {
type="text"
value={filterQuery}
onChange={(e) => setFilterQuery(e.target.value)}
- placeholder={translate("auto.components.right.sidebar.SourceControl.c35baf2f1e", "Filter files…")}
+ placeholder={translate(
+ 'auto.components.right.sidebar.SourceControl.c35baf2f1e',
+ 'Filter files…'
+ )}
className="flex-1 min-w-0 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/60 outline-none"
/>
{filterQuery && (
@@ -3915,7 +4029,7 @@ function SourceControlInner(): React.JSX.Element {
but there are no unresolved conflicts (e.g. between rebase steps, or
after resolving all conflicts before running --continue). The
ConflictSummaryCard handles the "has conflicts" case above. */}
- {unresolvedConflictReviewEntries.length === 0 && conflictOperation !== "unknown" && (
+ {unresolvedConflictReviewEntries.length === 0 && conflictOperation !== 'unknown' && (
)}
- {scope === "all" && showGenericEmptyState && !normalizedFilter ? (
+ {scope === 'all' && showGenericEmptyState && !normalizedFilter ? (
) : null}
- {scope === "uncommitted" && !hasUncommittedEntries && !normalizedFilter && (
+ {scope === 'uncommitted' && !hasUncommittedEntries && !normalizedFilter && (
- {translate("auto.components.right.sidebar.SourceControl.78ce2d37ac", "Pushes to fork")}{describeForkPushTarget(activeWorktree.pushTarget)}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.78ce2d37ac',
+ 'Pushes to fork'
+ )}
+ {describeForkPushTarget(activeWorktree.pushTarget)}
) : null}
{shouldRenderCommitArea(scope, unresolvedConflicts.length, conflictOperation) &&
- (primaryAction.kind === "create_pr" ? (
+ (primaryAction.kind === 'create_pr' ? (
))}
- {(scope === "all" || scope === "uncommitted") && hasFilteredUncommittedEntries && (
+ {(scope === 'all' || scope === 'uncommitted') && hasFilteredUncommittedEntries && (
<>
{SECTION_ORDER.map((area) => {
const items = filteredGrouped[area]
@@ -4104,7 +4226,15 @@ function SourceControlInner(): React.JSX.Element {
// A generic "Discard all" label hides that severity —
// label explicitly for the destructive variant.
title={
- area === "untracked" ? translate("auto.components.right.sidebar.SourceControl.2f609a2e7c", "Delete all untracked") : translate("auto.components.right.sidebar.SourceControl.ce41708855", "Discard all")
+ area === 'untracked'
+ ? translate(
+ 'auto.components.right.sidebar.SourceControl.2f609a2e7c',
+ 'Delete all untracked'
+ )
+ : translate(
+ 'auto.components.right.sidebar.SourceControl.ce41708855',
+ 'Discard all'
+ )
}
onClick={(event) => {
event.stopPropagation()
@@ -4116,7 +4246,10 @@ function SourceControlInner(): React.JSX.Element {
{canStageAll && (
{
event.stopPropagation()
if (area === 'unstaged' || area === 'untracked') {
@@ -4129,7 +4262,10 @@ function SourceControlInner(): React.JSX.Element {
{canUnstageAll && (
{
event.stopPropagation()
void handleUnstageAll()
@@ -4151,7 +4287,11 @@ function SourceControlInner(): React.JSX.Element {
}
}}
>
- {translate("auto.components.right.sidebar.SourceControl.48db37cca9", "View all")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.48db37cca9',
+ 'View all'
+ )}
+
) : (
- {translate("auto.components.right.sidebar.SourceControl.48db37cca9", "View all")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.48db37cca9',
+ 'View all'
+ )}
+
)}
>
}
/>
{!isCollapsed &&
- (sourceControlViewMode === "tree"
+ (sourceControlViewMode === 'tree'
? visibleTreeRowsByArea[area].map((node) => {
if (node.type === 'directory') {
return (
@@ -4243,10 +4387,10 @@ function SourceControlInner(): React.JSX.Element {
>
)}
- {scope === "all" &&
+ {scope === 'all' &&
branchSummary &&
- branchSummary.status !== "ready" &&
- branchSummary.status !== "loading" ? (
+ branchSummary.status !== 'ready' &&
+ branchSummary.status !== 'loading' ? (
setBaseRefDialogOpen(true)}
@@ -4254,10 +4398,13 @@ function SourceControlInner(): React.JSX.Element {
/>
) : null}
- {scope === "all" && branchSummary?.status === "ready" && hasFilteredBranchEntries && (
+ {scope === 'all' && branchSummary?.status === 'ready' && hasFilteredBranchEntries && (
toggleSection('branch')}
@@ -4274,11 +4421,15 @@ function SourceControlInner(): React.JSX.Element {
}
}}
>
- {translate("auto.components.right.sidebar.SourceControl.48db37cca9", "View all")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.48db37cca9',
+ 'View all'
+ )}
+
}
/>
{!collapsedSections.has('branch') &&
- (sourceControlViewMode === "tree"
+ (sourceControlViewMode === 'tree'
? visibleBranchTreeRows.map((node) => {
if (node.type === 'directory') {
return (
@@ -4357,7 +4508,9 @@ function SourceControlInner(): React.JSX.Element {
>
- {translate("auto.components.right.sidebar.SourceControl.574d2f4413", "Clear Notes")}
+
+ {translate('auto.components.right.sidebar.SourceControl.574d2f4413', 'Clear Notes')}
+
{pendingDiffCommentsClearDescription}
@@ -4369,7 +4522,8 @@ function SourceControlInner(): React.JSX.Element {
onClick={() => setPendingDiffCommentsClear(null)}
disabled={isClearingDiffComments}
>
- {translate("auto.components.right.sidebar.SourceControl.05bb8f4a48", "Cancel")}
+ {translate('auto.components.right.sidebar.SourceControl.05bb8f4a48', 'Cancel')}
+
- {translate("auto.components.right.sidebar.SourceControl.574d2f4413", "Clear Notes")}
+ {translate('auto.components.right.sidebar.SourceControl.574d2f4413', 'Clear Notes')}
+
@@ -4391,9 +4546,18 @@ function SourceControlInner(): React.JSX.Element {
- {translate("auto.components.right.sidebar.SourceControl.476b77745b", "Change Base Ref")}
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.476b77745b',
+ 'Change Base Ref'
+ )}
+
- {translate("auto.components.right.sidebar.SourceControl.c9ad22888e", "Pick the branch compare target for this repository.")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.c9ad22888e',
+ 'Pick the branch compare target for this repository.'
+ )}
+
toast.success(translate("auto.components.right.sidebar.SourceControl.e48caaf0dd", "Started an AI agent for the conflicts."))}
+ onLaunched={() =>
+ toast.success(
+ translate(
+ 'auto.components.right.sidebar.SourceControl.e48caaf0dd',
+ 'Started an AI agent for the conflicts.'
+ )
+ )
+ }
/>
- {translate("auto.components.right.sidebar.SourceControl.e1970d327d", "New")}{copy.reviewLabel}
+
+ {translate('auto.components.right.sidebar.SourceControl.e1970d327d', 'New')}
+ {copy.reviewLabel}
+
{aiGenerationEnabled ? (
generating ? (
@@ -4577,11 +4769,23 @@ function PullRequestComposer({
type="button"
onClick={() => onCancelGenerate()}
className="inline-flex h-6 shrink-0 items-center gap-1 rounded-md border border-border bg-background px-2 text-[11px] text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive"
- title={translate("auto.components.right.sidebar.SourceControl.527e130b6f", "Stop generating")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.527e130b6f", "Stop generating {{value0}} details", { value0: copy.reviewLabel })}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.527e130b6f',
+ 'Stop generating'
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.527e130b6f',
+ 'Stop generating {{value0}} details',
+ { value0: copy.reviewLabel }
+ )}
>
- {translate("auto.components.right.sidebar.SourceControl.e868cec4e1", "Generating…")}
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.e868cec4e1',
+ 'Generating…'
+ )}
+
) : (
@@ -4590,11 +4794,23 @@ function PullRequestComposer({
disabled={generateDisabled}
onClick={() => onGenerate()}
className="inline-flex h-6 shrink-0 items-center gap-1 rounded-md border border-border bg-background px-2 text-[11px] font-medium text-foreground transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-background"
- title={generateDisabledReason ?? translate("auto.components.right.sidebar.SourceControl.02d8c04339", "Generate {{value0}} details with AI", { value0: copy.reviewLabel })}
- aria-label={translate("auto.components.right.sidebar.SourceControl.02d8c04339", "Generate {{value0}} details with AI", { value0: copy.reviewLabel })}
+ title={
+ generateDisabledReason ??
+ translate(
+ 'auto.components.right.sidebar.SourceControl.02d8c04339',
+ 'Generate {{value0}} details with AI',
+ { value0: copy.reviewLabel }
+ )
+ }
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.02d8c04339',
+ 'Generate {{value0}} details with AI',
+ { value0: copy.reviewLabel }
+ )}
>
- {translate("auto.components.right.sidebar.SourceControl.02d8c04339", "Generate")}
+ {translate('auto.components.right.sidebar.SourceControl.02d8c04339', 'Generate')}
+
)
) : null}
@@ -4611,29 +4827,47 @@ function PullRequestComposer({
'truncate font-mono',
baseSameAsBranch ? 'text-destructive' : 'text-foreground'
)}
- title={normalizedBase || translate("auto.components.right.sidebar.SourceControl.7a09d7f9d2", "base")}
+ title={
+ normalizedBase ||
+ translate('auto.components.right.sidebar.SourceControl.7a09d7f9d2', 'base')
+ }
>
- {normalizedBase || translate("auto.components.right.sidebar.SourceControl.7a09d7f9d2", "base")}
+ {normalizedBase ||
+ translate('auto.components.right.sidebar.SourceControl.7a09d7f9d2', 'base')}
) : null}
@@ -4658,17 +4897,26 @@ function PullRequestComposer({
the full width. The dropdown chevron makes the picker affordance
obvious; the inline label clarifies that this is the merge target. */}
-
{translate("auto.components.right.sidebar.SourceControl.1f7119f604", "Base")}
+
+ {translate('auto.components.right.sidebar.SourceControl.1f7119f604', 'Base')}
+
{
setBaseQuery(event.target.value)
setBase(event.target.value)
}}
- placeholder={translate("auto.components.right.sidebar.SourceControl.e64a632456", "main")}
+ placeholder={translate(
+ 'auto.components.right.sidebar.SourceControl.e64a632456',
+ 'main'
+ )}
className="h-7 w-full min-w-0 rounded-md border border-border bg-background px-2 pr-6 font-mono text-xs text-foreground outline-none placeholder:text-muted-foreground/70 focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60"
/>
setDraft(event.target.checked)}
className="size-3.5 shrink-0 rounded border-border accent-primary"
/>
- {translate("auto.components.right.sidebar.SourceControl.78ddfd0bb4", "Create as draft")}
+
+ {translate('auto.components.right.sidebar.SourceControl.78ddfd0bb4', 'Create as draft')}
+
{baseResults.length > 0 ? (
@@ -4734,10 +4984,18 @@ function PullRequestComposer({
)}
{isCreating
- ? translate("auto.components.right.sidebar.SourceControl.26511c22b4", "Creating...")
+ ? translate('auto.components.right.sidebar.SourceControl.26511c22b4', 'Creating...')
: draft
- ? translate("auto.components.right.sidebar.SourceControl.aaf1451654", "Create draft {{value0}}", { value0: copy.shortLabel })
- : translate("auto.components.right.sidebar.SourceControl.5acbcedc1a", "Create {{value0}}", { value0: copy.shortLabel })}
+ ? translate(
+ 'auto.components.right.sidebar.SourceControl.aaf1451654',
+ 'Create draft {{value0}}',
+ { value0: copy.shortLabel }
+ )
+ : translate(
+ 'auto.components.right.sidebar.SourceControl.5acbcedc1a',
+ 'Create {{value0}}',
+ { value0: copy.shortLabel }
+ )}
@@ -4748,8 +5006,15 @@ function PullRequestComposer({
'h-7 rounded-l-none border-l border-primary-foreground/20 px-1.5 shrink-0',
createDisabled && 'opacity-50'
)}
- aria-label={translate("auto.components.right.sidebar.SourceControl.c5e4175139", "More {{value0}} and remote actions", { value0: copy.reviewLabel })}
- title={translate("auto.components.right.sidebar.SourceControl.4d6e1fd7f3", "More actions")}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.c5e4175139',
+ 'More {{value0}} and remote actions',
+ { value0: copy.reviewLabel }
+ )}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.4d6e1fd7f3',
+ 'More actions'
+ )}
>
@@ -4790,7 +5055,13 @@ function PullRequestComposer({
{baseSameAsBranch ? (
- {translate("auto.components.right.sidebar.SourceControl.ae743199cd", "Choose a different base branch before creating a")}{copy.reviewLabel}.
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.ae743199cd',
+ 'Choose a different base branch before creating a'
+ )}
+ {copy.reviewLabel}.
+
) : null}
{baseSearchError ? (
@@ -4880,8 +5151,14 @@ function CommitFailureFixSplitButton({
className={cn('rounded-r-none', primaryClassName)}
disabled={isLaunching || !canLaunch}
onClick={() => void onFixWithDefaultAgent()}
- title={translate("auto.components.right.sidebar.SourceControl.4b37ae99b0", "Start the default AI agent to fix this commit failure")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.30b8d4f181", "Fix commit failure with AI")}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.4b37ae99b0',
+ 'Start the default AI agent to fix this commit failure'
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.30b8d4f181',
+ 'Fix commit failure with AI'
+ )}
>
{isLaunching ? (
@@ -4897,8 +5174,14 @@ function CommitFailureFixSplitButton({
size={size}
className={cn('rounded-l-none border-l', dividerClass, chevronClassName)}
disabled={isLaunching || !canLaunch}
- title={translate("auto.components.right.sidebar.SourceControl.dd43c47089", "Choose an agent for this commit failure")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.ec7bfced55", "Choose agent to fix commit failure")}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.dd43c47089',
+ 'Choose an agent for this commit failure'
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.ec7bfced55',
+ 'Choose agent to fix commit failure'
+ )}
>
@@ -4911,9 +5194,18 @@ function CommitFailureFixSplitButton({
className="gap-2 rounded-[7px] px-2 py-1.5 text-[12px] leading-5 font-medium"
>
- {translate("auto.components.right.sidebar.SourceControl.f0a2dc9e46", "Customize launch...")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.f0a2dc9e46',
+ 'Customize launch...'
+ )}
+
) : (
- {translate("auto.components.right.sidebar.SourceControl.9e5ccd00aa", "Commit failure context unavailable")}
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.9e5ccd00aa',
+ 'Commit failure context unavailable'
+ )}
+
)}
@@ -4922,8 +5214,14 @@ function CommitFailureFixSplitButton({
open={composerOpen}
onOpenChange={setComposerOpen}
actionId="fixCommitFailure"
- title={translate("auto.components.right.sidebar.SourceControl.054ead86b1", "Fix Commit Failure With AI")}
- description={translate("auto.components.right.sidebar.SourceControl.15b7f210d7", "Choose the agent and edit the full command input before launch.")}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.054ead86b1',
+ 'Fix Commit Failure With AI'
+ )}
+ description={translate(
+ 'auto.components.right.sidebar.SourceControl.15b7f210d7',
+ 'Review the prompt before starting an agent.'
+ )}
baseCommandInput={prompt}
worktreeId={worktreeId}
groupId={groupId}
@@ -5162,8 +5460,14 @@ export function CommitArea({
rows={rows}
value={commitMessage}
onChange={(e) => onCommitMessageChange(e.target.value)}
- placeholder={translate("auto.components.right.sidebar.SourceControl.0d0a8359d3", "Message")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.b94112eb9e", "Commit message")}
+ placeholder={translate(
+ 'auto.components.right.sidebar.SourceControl.0d0a8359d3',
+ 'Message'
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.b94112eb9e',
+ 'Commit message'
+ )}
aria-describedby={describedBy || undefined}
// Why: reserve right padding so typed text does not slide under the
// absolute-positioned Generate icon in the top-right corner.
@@ -5183,8 +5487,14 @@ export function CommitArea({
onCancelGenerate()}
- title={translate("auto.components.right.sidebar.SourceControl.527e130b6f", "Stop generating")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.ddc1fbd690", "Stop generating commit message")}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.527e130b6f',
+ 'Stop generating'
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.ddc1fbd690',
+ 'Stop generating commit message'
+ )}
className="group absolute right-1.5 top-1.5 inline-flex size-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:bg-destructive/10 focus-visible:text-destructive focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-destructive/40"
>
@@ -5192,15 +5502,28 @@ export function CommitArea({
- {translate("auto.components.right.sidebar.SourceControl.37a81f29ad", "Generating commit message. Click to stop.")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.37a81f29ad',
+ 'Generating commit message. Click to stop.'
+ )}
+
) : (
onGenerate()}
- title={generateDisabledReason ?? translate("auto.components.right.sidebar.SourceControl.461575b9bc", "Generate commit message with AI")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.461575b9bc", "Generate commit message with AI")}
+ title={
+ generateDisabledReason ??
+ translate(
+ 'auto.components.right.sidebar.SourceControl.461575b9bc',
+ 'Generate commit message with AI'
+ )
+ }
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.461575b9bc',
+ 'Generate commit message with AI'
+ )}
className="absolute right-1.5 top-1.5 inline-flex size-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-muted-foreground"
>
@@ -5261,8 +5584,14 @@ export function CommitArea({
// that are still valid when the primary is disabled.
primaryAction.disabled && 'opacity-50'
)}
- aria-label={translate("auto.components.right.sidebar.SourceControl.cc199ccc5f", "More commit and remote actions")}
- title={translate("auto.components.right.sidebar.SourceControl.4d6e1fd7f3", "More actions")}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.cc199ccc5f',
+ 'More commit and remote actions'
+ )}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.4d6e1fd7f3',
+ 'More actions'
+ )}
>
{showChevronSpinner ? (
@@ -5274,7 +5603,11 @@ export function CommitArea({
- {translate("auto.components.right.sidebar.SourceControl.cc199ccc5f", "More commit and remote actions")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.cc199ccc5f',
+ 'More commit and remote actions'
+ )}
+
{dropdownItems.map((entry, index) =>
@@ -5334,7 +5667,12 @@ export function CommitArea({
- {translate("auto.components.right.sidebar.SourceControl.011f9713fc", "Commit blocked")}
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.011f9713fc',
+ 'Commit blocked'
+ )}
+
{commitFailureKindLabel ? (
{commitFailureKindLabel}
@@ -5347,7 +5685,10 @@ export function CommitArea({
setCommitFailureDialogOpen(true)}
>
- {translate("auto.components.right.sidebar.SourceControl.03d238218c", "Details")}
+ {translate('auto.components.right.sidebar.SourceControl.03d238218c', 'Details')}
+
)}
@@ -5390,7 +5732,12 @@ export function CommitArea({
>
- {translate("auto.components.right.sidebar.SourceControl.a9bf7c171a", "Commit Failed")}
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.a9bf7c171a',
+ 'Commit Failed'
+ )}
+
{commitFailureSummary}
@@ -5398,7 +5745,10 @@ export function CommitArea({
- {translate("auto.components.right.sidebar.SourceControl.783a808870", "Close")}
+ {translate('auto.components.right.sidebar.SourceControl.783a808870', 'Close')}
+
@@ -5474,7 +5825,10 @@ export function CompareSummary({
return (
- {translate("auto.components.right.sidebar.SourceControl.11b5dd8e41", "Comparing against")}{summary?.baseRef ?? '…'}
+
+ {translate('auto.components.right.sidebar.SourceControl.11b5dd8e41', 'Comparing against')}
+ {summary?.baseRef ?? '…'}
+
)
}
@@ -5483,15 +5837,26 @@ export function CompareSummary({
return (
- {summary.errorMessage ?? translate("auto.components.right.sidebar.SourceControl.715d229c86", "Branch compare unavailable")}
+ {summary.errorMessage ??
+ translate(
+ 'auto.components.right.sidebar.SourceControl.715d229c86',
+ 'Branch compare unavailable'
+ )}
-
+
)
@@ -5511,17 +5876,26 @@ export function CompareSummary({
- {commitsAhead} {translate("auto.components.right.sidebar.SourceControl.3278b2767b", "ahead")}
+
+ {commitsAhead}{' '}
+ {translate('auto.components.right.sidebar.SourceControl.3278b2767b', 'ahead')}
+
@@ -5576,10 +5950,22 @@ function CompareUnavailable({
return (
- {summary.status === 'error' ? translate("auto.components.right.sidebar.SourceControl.97d8b03cdf", "Branch compare failed") : translate("auto.components.right.sidebar.SourceControl.715d229c86", "Branch compare unavailable")}
+ {summary.status === 'error'
+ ? translate(
+ 'auto.components.right.sidebar.SourceControl.97d8b03cdf',
+ 'Branch compare failed'
+ )
+ : translate(
+ 'auto.components.right.sidebar.SourceControl.715d229c86',
+ 'Branch compare unavailable'
+ )}
- {summary.errorMessage ?? translate("auto.components.right.sidebar.SourceControl.b6922abb13", "Unable to load branch compare.")}
+ {summary.errorMessage ??
+ translate(
+ 'auto.components.right.sidebar.SourceControl.b6922abb13',
+ 'Unable to load branch compare.'
+ )}
{changeBaseRefAllowed && (
@@ -5591,11 +5977,13 @@ function CompareUnavailable({
onClick={onChangeBaseRef}
>
- {translate("auto.components.right.sidebar.SourceControl.476b77745b", "Change Base Ref")}
+ {translate('auto.components.right.sidebar.SourceControl.476b77745b', 'Change Base Ref')}
+
)}
- {translate("auto.components.right.sidebar.SourceControl.286dbda4d6", "Retry")}
+ {translate('auto.components.right.sidebar.SourceControl.286dbda4d6', 'Retry')}
+
)
@@ -5635,7 +6023,9 @@ function SectionHeader({
{count}
{conflictCount > 0 && (
- · {conflictCount} {translate("auto.components.right.sidebar.SourceControl.413a3ba113", "conflict")}{conflictCount === 1 ? '' : 's'}
+ · {conflictCount}{' '}
+ {translate('auto.components.right.sidebar.SourceControl.413a3ba113', 'conflict')}
+ {conflictCount === 1 ? '' : 's'}
)}
@@ -5691,7 +6081,11 @@ function DiffCommentsInlineList({
if (comments.length === 0) {
return (
- {translate("auto.components.right.sidebar.SourceControl.ac8cbe3bf5", "Hover over a line in the diff view and click the + to add a note.")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.ac8cbe3bf5',
+ 'Hover over a line in the diff view and click the + to add a note.'
+ )}
+
)
}
@@ -5709,7 +6103,11 @@ function DiffCommentsInlineList({
onOpen(first)
}
}}
- title={translate("auto.components.right.sidebar.SourceControl.0d963bf982", "Open {{value0}}", { value0: filePath })}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.0d963bf982',
+ 'Open {{value0}}',
+ { value0: filePath }
+ )}
>
{filePath}
@@ -5717,8 +6115,16 @@ function DiffCommentsInlineList({
type="button"
className="shrink-0 rounded p-0.5 text-muted-foreground opacity-0 transition-opacity hover:text-destructive focus-visible:opacity-100 group-hover/file:opacity-100"
onClick={() => onClearFile(filePath)}
- title={translate("auto.components.right.sidebar.SourceControl.59654650d3", "Clear notes for {{value0}}", { value0: filePath })}
- aria-label={translate("auto.components.right.sidebar.SourceControl.59654650d3", "Clear notes for {{value0}}", { value0: filePath })}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.59654650d3',
+ 'Clear notes for {{value0}}',
+ { value0: filePath }
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.59654650d3',
+ 'Clear notes for {{value0}}',
+ { value0: filePath }
+ )}
>
@@ -5739,18 +6145,29 @@ function DiffCommentsInlineList({
// fire the row's open handler.
className="flex min-w-0 flex-1 cursor-pointer items-center gap-1.5 rounded text-left"
onClick={() => onOpen(c)}
- title={translate("auto.components.right.sidebar.SourceControl.0d963bf982", "Open {{value0}} ({{value1}})", { value0: c.filePath, value1: getDiffCommentLineLabel(c).toLowerCase() })}
- aria-label={translate("auto.components.right.sidebar.SourceControl.3eb9b2805e", "Open note on {{value0}}", { value0: getDiffCommentLineLabel(c).toLowerCase() })}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.0d963bf982',
+ 'Open {{value0}} ({{value1}})',
+ { value0: c.filePath, value1: getDiffCommentLineLabel(c).toLowerCase() }
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.3eb9b2805e',
+ 'Open note on {{value0}}',
+ { value0: getDiffCommentLineLabel(c).toLowerCase() }
+ )}
>
{getDiffCommentLineLabel(c, true)}
- {getDiffCommentSource(c) === "markdown" ? translate("auto.components.right.sidebar.SourceControl.94c42b252e", "MD") : translate("auto.components.right.sidebar.SourceControl.c56ba7fa06", "Diff")}
+ {getDiffCommentSource(c) === 'markdown'
+ ? translate('auto.components.right.sidebar.SourceControl.94c42b252e', 'MD')
+ : translate('auto.components.right.sidebar.SourceControl.c56ba7fa06', 'Diff')}
{c.sentAt ? (
- {translate("auto.components.right.sidebar.SourceControl.655633c08a", "Sent")}
+ {translate('auto.components.right.sidebar.SourceControl.655633c08a', 'Sent')}
+
) : null}
{c.body}
@@ -5760,8 +6177,15 @@ function DiffCommentsInlineList({
type="button"
className="shrink-0 rounded p-0.5 text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover:opacity-100"
onClick={() => void handleCopyOne(c)}
- title={translate("auto.components.right.sidebar.SourceControl.1623bf4e19", "Copy note")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.c085946bda", "Copy note on line {{value0}}", { value0: c.lineNumber })}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.1623bf4e19',
+ 'Copy note'
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.c085946bda',
+ 'Copy note on line {{value0}}',
+ { value0: c.lineNumber }
+ )}
>
{copiedId === c.id ? : }
@@ -5769,8 +6193,15 @@ function DiffCommentsInlineList({
type="button"
className="shrink-0 rounded p-0.5 text-muted-foreground opacity-0 transition-opacity hover:text-destructive group-hover:opacity-100"
onClick={() => onDelete(c.id)}
- title={translate("auto.components.right.sidebar.SourceControl.b656381c18", "Delete note")}
- aria-label={translate("auto.components.right.sidebar.SourceControl.c321542ee2", "Delete note on line {{value0}}", { value0: c.lineNumber })}
+ title={translate(
+ 'auto.components.right.sidebar.SourceControl.b656381c18',
+ 'Delete note'
+ )}
+ aria-label={translate(
+ 'auto.components.right.sidebar.SourceControl.c321542ee2',
+ 'Delete note on line {{value0}}',
+ { value0: c.lineNumber }
+ )}
>
@@ -5822,12 +6253,19 @@ export function ConflictSummaryCard({
-
{translate("auto.components.right.sidebar.SourceControl.d7a5942e41", "{{value0}}: {{value1}} unresolved", { value0: operationLabel, value1: unresolvedCount })}
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.d7a5942e41',
+ '{{value0}}: {{value1}} unresolved',
+ { value0: operationLabel, value1: unresolvedCount }
+ )}
+
- {translate("auto.components.right.sidebar.SourceControl.3eeccbb221", "Resolved files move back to normal changes after they leave the live conflict state.")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.3eeccbb221',
+ 'Resolved files move back to normal changes after they leave the live conflict state.'
+ )}
+
@@ -5844,7 +6282,8 @@ export function ConflictSummaryCard({
) : (
)}
- {translate("auto.components.right.sidebar.SourceControl.f6cb48b6fe", "Resolve with AI")}
+ {translate('auto.components.right.sidebar.SourceControl.f6cb48b6fe', 'Resolve with AI')}
+
- {translate("auto.components.right.sidebar.SourceControl.27a50fe970", "Review conflicts")}
- {(conflictOperation === "merge" || conflictOperation === "rebase") && onAbortOperation ? (
+ {translate('auto.components.right.sidebar.SourceControl.27a50fe970', 'Review conflicts')}
+
+ {(conflictOperation === 'merge' || conflictOperation === 'rebase') && onAbortOperation ? (
onAbortOperation(conflictOperation)}
>
{isAbortingOperation ? : null}
- {conflictOperation === "rebase" ? translate("auto.components.right.sidebar.SourceControl.425f138269", "Abort rebase") : translate("auto.components.right.sidebar.SourceControl.540ca8f78c", "Abort merge")}
+ {conflictOperation === 'rebase'
+ ? translate('auto.components.right.sidebar.SourceControl.425f138269', 'Abort rebase')
+ : translate('auto.components.right.sidebar.SourceControl.540ca8f78c', 'Abort merge')}
) : null}
@@ -5903,7 +6345,7 @@ export function OperationBanner({
{label}
- {(conflictOperation === "merge" || conflictOperation === "rebase") && onAbortOperation ? (
+ {(conflictOperation === 'merge' || conflictOperation === 'rebase') && onAbortOperation ? (
onAbortOperation(conflictOperation)}
>
{isAbortingOperation ? : null}
- {conflictOperation === "rebase" ? translate("auto.components.right.sidebar.SourceControl.425f138269", "Abort rebase") : translate("auto.components.right.sidebar.SourceControl.540ca8f78c", "Abort merge")}
+ {conflictOperation === 'rebase'
+ ? translate('auto.components.right.sidebar.SourceControl.425f138269', 'Abort rebase')
+ : translate('auto.components.right.sidebar.SourceControl.540ca8f78c', 'Abort merge')}
) : null}
@@ -5978,7 +6422,17 @@ function SourceControlTreeDirectoryRow({
{canDiscard && (
{
event.stopPropagation()
onRequestDiscardPaths(node.area, actionPaths.discardPaths)
@@ -5989,7 +6443,10 @@ function SourceControlTreeDirectoryRow({
{canStage && (
{
event.stopPropagation()
void onStagePaths(actionPaths.stagePaths)
@@ -6000,7 +6457,10 @@ function SourceControlTreeDirectoryRow({
{canUnstage && (
{
event.stopPropagation()
void onUnstagePaths(actionPaths.unstagePaths)
@@ -6195,7 +6655,11 @@ const UncommittedEntryRow = React.memo(function UncommittedEntryRow({
// attached, without opening the Notes tab.
{commentCount}
@@ -6219,11 +6683,20 @@ const UncommittedEntryRow = React.memo(function UncommittedEntryRow({
{
event.stopPropagation()
@@ -6234,7 +6707,7 @@ const UncommittedEntryRow = React.memo(function UncommittedEntryRow({
{canStage && (
{
event.stopPropagation()
void onStage(entry.path)
@@ -6244,7 +6717,7 @@ const UncommittedEntryRow = React.memo(function UncommittedEntryRow({
{canUnstage && (
{
event.stopPropagation()
void onUnstage(entry.path)
@@ -6264,7 +6737,14 @@ function ConflictBadge({ entry }: { entry: GitStatusEntry }): React.JSX.Element
const badge = (
{badge}
- {translate("auto.components.right.sidebar.SourceControl.03194cfff4", "Local session state derived from a conflict you opened here.")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.03194cfff4',
+ 'Local session state derived from a conflict you opened here.'
+ )}
+
)
@@ -6345,7 +6829,11 @@ function BranchEntryRow({
{commentCount > 0 && (
{commentCount}
@@ -6389,7 +6877,11 @@ function SourceControlEntryContextMenu({
- {translate("auto.components.right.sidebar.SourceControl.cc05b2d088", "Open in File Explorer")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControl.cc05b2d088',
+ 'Open in File Explorer'
+ )}
+
)
diff --git a/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialog.tsx b/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialog.tsx
index 54ff761da..dd5db5f57 100644
--- a/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialog.tsx
+++ b/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialog.tsx
@@ -56,7 +56,6 @@ export function SourceControlAgentActionDialog(
actionId,
title,
description,
- baseCommandInput,
savedCommandInputTemplate,
onOpenSettings,
startLabel = 'Start agent',
@@ -71,6 +70,7 @@ export function SourceControlAgentActionDialog(
statusCopy,
agentArgs,
commandTemplate,
+ saveLaunchRecipe,
saveTargetValue,
saveTargets,
settings,
@@ -81,14 +81,15 @@ export function SourceControlAgentActionDialog(
onSelectedAgentChange,
onAgentArgsChange,
onCommandTemplateChange,
+ onSaveLaunchRecipeChange,
onSaveAgentDefaultChange,
handleStart
} = useSourceControlAgentActionDialog(props)
return (
-
-
+
+
{title}
{description}
@@ -102,7 +103,7 @@ export function SourceControlAgentActionDialog(
agentArgs={agentArgs}
commandTemplate={commandTemplate}
savedCommandInputTemplate={savedCommandInputTemplate}
- baseCommandInput={baseCommandInput}
+ saveLaunchRecipe={saveLaunchRecipe}
saveTargetValue={saveTargetValue}
saveTargets={saveTargets}
settings={settings}
@@ -115,8 +116,10 @@ export function SourceControlAgentActionDialog(
onSelectedAgentChange={onSelectedAgentChange}
onAgentArgsChange={onAgentArgsChange}
onCommandTemplateChange={onCommandTemplateChange}
+ onSaveLaunchRecipeChange={onSaveLaunchRecipeChange}
onSaveAgentDefaultChange={onSaveAgentDefaultChange}
onOpenSettings={onOpenSettings}
+ onCancel={() => handleOpenChange(false)}
onStart={() => void handleStart()}
/>
diff --git a/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialogForm.tsx b/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialogForm.tsx
index 75a795bca..442764308 100644
--- a/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialogForm.tsx
+++ b/src/renderer/src/components/right-sidebar/SourceControlAgentActionDialogForm.tsx
@@ -17,7 +17,6 @@ import { cn } from '@/lib/utils'
import type { SourceControlLaunchActionId } from '../../../../shared/source-control-ai-actions'
import type { SourceControlAiWriteTarget } from '../../../../shared/source-control-ai-recipe-save'
import type { GlobalSettings, Repo, TuiAgent } from '../../../../shared/types'
-import { SourceControlActionVariableChips } from '../source-control/SourceControlActionVariableChips'
import { sourceControlActionRecipeMatchesTarget } from './source-control-action-recipe-match'
import { translate } from '@/i18n/i18n'
@@ -36,7 +35,7 @@ type SourceControlAgentActionDialogFormProps = {
agentArgs: string
commandTemplate: string
savedCommandInputTemplate?: string | null
- baseCommandInput: string
+ saveLaunchRecipe: boolean
saveTargetValue: string
saveTargets: { value: string; label: string }[]
settings: GlobalSettings | null
@@ -49,8 +48,10 @@ type SourceControlAgentActionDialogFormProps = {
onSelectedAgentChange: (agent: TuiAgent | null) => void
onAgentArgsChange: (value: string) => void
onCommandTemplateChange: (value: string) => void
+ onSaveLaunchRecipeChange: (value: boolean) => void
onSaveAgentDefaultChange: (value: string) => void
onOpenSettings?: () => void
+ onCancel: () => void
onStart: () => void
}
@@ -77,7 +78,7 @@ export function SourceControlAgentActionDialogForm({
agentArgs,
commandTemplate,
savedCommandInputTemplate,
- baseCommandInput,
+ saveLaunchRecipe,
saveTargetValue,
saveTargets,
settings,
@@ -90,10 +91,14 @@ export function SourceControlAgentActionDialogForm({
onSelectedAgentChange,
onAgentArgsChange,
onCommandTemplateChange,
+ onSaveLaunchRecipeChange,
onSaveAgentDefaultChange,
onOpenSettings,
+ onCancel,
onStart
}: SourceControlAgentActionDialogFormProps): React.JSX.Element {
+ const defaultCommandTemplate = savedCommandInputTemplate ?? '{basePrompt}'
+ const commandTemplateIncludesBasePrompt = commandTemplate.includes('{basePrompt}')
const selectedRecipe = selectedAgent
? {
agentId: selectedAgent,
@@ -118,12 +123,25 @@ export function SourceControlAgentActionDialogForm({
)
)
const showSaveLaunchRecipe = canSaveAgentDefault && selectedAgent && !allLaunchRecipesAlreadySaved
+ const saveScopeTargets = saveTargets.filter((target) => target.value !== 'none')
+ const effectiveStartLabel =
+ showSaveLaunchRecipe && saveLaunchRecipe
+ ? translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.5421a96acb',
+ 'Save & start agent'
+ )
+ : startLabel
return (
- <>
-
+
+
-
{translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.15c5d85706", "Agent")}
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.15c5d85706',
+ 'Agent'
+ )}
+
{hasEnabledAgents || selectedAgent ? (
) : (
- {detecting ? translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.c7ff8cef11", "Detecting agents...") : translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.1d47db9bf0", "No enabled agents")}
+
+ {detecting
+ ? translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.c7ff8cef11',
+ 'Detecting agents...'
+ )
+ : translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.1d47db9bf0',
+ 'No enabled agents'
+ )}
+
{onOpenSettings ? (
- {translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.b99c33cec5", "Settings")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.b99c33cec5',
+ 'Settings'
+ )}
+
) : null}
)}
@@ -152,63 +184,131 @@ export function SourceControlAgentActionDialogForm({
- {translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.bc8dc39f4b", "CLI arguments")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.bc8dc39f4b',
+ 'CLI arguments'
+ )}
+
onAgentArgsChange(event.target.value)}
className="h-8 font-mono text-xs"
/>
-
-
- {translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.f4f3c9ca4a", "Command template")}
+
+
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.f4f3c9ca4a',
+ 'Prompt template'
+ )}
+
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.1bb611240f',
+ "Use {basePrompt} for Orca's default prompt."
+ )}
+
+
onCommandTemplateChange(savedCommandInputTemplate ?? '{basePrompt}')}
+ disabled={commandTemplate === defaultCommandTemplate}
+ onClick={() => onCommandTemplateChange(defaultCommandTemplate)}
>
- {translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.7ec6abbf2a", "Reset")}
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.7ec6abbf2a',
+ 'Reset'
+ )}
+
{showSaveLaunchRecipe ? (
-
-
{translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.f84657c925", "Save launch recipe")}
-
-
-
-
-
- {saveTargets.map((target) => (
-
- {target.label}
-
- ))}
-
-
+
+
+ onSaveLaunchRecipeChange(event.target.checked)}
+ className="mt-0.5 size-3.5 accent-foreground"
+ />
+
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.c29f9cf266',
+ "Save this prompt and don't show this review next time"
+ )}
+
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.6cefcdfba1',
+ 'You can change it later in Source Control AI settings.'
+ )}
+
+
+
+ {saveLaunchRecipe ? (
+
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.013c9ac04a',
+ 'Save for'
+ )}
+
+
+
+
+
+
+ {saveScopeTargets.map((target) => (
+
+ {target.label}
+
+ ))}
+
+
+
+ ) : null}
) : null}
@@ -233,7 +333,11 @@ export function SourceControlAgentActionDialogForm({
{deliveryPlan.summary}
- {translate("auto.components.right.sidebar.SourceControlAgentActionDialogForm.1bc0bdbb5e", "Launch:")}{deliveryPlan.commandLabel}
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.1bc0bdbb5e',
+ 'Launch:'
+ )}
+ {deliveryPlan.commandLabel}
{deliveryPlan.caveat}
@@ -243,15 +347,21 @@ export function SourceControlAgentActionDialogForm({
+
+ {translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialogForm.ea4788705e',
+ 'Cancel'
+ )}
+
{isStarting ? (
) : (
)}
- {startLabel}
+ {effectiveStartLabel}
- >
+
)
}
diff --git a/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-result.ts b/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-result.ts
index 117ad7450..c061873de 100644
--- a/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-result.ts
+++ b/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-result.ts
@@ -13,6 +13,7 @@ export type UseSourceControlAgentActionDialogResult = {
statusCopy: string | null
agentArgs: string
commandTemplate: string
+ saveLaunchRecipe: boolean
saveTargetValue: string
saveTargets: { value: string; label: string }[]
settings: ReturnType
['settings']
@@ -23,6 +24,7 @@ export type UseSourceControlAgentActionDialogResult = {
onSelectedAgentChange: (agent: TuiAgent | null) => void
onAgentArgsChange: (value: string) => void
onCommandTemplateChange: (value: string) => void
+ onSaveLaunchRecipeChange: (value: boolean) => void
onSaveAgentDefaultChange: (value: string) => void
handleStart: () => Promise
}
diff --git a/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-support.ts b/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-support.ts
index dc8aaaf6c..ac0448b70 100644
--- a/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-support.ts
+++ b/src/renderer/src/components/right-sidebar/source-control-agent-action-dialog-support.ts
@@ -33,13 +33,16 @@ export function buildSourceControlAgentSaveTargets(repoId?: string | null): {
value: 'repo',
label: translate(
'auto.components.right.sidebar.SourceControlAgentActionDialog.808cfe0a3b',
- 'Save for this repository only'
+ 'This repository'
)
})
}
targets.push({
value: 'global',
- label: repoId ? 'Save as default for all repositories' : 'Save as global default'
+ label: translate(
+ 'auto.components.right.sidebar.SourceControlAgentActionDialog.38b899cc02',
+ 'All repositories'
+ )
})
return targets
}
diff --git a/src/renderer/src/components/right-sidebar/useSourceControlAgentActionDialog.ts b/src/renderer/src/components/right-sidebar/useSourceControlAgentActionDialog.ts
index 8f388a830..ad62bfae9 100644
--- a/src/renderer/src/components/right-sidebar/useSourceControlAgentActionDialog.ts
+++ b/src/renderer/src/components/right-sidebar/useSourceControlAgentActionDialog.ts
@@ -55,6 +55,7 @@ export function useSourceControlAgentActionDialog({
})
const [isStarting, setIsStarting] = useState(false)
const saveTargets = useMemo(() => buildSourceControlAgentSaveTargets(repoId), [repoId])
+ const [saveLaunchRecipe, setSaveLaunchRecipe] = useState(true)
const [saveTargetValue, setSaveTargetValue] = useState(DEFAULT_SAVE_TARGET_VALUE)
const disabledAgents = settings?.disabledTuiAgents
@@ -86,6 +87,7 @@ export function useSourceControlAgentActionDialog({
setCommandTemplate(savedCommandInputTemplate ?? '{basePrompt}')
setAgentArgs(savedAgentArgs ?? '')
setSelectedAgent(savedAgentId ?? null)
+ setSaveLaunchRecipe(true)
setSaveTargetValue(DEFAULT_SAVE_TARGET_VALUE)
let stale = false
void refreshDetectedAgents().then((nextAgents) => {
@@ -121,6 +123,7 @@ export function useSourceControlAgentActionDialog({
(nextOpen: boolean) => {
if (!nextOpen) {
setDeliveryPlan({ status: 'idle' })
+ setSaveLaunchRecipe(true)
setSaveTargetValue(DEFAULT_SAVE_TARGET_VALUE)
}
onOpenChange(nextOpen)
@@ -202,7 +205,7 @@ export function useSourceControlAgentActionDialog({
trimmedCommandInput,
agentArgs,
commandTemplate,
- saveTargetValue,
+ saveTargetValue: saveLaunchRecipe ? saveTargetValue : 'none',
actionId,
repoId,
settings,
@@ -238,6 +241,7 @@ export function useSourceControlAgentActionDialog({
refreshDetectedAgents,
repo,
repoId,
+ saveLaunchRecipe,
saveTargetValue,
settings,
selectedAgent,
@@ -265,6 +269,10 @@ export function useSourceControlAgentActionDialog({
setCommandTemplate(value)
setDeliveryPlan({ status: 'idle' })
}, [])
+ const onSaveLaunchRecipeChange = useCallback((value: boolean) => {
+ setSaveLaunchRecipe(value)
+ setDeliveryPlan({ status: 'idle' })
+ }, [])
return {
handleOpenChange,
@@ -275,6 +283,7 @@ export function useSourceControlAgentActionDialog({
statusCopy,
agentArgs,
commandTemplate,
+ saveLaunchRecipe,
saveTargetValue,
saveTargets,
settings,
@@ -285,6 +294,7 @@ export function useSourceControlAgentActionDialog({
onSelectedAgentChange,
onAgentArgsChange,
onCommandTemplateChange,
+ onSaveLaunchRecipeChange,
onSaveAgentDefaultChange: setSaveTargetValue,
handleStart
}
diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json
index c81955e74..41bd8ec3d 100644
--- a/src/renderer/src/i18n/locales/en.json
+++ b/src/renderer/src/i18n/locales/en.json
@@ -1034,7 +1034,7 @@
"3912daf310": "This pull request has no reported checks yet.",
"45877f5089": "No checks found",
"85e62c5266": "Started an AI agent for the broken checks.",
- "ddfd42f460": "Choose the agent and edit the full command input before launch.",
+ "ddfd42f460": "Review the prompt before starting an agent.",
"a053bdd082": "Fix Broken Checks With AI",
"1b14d0a69c": "Open in GitHub",
"1550675e5f": "No inline output is available for this check.",
@@ -7159,7 +7159,7 @@
"b5dd73a105": "Select a workspace to view checks",
"a4ef4e0832": "No workspace selected",
"5594400d73": "No broken checks to fix.",
- "abf59262fb": "Review and edit the full command input before starting an agent.",
+ "abf59262fb": "Review the prompt before starting an agent.",
"4ede779461": "Resolve Review Conflicts With AI",
"3b203c62f8": "This will permanently remove the comment from the PR.",
"ea9b649ce3": "Delete comment?",
@@ -7401,7 +7401,7 @@
"37a81f29ad": "Generating commit message. Click to stop.",
"b94112eb9e": "Commit message",
"0d0a8359d3": "Message",
- "15b7f210d7": "Choose the agent and edit the full command input before launch.",
+ "15b7f210d7": "Review the prompt before starting an agent.",
"054ead86b1": "Fix Commit Failure With AI",
"9e5ccd00aa": "Commit failure context unavailable",
"f0a2dc9e46": "Customize launch...",
@@ -7428,7 +7428,7 @@
"1a6a6e0bc5": "Generate Hosted Review Details",
"6b122529d4": "Generate Commit Message",
"e48caaf0dd": "Started an AI agent for the conflicts.",
- "901140f47d": "Review and edit the full command input before starting an agent.",
+ "901140f47d": "Review the prompt before starting an agent.",
"19652ddd76": "Resolve Conflicts With AI",
"c9ad22888e": "Pick the branch compare target for this repository.",
"574d2f4413": "Clear Notes",
@@ -7506,14 +7506,22 @@
"SourceControlAgentActionDialog": {
"8e856842d1": "Could not start the selected agent.",
"c075d00de1": "Unable to resolve the workspace connection.",
- "808cfe0a3b": "Save for this repository only",
+ "38b899cc02": "All repositories",
+ "808cfe0a3b": "This repository",
"994cddd1f7": "Don't save"
},
"SourceControlAgentActionDialogForm": {
- "1bc0bdbb5e": "Launch:",
- "f84657c925": "Save launch recipe",
+ "013c9ac04a": "Save for",
+ "1bb611240f": "Use {basePrompt} for Orca's default prompt.",
+ "23280cbab1": "This template does not include {basePrompt}, so the agent will not receive Orca's default prompt.",
+ "5421a96acb": "Save & start agent",
+ "6cefcdfba1": "You can change it later in Source Control AI settings.",
+ "c29f9cf266": "Save this prompt and don't show this review next time",
+ "d8f40128ee": "{basePrompt} is Orca's default prompt.",
+ "ea4788705e": "Cancel",
"7ec6abbf2a": "Reset",
- "f4f3c9ca4a": "Command template",
+ "f4f3c9ca4a": "Prompt template",
+ "1bc0bdbb5e": "Launch:",
"fe119187bb": "--model sonnet",
"bc8dc39f4b": "CLI arguments",
"b99c33cec5": "Settings",