mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 16:03:26 +00:00
Fix automation setup verify failures
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user