Skip to content

Commit bb0f9d1

Browse files
committed
Merge branch 'default-shell'
2 parents 7fcd508 + 14acb93 commit bb0f9d1

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

src/renderer/App.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,21 @@ export default function App(): JSX.Element {
356356
const claudeTabId = makeTerminalId('claude', activeWorktreeId)
357357
const pendingPrompt = pendingPromptsRef.current[activeWorktreeId]
358358
delete pendingPromptsRef.current[activeWorktreeId]
359-
const tabs: TerminalTab[] = [{
360-
id: claudeTabId,
361-
type: 'claude',
362-
label: 'Claude',
363-
sessionId: crypto.randomUUID(),
364-
initialPrompt: pendingPrompt || undefined
365-
}]
359+
const shellTabId = `shell-${activeWorktreeId}-${Date.now()}`
360+
const tabs: TerminalTab[] = [
361+
{
362+
id: claudeTabId,
363+
type: 'claude',
364+
label: 'Claude',
365+
sessionId: crypto.randomUUID(),
366+
initialPrompt: pendingPrompt || undefined
367+
},
368+
{
369+
id: shellTabId,
370+
type: 'shell',
371+
label: 'Shell'
372+
}
373+
]
366374
return { ...prev, [activeWorktreeId]: tabs }
367375
})
368376

0 commit comments

Comments
 (0)