this._heldShellReleaseListeners.clear();
for (const shell of this._shells.values()) {
this._terminalManager.disposeTerminal(shell.terminalUri);
}
this._shells.clear();
this._toolCallShells.clear();
Frontier kind: Code frontier
unlabeled · c_b03fa8bf5e33
25 tests · 28402 LOC · 131 files · introduces 0 tests · 50 LOC · 1 file
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools primary shell tool merges configured filesystem allowRead paths into the sandbox config|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools primary shell tool writes a sandbox config exposing the working directory as writable|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools backgrounded shell is released when command finishes|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools backgrounded shell is released when terminal exits|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools primary shell tool normalizes multiline command input|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools primary shell tool only forces bracketed paste for single-line commands on macOS|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools primary shell tool sends commands unwrapped when the sandbox is disabled|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools opts every managed shell into shell-history suppression and non-interactive mode|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotShellTools.test|title=CopilotShellTools uses the executable resolved by the terminal manager|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/instantiation/test/common/instantiationService.test|title=Instantiation Service @Param - fixed args|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/instantiation/test/common/instantiationService.test|title=Instantiation Service @Param - simple clase|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication creates new entry when none exists|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate IDs with existing entry - fixed version reuses existing|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - buggy version leaks entry|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - fixed version reuses entry from current update|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication mixed unique and duplicate IDs|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication reuses existing entry from previous update|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 50 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
this._heldShellReleaseListeners.clear();
for (const shell of this._shells.values()) {
this._terminalManager.disposeTerminal(shell.terminalUri);
}
this._shells.clear();
this._toolCallShells.clear();
*/
async getOrCreateShell(
turnId: string,
toolCallId: string,
cwd?: string,
): Promise<IReference<IManagedShell>> {
for (const shell of this._shells.values()) {
if (shell.shellType !== shellType || !this._terminalManager.hasTerminal(shell.terminalUri)) {
continue;
return this._makeReference(shell);
}
const id = generateUuid();
const terminalUri = `agenthost-terminal://shell/${id}`;
const claim: TerminalSessionClaim = {
kind: TerminalClaimKind.Session,
session: this._sessionUri.toString(),
turnId,
toolCallId,
};
const shellDisplayName = shellType === 'bash' ? 'Bash' : 'PowerShell';
const executable = await this.getResolvedExecutable();
await this._terminalManager.createTerminal({
channel: terminalUri,
claim,
name: shellDisplayName,
cwd: cwd ?? this.workingDirectory?.fsPath,
}, { shell: executable, preventShellHistory: true, nonInteractive: true });
const shell: IManagedShell = { id, terminalUri, shellType, executable };
this._shells.set(id, shell);
this._busyShellIds.add(id);
this._trackToolCall(toolCallId, id);
this._logService.info(`[ShellManager] Created ${shellType} shell ${id} (terminal=${terminalUri}, executable=${executable})`);
return this._makeReference(shell);
}
private _makeReference(shell: IManagedShell): IReference<IManagedShell> {
return {
object: shell,
dispose: () => {
if (disposed) {
return;
this._busyShellIds.delete(shell.id);
},
}
holdShellUntilCommandFinishes(shell: IManagedShell): void {
private _trackToolCall(toolCallId: string, shellId: string): void {
const shell = this._shells.get(shellId);
if (shell) {
const displayName = shell.shellType === 'bash' ? 'Bash' : 'PowerShell';
this._onDidAssociateTerminal.fire({ toolCallId, terminalUri: shell.terminalUri, displayName });
}
}
getTerminalUriForToolCall(toolCallId: string): string | undefined {