File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments