Skip to content

Remove unnecessary logging statements from Copilot CLI session and related handlers#314021

Merged
DonJayamanne merged 3 commits intomainfrom
don/bitter-wren
May 4, 2026
Merged

Remove unnecessary logging statements from Copilot CLI session and related handlers#314021
DonJayamanne merged 3 commits intomainfrom
don/bitter-wren

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 4, 2026 03:22
@DonJayamanne DonJayamanne self-assigned this May 4, 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 trims Copilot CLI logging in the VS Code Copilot extension, mainly removing info/trace statements from session setup, MCP configuration, metadata persistence, and question handling paths. It fits into the chat session layer that wires the Copilot CLI SDK into VS Code services and UI flows.

Changes:

  • Remove verbose logging from Copilot CLI session lifecycle, tool execution, and subagent event handling.
  • Remove metadata/worktree/MCP setup trace logs across supporting services.
  • Simplify UserQuestionHandler construction in code and tests after dropping its log dependency.
Show a summary per file
File Description
extensions/copilot/src/extension/chatSessions/vscode-node/folderRepositoryManagerImpl.ts Removes worktree/multi-root informational logging.
extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/askUserQuestionHandler.spec.ts Updates test helper to use the simplified handler constructor.
extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/chatSessionMetadataStoreImpl.ts Removes trace logs around request/metadata persistence.
extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/askUserQuestionHandler.ts Drops injected log service and debug trace output from question handling.
extensions/copilot/src/extension/chatSessions/copilotcli/node/mcpHandler.ts Removes MCP configuration startup/trace logging.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSessionService.ts Removes MCP server logging when building SDK session options.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSession.ts Removes verbose session, tool, event, and subagent trace/info logging.

Copilot's findings

  • Files reviewed: 7/7 changed files
  • Comments generated: 2

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@DonJayamanne DonJayamanne merged commit ca5a6a9 into main May 4, 2026
26 checks passed
@DonJayamanne DonJayamanne deleted the don/bitter-wren branch May 4, 2026 09:15
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 4, 2026
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.

4 participants