Fix automation setup verify failures

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-06-26 11:08:26 -07:00
co-authored by Orca
parent 5f98f72134
commit d4748c0581
2 changed files with 7 additions and 7 deletions
@@ -35,10 +35,9 @@ type BackgroundTerminalLaunch = {
color?: string
}
const SETUP_TAB_TITLE = translate(
'auto.lib.launch.worktree.background.terminals.setupTitle',
'Setup'
)
function getSetupTabTitle(): string {
return translate('auto.lib.launch.worktree.background.terminals.setupTitle', 'Setup')
}
export type LaunchWorktreeBackgroundTerminalsArgs = {
worktreeId: string
@@ -211,7 +210,7 @@ async function addSetupSplit(args: {
args.tab.primary,
{ leafId: setupLeafId, ptyId: setupPtyId },
args.direction,
SETUP_TAB_TITLE
getSetupTabTitle()
)
)
registerBackgroundPaneBuffer(args.tab.tabId, setupLeafId, setupPtyId)
@@ -286,7 +285,7 @@ export async function launchWorktreeBackgroundTerminals(
worktree,
connectionId,
launch: {
title: SETUP_TAB_TITLE,
title: getSetupTabTitle(),
command: buildSetupCommand(args.setup),
env: args.setup.envVars
}
@@ -235,7 +235,8 @@ describe('staged background worktree creation', () => {
undefined,
undefined,
undefined,
undefined
undefined,
{ activateCreatedTabs: false }
)
expect(queueNewWorkspaceTerminalFocus).not.toHaveBeenCalled()
expect(store.removePendingWorktreeCreation).toHaveBeenCalledWith('creation-1')