const handling = command.tryHandle(request);
if (handling) {
return handling;
}
}
return undefined;
Frontier kind: Code frontier
unlabeled · c_2288ba1119f3
10 tests · 49985 LOC · 291 files · introduces 0 tests · 36 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/agentHostRenameCommand.test|title=agentHostRenameCommand parseRenameCommand captures the trimmed title after a space|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostRenameCommand.test|title=agentHostRenameCommand parseRenameCommand matches lone /rename as empty title|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostRenameCommand.test|title=agentHostRenameCommand parseRenameCommand trims surrounding whitespace from the title|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/buffer.test|title=Buffer fromString|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/buffer.test|title=Buffer issue #251527 - VSBuffer#toString preserves BOM character in filenames|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/reducers.test|title=chatReducer – summaryStatus with tool call confirmations and input requests clamps negative terminal duration|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/reducers.test|title=chatReducer – summaryStatus with tool call confirmations and input requests preserves turn start timestamp and duration after completion|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/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: 36 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
const handling = command.tryHandle(request);
if (handling) {
return handling;
}
}
return undefined;
private async _run(command: ILocalChatCommand, handling: ILocalChatCommandHandling, request: ILocalChatCommandRequest): Promise<void> {
try {
await handling.run();
} catch (err) {
this._logService.error(`[AgentHostLocalCommands] Command '${command.name}' failed: ${err instanceof Error ? err.message : String(err)}`, err);
// Common tail for every host-handled command: close out the turn the
// reducer opened, optionally persist it as a local turn (so it
// survives reload and anchors fork/truncate), then let the owner
// drain any messages queued behind it.
this._stateManager.dispatchServerAction(request.turnChannel, { type: ActionType.ChatTurnComplete, turnId: request.turnId, duration: Math.max(0, stopWatch.elapsed()) });
if (command.recordsLocalTurn) {
this._recordLocalTurn(request.turnChannel, request.turnId);
}
this._notifyTurnConsumable(request.turnChannel);
}
}
/**
*/
private _recordLocalTurn(turnChannel: ProtocolURI, turnId: string): void {
const session = isAhpChatChannel(turnChannel) ? parseRequiredSessionUriFromChatUri(turnChannel) : turnChannel;
const turns = this._stateManager.getSessionState(turnChannel)?.turns;
if (!turns) {
return;
}
if (index < 0) {
return;
}
// local turn.
let anchorTurnId: string | undefined;
for (let i = index - 1; i >= 0; i--) {
if (!this._localTurns.isLocal(chat, turns[i].id)) {
anchorTurnId = turns[i].id;
}
}
this._localTurns.record(session, chat, sanitizeLocalTurnForPersistence(turns[index]), anchorTurnId);
localChatCommand.ts
}
}
* PTY does not survive a reload, so only the captured output (text) is kept.
*/
const responseParts = turn.responseParts.map(part => {
if (part.kind !== ResponsePartKind.ToolCall) {
return part;
}
return { ...part, toolCall: { ...tc, content } };
return { ...turn, responseParts };
}