optimize: terminal spawn lifecycle to eliminate output race condition
Move PTY spawn from context layer to view layer so event subscription happens before spawn, preventing loss of initial terminal output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,8 @@ export function TerminalPanel() {
|
||||
<TerminalView
|
||||
key={tab.id}
|
||||
terminalId={tab.id}
|
||||
workingDir={tab.workingDir}
|
||||
initialCommand={tab.initialCommand}
|
||||
isActive={tab.id === activeTabId}
|
||||
isVisible={isOpen}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user