Skip to content

Revert "Add chat perf markers (#4456)"#4508

Merged
pwang347 merged 1 commit intomainfrom
pawang/revert
Mar 19, 2026
Merged

Revert "Add chat perf markers (#4456)"#4508
pwang347 merged 1 commit intomainfrom
pawang/revert

Conversation

@pwang347
Copy link
Copy Markdown
Member

This reverts commit 17d32d6.

Copilot AI review requested due to automatic review settings March 19, 2026 00:23
@pwang347 pwang347 enabled auto-merge March 19, 2026 00:23
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts the previously introduced chat performance instrumentation (the commit referenced in the PR description), removing performance.mark(...) calls that were added across extension activation, prompt rendering, and the agent/tool-calling flow.

Changes:

  • Removed performance.mark calls from activation, prompt rendering, and the tool-calling loop.
  • Simplified a couple of affected code paths where temporary variables only existed to place post-return perf markers.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/extension/prompts/node/panel/customInstructions.tsx Removes perf markers around custom-instructions prompt preparation.
src/extension/prompts/node/agent/agentPrompt.tsx Removes perf markers around system prompt retrieval and global agent context creation; simplifies return flow.
src/extension/intents/node/toolCallingLoop.ts Removes perf markers around loop execution, prompt building, and model fetch.
src/extension/extension/vscode/extension.ts Removes perf markers during activation; returns activation API object directly.
src/extension/conversation/vscode-node/conversationFeature.ts Removes perf markers while waiting for Copilot token availability.
src/extension/conversation/vscode-node/chatParticipants.ts Removes perf markers around chat participant request handling.

You can also share your feedback on Copilot code review. Take the survey.

@pwang347 pwang347 added this pull request to the merge queue Mar 19, 2026
Merged via the queue into main with commit 094647e Mar 19, 2026
23 checks passed
@pwang347 pwang347 deleted the pawang/revert branch March 19, 2026 01:58
pwang347 added a commit that referenced this pull request Mar 24, 2026
@pwang347 pwang347 mentioned this pull request Mar 24, 2026
github-merge-queue bot pushed a commit that referenced this pull request Mar 26, 2026
* Revert "Revert "Add chat perf markers (#4456)" (#4508)"

This reverts commit 094647e.

* update

* clean

* PR

* update

* Clean

* use sessions

* fix

* update

* PR

* Update src/util/common/test/performance.spec.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/extension/intents/node/toolCallingLoop.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* PR

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants