Skip to content

chat: Warn about sharing Agent Host debug logs#322017

Open
roblourens wants to merge 1 commit into
mainfrom
agents/see-the-export-agent-host-debug-logs-command-3f6c7ba3
Open

chat: Warn about sharing Agent Host debug logs#322017
roblourens wants to merge 1 commit into
mainfrom
agents/see-the-export-agent-host-debug-logs-command-3f6c7ba3

Conversation

@roblourens

Copy link
Copy Markdown
Member

Summary\n- show a privacy warning after Agent Host debug logs are successfully exported\n- direct internal users to share logs privately via Slack or microsoft/vscode-internalbacklog\n- avoid showing the warning when the export dialog is canceled or saving fails\n\n## Validation\n- npm run typecheck-client\n- npm run valid-layers-check\n- npm run precommit\n\n(Written by Copilot)

Show a privacy warning after Agent Host debug logs are successfully exported, with internal users directed to share privately via Slack or microsoft/vscode-internalbacklog.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 18, 2026 22:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a post-export privacy notice to the “Export Agent Host Debug Logs” workflow, with different guidance for internal vs external users, and refines the export services to report whether an export actually completed (vs. user cancellation) so the notice only appears on success.

Changes:

  • Change IAgentHostDebugLogsExportService.save(...) to return boolean to distinguish successful exports from cancellation.
  • Show a privacy message after a successful export, with internal-user-specific guidance based on IChatEntitlementService.isInternal.
  • Ensure canceled folder/file dialogs short-circuit without showing the warning.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/electron-browser/actions/exportAgentHostDebugLogsService.ts Updates native (desktop) export flow to return false on dialog cancel and true on successful zip creation.
src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.ts Updates export service contract and browser export implementation; adds post-save privacy notice gated on successful save and internal entitlement.

Copilot's findings

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

Comment on lines +346 to +348
notificationService.info(chatEntitlementService.isInternal
? localize('exportDebugLogs.privacyWarning.internal', "Note: This log may contain personal information such as auth tokens, file contents, or terminal output. It MUST be shared privately via Slack or in an issue filed on the microsoft/vscode-internalbacklog repo.")
: localize('exportDebugLogs.privacyWarning', "Note: This log may contain personal information such as auth tokens, file contents, or terminal output. Please consider sharing privately or reviewing the contents carefully before sharing."));
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