ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import assert from 'assert';
import { DeferredPromise } from '../../../../../base/common/async.js';
import { DisposableStore, Disposable } from '../../../../../base/common/lifecycle.js';
import { URI } from '../../../../../base/common/uri.js';
import { Emitter } from '../../../../../base/common/event.js';
import { constObservable, observableValue } from '../../../../../base/common/observable.js';
import { IAgentHostTerminalCreateOptions, IAgentHostTerminalService } from '../../../../../workbench/contrib/terminal/browser/agentHostTerminalService.js';
ITerminalProfileService
ISessionsProvidersService
ensureNoDisposablesAreLeakedInTestSuite
mock
TestInstantiationService
NullLogService ILogService
ITerminalInstance ITerminalService
ITerminalCapabilityStore ICommandDetectionCapability TerminalCapability
toAgentHostUri
AgentSessionProviders
ChatInteractivity IChat ISession ISessionWorkspace
Codicon
SessionsTerminalContribution
TestPathService
IPathService
IFileService
IContextKeyService
MockContextKeyService
IViewsService
IActiveSession ISessionsChangeEvent ISessionsManagementService
ISessionsService
ISessionsProvider
infos
traces
override message args
infosmessage args
override message args
tracesmessage args
ITerminalInstance
_testCommandHistory timestamp
disposed
barrier
shellLaunchConfig ITerminalInstance
IActiveSession
loading ReturnType observableValue
isArchived ReturnType observableValue
worktreePending ReturnType observableValue
opts
repository
worktree
providerType
isArchived
loading
worktreePending
sessionId
providerId
TestActiveSession
folder optsrepository optsworktree
root optsrepository optsworktree
workingDirectory optsworktree optsrepository
name
description
gitRepository uri optsrepository optsworktree workTreeUri optsworktree baseBranchName gitHubInfo
chat
resource
createdAt
title
updatedAt
status
changes
modelId
modelSource
mode
isArchived optsisArchived
isRead
interactivity ChatInteractivityFull
checkpoints
lastTurnEnd
description
satisfies IChat
session
sessionId optssessionId
resource chatresource
providerId optsproviderId
sessionType optsproviderType AgentSessionProvidersLocal
icon Codiconcopilot
createdAt chatcreatedAt
workspace folder
uri folderroot
label
icon Codiconrepo
folders folder
requiresWorkspaceTrust
isVirtualWorkspace
satisfies ISessionWorkspace
title chattitle
updatedAt chatupdatedAt
status chatstatus
changesets
changes chatchanges
modelId chatmodelId
mode chatmode
loading optsloading
worktreePending optsworktreePending
isArchived chatisArchived
isRead chatisRead
lastTurnEnd chatlastTurnEnd
description chatdescription
chats chat
activeChat chat
mainChat chat
capabilities supportsMultipleChats
isCreated
sticky
openChats chat
closedChats
lastClosedChat
visibleChatTabs chat
shouldShowChatTabs
satisfies TestActiveSession
session
opts repository worktree providerType sessionId ISession
folder optsrepository optsworktree
root optsrepository optsworktree
workingDirectory optsworktree optsrepository
name
description
gitRepository uri optsrepository optsworktree workTreeUri optsworktree baseBranchName gitHubInfo
chat IChat
resource
createdAt
title
updatedAt
status
changes
modelId
modelSource
mode
isArchived
isRead
interactivity ChatInteractivityFull
checkpoints
lastTurnEnd
description
satisfies IChat
session
sessionId optssessionId
resource chatresource
providerId
sessionType optsproviderType AgentSessionProvidersLocal
icon Codiconcopilot
createdAt chatcreatedAt
workspace folder
uri folderroot
label
icon Codiconrepo
folders folder
requiresWorkspaceTrust
ISessionWorkspace
title chattitle
updatedAt chatupdatedAt
status chatstatus
changesets
changes chatchanges
modelId chatmodelId
mode chatmode
loading
isArchived chatisArchived
isRead chatisRead
lastTurnEnd chatlastTurnEnd
description chatdescription
chats chat
mainChat chat
capabilities supportsMultipleChats
satisfies ISession
session
id cwd TestTerminalInstance
commandHistory timestamp
isDisposed
initialCwdBarrier
shellLaunchConfig ITerminalInstance ITerminalInstance
capabilities
cap TerminalCapability
cap TerminalCapabilityCommandDetection commandHistorylength
commands commandHistory ICommandDetectionCapability
ITerminalCapabilityStore
instanceId id
isDisposed
shellLaunchConfig
initialCwdBarrier
cwd
capabilities
_testCommandHistory commandHistory
disposed
isDisposed disposed
barrier
initialCwdBarrier barrier
value ITerminalInstance
shellLaunchConfig value
TestTerminalInstance
instance ITerminalInstance timestamp
instance TestTerminalInstance_testCommandHistory timestamp
store
contribution SessionsTerminalContribution
activeSessionObs ReturnType observableValueIActiveSession
onDidChangeSessions EmitterISessionsChangeEvent
onDidReplaceSession Emitter from ISession to ISession
onDidReplaceNewDraftSession Emitter from ISession to ISession
onDidCreateInstance EmitterITerminalInstance
onDidDisposeInstance EmitterITerminalInstance
createdTerminals cwd
agentHostTerminalAddresses
terminalCreationBarriers Map DeferredPromise
terminalCreationStarted
activeInstanceSet
activeInstanceId
focusCalls
disposedInstances ITerminalInstance
nextInstanceId
terminalInstances Map ITerminalInstance
backgroundedInstances Set
moveToBackgroundCalls
showBackgroundCalls
disposeOnCreatePaths Set
defaultCwdCalls
vetoSafeDispose
safeDisposeBarrier DeferredPromise
logService TestLogService
allSessions ISession
sessionProviders Map ISessionsProvider
instantiationService TestInstantiationService
uri
createdTerminals
agentHostTerminalAddresses
terminalCreationBarriers
terminalCreationStarted
activeInstanceSet
activeInstanceId
focusCalls
disposedInstances
nextInstanceId
terminalInstances
backgroundedInstances
moveToBackgroundCalls
showBackgroundCalls
disposeOnCreatePaths
defaultCwdCalls
vetoSafeDispose
safeDisposeBarrier
logService
allSessions
sessionProviders
instantiationService store
activeSessionObs
onDidChangeSessions store
onDidReplaceSession store
onDidReplaceNewDraftSession store
onDidCreateInstance store
onDidDisposeInstance store
instantiationServiceILogService logService
instantiationServiceISessionsManagementService
override onDidChangeSessions onDidChangeSessionsevent
override onDidReplaceSession onDidReplaceSessionevent
override onDidReplaceNewDraftSession onDidReplaceNewDraftSessionevent
override ISession allSessions
instantiationServiceISessionsService
override activeSession activeSessionObs
instantiationServiceITerminalService
override onDidCreateInstance onDidCreateInstanceevent
override onDidDisposeInstance onDidDisposeInstanceevent
override ITerminalInstance
terminalInstances
override ITerminalInstance
terminalInstancesi backgroundedInstancesiinstanceId
override ITerminalInstance
activeInstanceId terminalInstancesactiveInstanceId
override opts ITerminalInstance
cwdUri optsconfigcwd
cwdStr cwdUrifsPath
terminalCreationStartedcwdStr
terminalCreationBarrierscwdStrp
id nextInstanceId
instance id cwdStr
createdTerminals cwd optsconfigcwd
terminalInstancesid instance
disposeOnCreatePathscwdStr
instance
terminalInstancesid
instance
override id ITerminalInstance
terminalInstancesid
override instance ITerminalInstance
activeInstanceSetinstanceinstanceId
activeInstanceId instanceinstanceId
override
focusCalls
override instance ITerminalInstance
safeDisposeBarrierp
vetoSafeDispose
disposedInstancesinstance
instance TestTerminalInstance
terminalInstancesinstanceinstanceId
backgroundedInstancesinstanceinstanceId
activeInstanceId instanceinstanceId
activeInstanceId
override instance ITerminalInstance
backgroundedInstancesinstanceinstanceId
moveToBackgroundCallsinstanceinstanceId
override instance ITerminalInstance
backgroundedInstancesinstanceinstanceId
showBackgroundCallsinstanceinstanceId
instantiationServiceIPathService
instantiationServiceIFileService
override resource resource
instantiationServiceIAgentHostTerminalService
override profiles
override
override cwd defaultCwdCallscwd
override address options IAgentHostTerminalCreateOptions ITerminalInstance
cwd optionscwd optionscwd optionscwd
cwd
instance nextInstanceId cwdfsPath
agentHostTerminalAddressesaddress
createdTerminals cwd
terminalInstancesinstanceinstanceId instance
instance
instantiationServiceITerminalProfileService
override DisposableNone
instantiationServiceISessionsProvidersService
override providerId
sessionProvidersproviderId
instantiationServiceIContextKeyService store
instantiationServiceIViewsService
override
override onDidChangeViewVisibility store event
contribution storeinstantiationServiceSessionsTerminalContribution
store
worktreeUri
session worktree worktreeUri repository providerType AgentSessionProvidersBackground
activeSessionObssession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath worktreeUrifsPath
repoUri
session repository repoUri providerType AgentSessionProvidersBackground
activeSessionObssession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath repoUrifsPath
worktreeUri
uri urifsPath worktreeUrifsPath
session worktree worktreeUri providerType AgentSessionProvidersLocal
activeSessionObssession
assertcreatedTerminalslength
worktreeUri
exists
uri urifsPath worktreeUrifsPath exists
session worktree worktreeUri providerType AgentSessionProvidersLocal
activeSessionObssession
assertcreatedTerminalslength
exists
activeSessionObs
activeSessionObssession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath worktreeUrifsPath
worktreeUri
session worktree worktreeUri providerType AgentSessionProvidersLocal
activeSessionObssession
assertcreatedTerminalslength
session worktree repository providerType AgentSessionProvidersCloud
activeSessionObssession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath fsPath
session worktree providerType AgentSessionProvidersLocal
activeSessionObssession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath fsPath
session repository
activeSessionObssession IActiveSession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath fsPath
session1 providerType AgentSessionProvidersCloud sessionId
activeSessionObssession1
assertcreatedTerminalslength
session2 providerType AgentSessionProvidersLocal sessionId
activeSessionObssession2
assertcreatedTerminalslength
activeSessionObs
assertcreatedTerminalslength
worktreeUri
session worktree worktreeUri providerType AgentSessionProvidersBackground loading
activeSessionObssession
assertcreatedTerminalslength
assertdefaultCwdCalls
sessionloading
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath worktreeUrifsPath
worktreeUri
session
worktree worktreeUri
providerType AgentSessionProvidersBackground
worktreePending
activeSessionObssession
assertcreatedTerminalslength
sessionworktreePending
assertcreatedTerminalsterminal terminalcwdfsPath worktreeUrifsPath
worktreeUri
session
worktree worktreeUri
providerType AgentSessionProvidersBackground
creationBarrier
terminalCreationBarriersworktreeUrifsPath creationBarrier
activeSessionObssession
sessionworktreePending
creationBarrier
sessionworktreePending
assert
created createdTerminalsterminal terminalcwdfsPath
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
created worktreeUrifsPath worktreeUrifsPath
disposed
remaining
assertdefaultCwdCallsfsPath worktreeUrifsPath
worktreeUri
session1 sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
activeSessionObssession1
assertcreatedTerminalslength
session2 sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
activeSessionObssession2
assertcreatedTerminalslength
worktree1
worktree2
activeSessionObs sessionId worktree worktree1 providerType AgentSessionProvidersBackground
activeSessionObs sessionId worktree worktree2 providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath worktree2fsPath
cwd
contributioncwd
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath cwdfsPath
assertactiveInstanceSetlength
assertfocusCalls
cwd
contributioncwd
assertfocusCalls
cwd
contributioncwd
contributioncwd
assertcreatedTerminalslength
assertactiveInstanceSetlength
contribution
contribution
assertcreatedTerminalslength
contribution
contribution
assertcreatedTerminalslength
cwd
disposeOnCreatePathscwdfsPath
instances contributioncwd
assertinstanceslength
assertactiveInstanceSetlength
assertlogServicetracesmessage message
cwd
sessionProviders
override id
remoteAddress
currentSession
sessionId
providerId
worktree cwd
providerType AgentSessionProvidersBackground
firstTerminal contributioncwd currentSession
latestResult ITerminalInstance firstTerminal
i i i
nextSession
sessionId
providerId
worktree cwd
providerType AgentSessionProvidersBackground
onDidReplaceNewDraftSession from currentSession to nextSession
latestResult contributioncwd nextSession
currentSession nextSession
assert
created createdTerminalslength
agentHostAddresses agentHostTerminalAddresses
transferredTerminalId latestResultinstanceId
disposed disposedInstancesinstance instanceinstanceId
created
agentHostAddresses
transferredTerminalId firstTerminalinstanceId
disposed
worktreeUri
session
worktree worktreeUri
providerType AgentSessionProvidersBackground
creationBarrier
terminalCreationBarriersworktreeUrifsPath creationBarrier
activeSessionObssession
sessionworktreePending
sessionworktreePending
creationBarrier
assert
created createdTerminalsterminal terminalcwdfsPath
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
created worktreeUrifsPath worktreeUrifsPath
disposed
remaining
cwd
firstSession sessionId worktree cwd providerType AgentSessionProvidersBackground
secondSession sessionId worktree cwd providerType AgentSessionProvidersBackground
first cwdfsPath
second cwdfsPath
terminalInstancesfirstinstanceId first
terminalInstancessecondinstanceId second
nextInstanceId
contributioncwd firstSession
onDidReplaceNewDraftSession from firstSession to secondSession
result contributioncwd secondSession
assert
result resultinstance instanceinstanceId
created createdTerminalslength
disposed disposedInstancesinstance instanceinstanceId
result
created
disposed
firstCwd
secondCwd
thirdSession sessionId worktree firstCwd providerType AgentSessionProvidersBackground
firstSession sessionId worktree firstCwd providerType AgentSessionProvidersBackground
secondSession sessionId worktree secondCwd providerType AgentSessionProvidersBackground
firstTerminal contributionfirstCwd firstSession
firstTerminal
onDidReplaceNewDraftSession from firstSession to secondSession
activeSessionObssecondSession
secondTerminal terminalInstancesactiveInstanceId
onDidReplaceNewDraftSession from secondSession to thirdSession
activeSessionObsthirdSession
thirdTerminal terminalInstancesactiveInstanceId
assert
createdCwds createdTerminalsterminal terminalcwdfsPath
firstStillAlive terminalInstancesfirstTerminalinstanceId
secondStillAlive secondTerminal terminalInstancessecondTerminalinstanceId
thirdTerminalId thirdTerminalinstanceId
activeTerminalId activeInstanceId
backgrounded moveToBackgroundCalls
disposed disposedInstancesinstance instanceinstanceId
createdCwds firstCwdfsPath secondCwdfsPath firstCwdfsPath
firstStillAlive
secondStillAlive
thirdTerminalId
activeTerminalId
backgrounded
disposed
cwd
sessionProviders
override id
remoteAddress
sessionProviders
override id
remoteAddress
firstSession
sessionId
providerId
worktree cwd
providerType AgentSessionProvidersBackground
secondSession
sessionId
providerId
worktree cwd
providerType AgentSessionProvidersBackground
firstTerminal contributioncwd firstSession
onDidReplaceNewDraftSession from firstSession to secondSession
activeSessionObssecondSession
secondTerminal terminalInstancesactiveInstanceId
assert
created createdTerminalslength
agentHostAddresses agentHostTerminalAddresses
firstStillAlive terminalInstancesfirstTerminalinstanceId
secondTerminalId secondTerminalinstanceId
backgrounded moveToBackgroundCalls
disposed disposedInstancesinstance instanceinstanceId
created
agentHostAddresses
firstStillAlive
secondTerminalId
backgrounded
disposed
firstCwd
secondCwd
firstSession sessionId worktree firstCwd providerType AgentSessionProvidersBackground
secondSession sessionId worktree secondCwd providerType AgentSessionProvidersBackground
firstTerminal contributionfirstCwd firstSession
onDidReplaceNewDraftSession from firstSession to secondSession
result contributionfirstCwd
assert
result resultinstance instanceinstanceId
created createdTerminalslength
result firstTerminalinstanceId
created
firstCwd
secondCwd
firstSession sessionId worktree firstCwd providerType AgentSessionProvidersBackground
secondSession sessionId worktree secondCwd providerType AgentSessionProvidersBackground
creationBarrier
terminalCreationBarriersfirstCwdfsPath creationBarrier
operation contributionfirstCwd firstSession
assertterminalCreationStarted firstCwdfsPath
onDidReplaceNewDraftSession from firstSession to secondSession
creationBarrier
result operation
assert
result resultinstance instanceinstanceId
disposed disposedInstancesinstance instanceinstanceId
activated activeInstanceSet
remaining terminalInstances
result
disposed
activated
remaining
firstCwd
secondCwd
firstSession sessionId worktree firstCwd providerType AgentSessionProvidersBackground
secondSession sessionId worktree secondCwd providerType AgentSessionProvidersBackground
cwdBarrier
existing firstCwdfsPath
existingcwdBarrierp
terminalInstancesexistinginstanceId existing
nextInstanceId
operation contributionfirstCwd firstSession
onDidReplaceNewDraftSession from firstSession to secondSession
cwdBarrier
result operation
assert
result resultinstance instanceinstanceId
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
result
disposed
remaining
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
otherSession sessionId worktree providerType AgentSessionProvidersBackground
activeSessionObsotherSession
moveToBackgroundCallslength
session
sessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
onDidChangeSessions added removed changed session
assert
disposed disposedInstancesinstance instanceinstanceId
backgrounded moveToBackgroundCalls
disposed
backgrounded
worktreeUri
session
sessionId
worktree worktreeUri
providerType AgentSessionProvidersBackground
contributionworktreeUri session
assertactiveInstanceId
onDidChangeSessions
added
removed
changed
sessionId sessionsessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
worktreeUri
session
sessionId
worktree worktreeUri
providerType AgentSessionProvidersBackground
activeSessionObssession
assertactiveInstanceId
safeDisposeBarrier
sessionisArchived
onDidChangeSessions added removed changed session
sessionisArchived
safeDisposeBarrier
assert
created createdTerminalsterminal terminalcwdfsPath
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
activeInstanceId
created worktreeUrifsPath worktreeUrifsPath
disposed
remaining
activeInstanceId
worktreeUri
restoredTerminal nextInstanceId worktreeUrifsPath
restoredTerminal attachPersistentProcess id ITerminalInstance
terminalInstancesrestoredTerminalinstanceId restoredTerminal
onDidChangeSessions
added
removed
changed
sessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
repositoryUri
untrackedTerminal nextInstanceId repositoryUrifsPath
untrackedTerminal attachPersistentProcess id ITerminalInstance
terminalInstancesuntrackedTerminalinstanceId untrackedTerminal
onDidChangeSessions
added
removed
changed
sessionId
isArchived
repository repositoryUri
providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
worktreeUri
untrackedTerminal nextInstanceId
untrackedTerminal attachPersistentProcess id ITerminalInstance
terminalInstancesuntrackedTerminalinstanceId untrackedTerminal
onDidChangeSessions
added
removed
changed
sessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
remoteWorktree
untrackedTerminal nextInstanceId
untrackedTerminal attachPersistentProcess id ITerminalInstance
terminalInstancesuntrackedTerminalinstanceId untrackedTerminal
onDidChangeSessions
added
removed
changed
sessionId
isArchived
worktree remoteWorktree
providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
worktreeUri
restoredTerminal nextInstanceId worktreeUrifsPath
restoredTerminal attachPersistentProcess id ITerminalInstance
terminalInstancesrestoredTerminalinstanceId restoredTerminal
activeInstanceId restoredTerminalinstanceId
onDidChangeSessions
added
removed
changed
sessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
worktreeUri
archivedSession
sessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
liveSession
sessionId
worktree worktreeUri
providerType AgentSessionProvidersBackground
allSessions archivedSession liveSession
restoredTerminal nextInstanceId worktreeUrifsPath
restoredTerminal attachPersistentProcess id ITerminalInstance
terminalInstancesrestoredTerminalinstanceId restoredTerminal
onDidChangeSessions
added
removed
changed archivedSession
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
worktreeUri
manualTerminal nextInstanceId worktreeUrifsPath
terminalInstancesmanualTerminalinstanceId manualTerminal
onDidChangeSessions
added
removed
changed
sessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
disposed
remaining
worktreeUri
session sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
creationBarrier
terminalCreationBarriersworktreeUrifsPath creationBarrier
activeSessionObssession
onDidChangeSessions
added
removed
changed
sessionId sessionsessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
creationBarrier
assert
created createdTerminalsterminal terminalcwdfsPath
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
created worktreeUrifsPath
disposed
remaining
worktreeUri
session sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
creationBarrier
terminalCreationBarriersworktreeUrifsPath creationBarrier
vetoSafeDispose
activeSessionObssession
onDidChangeSessions
added
removed
changed
sessionId sessionsessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
creationBarrier
otherSessionTerminal contribution
worktreeUri
sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
assert
disposed disposedInstancesinstance instanceinstanceId
otherSessionTerminal otherSessionTerminalinstance instanceinstanceId
remaining terminalInstances
disposed
otherSessionTerminal
remaining
worktreeUri
archivedSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contributionworktreeUri archivedSession
otherSession sessionId worktree providerType AgentSessionProvidersBackground
activeSessionObsotherSession
archived
sessionId archivedSessionsessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
onDidChangeSessions added removed changed archived
restored
sessionId archivedSessionsessionId
worktree worktreeUri
providerType AgentSessionProvidersBackground
activeSessionObsrestored
onDidChangeSessions added removed changed restored
assert
created createdTerminalsterminal terminalcwdfsPath
disposed disposedInstancesinstance instanceinstanceId
remaining terminalInstances
created worktreeUrifsPath fsPath worktreeUrifsPath
disposed
remaining
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
moveToBackgroundCallslength
session
sessionId
isArchived
worktree worktreeUri
onDidChangeSessions added removed changed session
assertdisposedInstanceslength
assertmoveToBackgroundCallslength
session
sessionId
isArchived
worktree
providerType AgentSessionProvidersBackground
onDidChangeSessions added removed changed session
assertlogServiceinfos
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
moveToBackgroundCallslength
session sessionId isArchived
onDidChangeSessions added removed changed session
assertdisposedInstanceslength
assertmoveToBackgroundCallslength
repoUri
session sessionId repository repoUri providerType AgentSessionProvidersBackground isArchived
activeSessionObssession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath repoUrifsPath
otherSession sessionId worktree providerType AgentSessionProvidersBackground
activeSessionObsotherSession
moveToBackgroundCallslength
archivedSession sessionId repository repoUri providerType AgentSessionProvidersBackground isArchived
onDidChangeSessions added removed changed archivedSession
assert
disposed disposedInstancesinstance instanceinstanceId
backgrounded moveToBackgroundCalls
disposed
backgrounded
worktreeUri
activeSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
activeSessionObsactiveSession
assertcreatedTerminalslength
moveToBackgroundCallslength
archivedSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground isArchived
onDidChangeSessions added removed changed archivedSession
assertdisposedInstanceslength
assertmoveToBackgroundCallslength
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contribution sessionId worktree providerType AgentSessionProvidersBackground
archivedSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground isArchived
moveToBackgroundCallslength
onDidChangeSessions added removed changed archivedSession
assertdisposedInstancesinstance instanceinstanceId
assertmoveToBackgroundCalls
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contribution sessionId worktree providerType AgentSessionProvidersBackground
activeInstanceId
moveToBackgroundCallslength
onDidChangeSessions added removed changed archivedSession
assertdisposedInstancesinstance instanceinstanceId
assertmoveToBackgroundCallslength
worktreeUri
archivedSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground isArchived
allSessions archivedSession
contribution
freshContribution storeinstantiationServiceSessionsTerminalContribution
freshContributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
freshContribution sessionId worktree providerType AgentSessionProvidersBackground
moveToBackgroundCallslength
onDidChangeSessions added removed changed archivedSession
assertdisposedInstanceslength
assertmoveToBackgroundCallslength
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contribution sessionId worktree providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
session sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
onDidChangeSessions added removed session changed
assertdisposedInstanceslength
session
sessionId
worktree
providerType AgentSessionProvidersBackground
onDidChangeSessions added removed session changed
assertlogServiceinfos
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
skeleton sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
onDidChangeSessions added removed skeleton changed
assertdisposedInstanceslength
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
fromSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
toSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
allSessions toSession
onDidChangeSessions added removed fromSession changed toSession
assertdisposedInstancesinstance instanceinstanceId
assertterminalInstances
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
liveSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
archivedSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground isArchived
allSessions liveSession archivedSession
activeSessionObsliveSession
activeInstanceId
moveToBackgroundCallslength
onDidChangeSessions added removed changed archivedSession
assert
disposed disposedInstancesinstance instanceinstanceId
backgrounded moveToBackgroundCalls
remaining terminalInstances
disposed
backgrounded
remaining
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
otherLive sessionId worktree providerType AgentSessionProvidersBackground
removedSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
allSessions otherLive
contribution sessionId worktree providerType AgentSessionProvidersBackground
onDidChangeSessions added removed removedSession changed
assertdisposedInstanceslength
cwd1
cwd2
activeSessionObs sessionId worktree cwd1 providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
activeSessionObs sessionId worktree cwd2 providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
activeSessionObs sessionId worktree cwd1 providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
cwd1
cwd2
activeSessionObs sessionId worktree cwd1 providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
activeSessionObs sessionId worktree cwd2 providerType AgentSessionProvidersBackground
assertmoveToBackgroundCalls
assertbackgroundedInstances
cwd1
cwd2
activeSessionObs sessionId worktree cwd1 providerType AgentSessionProvidersBackground
activeSessionObs sessionId worktree cwd2 providerType AgentSessionProvidersBackground
activeSessionObs sessionId worktree cwd1 providerType AgentSessionProvidersBackground
assertshowBackgroundCalls
assertbackgroundedInstances
assertbackgroundedInstances
cwd1
cwd2
cwd3
activeSessionObs sessionId worktree cwd1 providerType AgentSessionProvidersBackground
activeSessionObs sessionId worktree cwd2 providerType AgentSessionProvidersBackground
activeSessionObs sessionId worktree cwd3 providerType AgentSessionProvidersBackground
assertbackgroundedInstances
assertbackgroundedInstances
assertbackgroundedInstances
cwd
existingInstance nextInstanceId cwdfsPath
terminalInstancesexistingInstanceinstanceId existingInstance
backgroundedInstancesexistingInstanceinstanceId
activeSessionObs worktree cwd providerType AgentSessionProvidersBackground
assertcreatedTerminalslength
assertshowBackgroundCallsexistingInstanceinstanceId
resolveInitialCwd cwd
restoredInstance nextInstanceId
restoredInstance attachPersistentProcess ITerminalInstance
restoredInstance resolve
resolveInitialCwd resolve
terminalInstancesrestoredInstanceinstanceId restoredInstance
activeSessionObs sessionId worktree providerType AgentSessionProvidersBackground
onDidCreateInstancerestoredInstance
restoredInstance
terminalInstancesrestoredInstanceinstanceId
resolveInitialCwd
assertmoveToBackgroundCallsrestoredInstanceinstanceId
assertlogServicetracesmessage message message
otherInstance nextInstanceId
terminalInstancesotherInstanceinstanceId otherInstance
cwd
activeSessionObs worktree cwd providerType AgentSessionProvidersBackground
assertmoveToBackgroundCallsotherInstanceinstanceId
cwd
contributioncwd
instanceId activeInstanceSet
backgroundedInstancesinstanceId
result contributioncwd
assertcreatedTerminalslength
assertresultinstanceId instanceId
cwd
session1 sessionId worktree cwd providerType AgentSessionProvidersBackground
session2 sessionId worktree cwd providerType AgentSessionProvidersBackground
activeSessionObssession1
activeSessionObssession2
assertcreatedTerminalsterminal terminalcwdfsPath cwdfsPath cwdfsPath
assertbackgroundedInstances
assertbackgroundedInstances
cwd
session1 sessionId worktree cwd providerType AgentSessionProvidersBackground
session2 sessionId worktree cwd providerType AgentSessionProvidersBackground
activeSessionObssession1
activeSessionObssession2
assertbackgroundedInstances
assertbackgroundedInstances
activeSessionObssession1
assertbackgroundedInstances
assertbackgroundedInstances
cwd
t1 nextInstanceId cwdfsPath
t2 nextInstanceId cwdfsPath
terminalInstancest1instanceId t1
terminalInstancest2instanceId t2
t1
t2
activeSessionObs worktree cwd providerType AgentSessionProvidersBackground
assertactiveInstanceSet t2instanceId
cwd
t1 nextInstanceId cwdfsPath
t2 nextInstanceId cwdfsPath
terminalInstancest1instanceId t1
terminalInstancest2instanceId t2
activeCountBefore activeInstanceSetlength
activeSessionObs worktree cwd providerType AgentSessionProvidersBackground
assertactiveInstanceSetlength activeCountBefore
remoteRepoUri
session repository remoteRepoUri providerType AgentSessionProvidersBackground
activeSessionObssession
assertcreatedTerminalslength
assertcreatedTerminalscwdfsPath fsPath
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
toolTerminal nextInstanceId worktreeUrifsPath
toolTerminal hideFromUser ITerminalInstance
terminalInstancestoolTerminalinstanceId toolTerminal
otherSession sessionId worktree providerType AgentSessionProvidersBackground
activeSessionObsotherSession
moveToBackgroundCallslength
session
sessionId
isArchived
worktree worktreeUri
providerType AgentSessionProvidersBackground
onDidChangeSessions added removed changed session
assert
disposed disposedInstancesinstance instanceinstanceId
backgrounded moveToBackgroundCalls
toolTerminalDisposed toolTerminalisDisposed
disposed
backgrounded
toolTerminalDisposed
worktreeUri
contributionworktreeUri sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
toolTerminal nextInstanceId worktreeUrifsPath
toolTerminal hideFromUser ITerminalInstance
terminalInstancestoolTerminalinstanceId toolTerminal
contribution sessionId worktree providerType AgentSessionProvidersBackground
session sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
onDidChangeSessions added removed session changed
assertdisposedInstanceslength
assertdisposedInstancesinstanceId toolTerminalinstanceId
cwd1
cwd2
activeSessionObs sessionId worktree cwd1 providerType AgentSessionProvidersBackground
toolTerminal nextInstanceId cwd1fsPath
toolTerminal hideFromUser ITerminalInstance
terminalInstancestoolTerminalinstanceId toolTerminal
activeSessionObs sessionId worktree cwd2 providerType AgentSessionProvidersBackground
assertmoveToBackgroundCallstoolTerminalinstanceId
cwd
toolTerminal nextInstanceId cwdfsPath
toolTerminal hideFromUser ITerminalInstance
terminalInstancestoolTerminalinstanceId toolTerminal
contributioncwd
assertcreatedTerminalslength
activeSessionObs sessionId worktree providerType AgentSessionProvidersBackground
toolTerminal nextInstanceId
toolTerminal
hideFromUser
attachPersistentProcess
ITerminalInstance
terminalInstancestoolTerminalinstanceId toolTerminal
onDidCreateInstancetoolTerminal
assertmoveToBackgroundCallstoolTerminalinstanceId
worktreeUri
untitledSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
committedSession sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contributionworktreeUri untitledSession
assertcreatedTerminalslength
terminalId terminalInstances
onDidReplaceSession from untitledSession to committedSession
activeInstanceId
onDidChangeSessions added removed untitledSession changed
assertdisposedInstanceslength
assertterminalInstancesterminalId
result contributionworktreeUri committedSession
assertcreatedTerminalslength
assertresultinstanceId terminalId
worktreeUri
session sessionId worktree worktreeUri providerType AgentSessionProvidersBackground
contributionworktreeUri session
assertcreatedTerminalslength
instance terminalInstances TestTerminalInstance
instance
terminalInstancesinstanceinstanceId
onDidDisposeInstanceinstance
result contributionworktreeUri session
assertcreatedTerminalslength
assertresultinstanceId instanceinstanceId
cwd
session sessionId worktree cwd providerType AgentSessionProvidersBackground
restoredTerminal nextInstanceId cwdfsPath
terminalInstancesrestoredTerminalinstanceId restoredTerminal
backgroundedInstancesrestoredTerminalinstanceId
activeSessionObssession
assertshowBackgroundCallsrestoredTerminalinstanceId
resolve resolve