Skip to content

Agent Host: Make debug log export best-effort - #332062

Merged
roblourens merged 2 commits into
microsoft:mainfrom
roblourens:roblou/agents/export-logs-error-handling
Aug 22, 2026
Merged

Agent Host: Make debug log export best-effort#332062
roblourens merged 2 commits into
microsoft:mainfrom
roblourens:roblou/agents/export-logs-error-handling

Conversation

@roblourens

Copy link
Copy Markdown
Member

Summary

  • skip supplementary debug-log files that become unavailable during ZIP creation instead of failing the export
  • remove the 256 MiB debug-log export limit while retaining the 1,000-entry and manifest-integrity checks
  • add coverage for best-effort ZIP sources and artifacts larger than the previous limit

Validation

  • ./scripts/test.sh --run src/vs/base/test/node/zip/zip.test.ts --run src/vs/platform/agentHost/test/node/agentHostDebugLogs.test.ts --run src/vs/platform/agentHost/test/electron-browser/agentHostProtocolClient.test.ts (115 passing)
  • npm run typecheck-client
  • targeted ESLint for all changed TypeScript files

(Written by Copilot)

Skip unavailable supplementary log sources and remove the debug-log byte limit while retaining manifest and entry-count validation.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 21, 2026 22:55

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

Makes Agent Host debug-log exports best-effort and removes the previous 256 MiB limit.

Changes:

  • Skips supplementary log sources that become unavailable.
  • Makes ZIP size limits optional while retaining entry and manifest validation.
  • Adds coverage for unavailable sources and larger artifacts.
Show a summary per file
File Description
src/vs/base/node/zip.ts Adds best-effort sources and optional size validation.
src/vs/base/test/node/zip/zip.test.ts Tests best-effort ZIP behavior.
src/vs/platform/agentHost/browser/agentHostProtocolClient.ts Accepts artifacts beyond 256 MiB.
src/vs/platform/agentHost/common/agentService.ts Removes the size-limit constant.
src/vs/platform/agentHost/node/agentHostDebugLogs.ts Removes collector size limits.
src/vs/platform/agentHost/test/electron-browser/agentHostProtocolClient.test.ts Tests large protocol artifacts.
src/vs/platform/agentHost/test/node/agentHostDebugLogs.test.ts Tests large collected artifacts.
src/vs/platform/native/common/native.ts Extends native ZIP options and entries.
src/vs/platform/native/electron-main/nativeHostMainService.ts Filters unavailable entries and handles optional limits.
src/vs/workbench/contrib/chat/electron-browser/actions/exportAgentHostDebugLogsService.ts Enables best-effort supplementary logs without a size cap.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 10/10 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@roblourens
roblourens marked this pull request as ready for review August 21, 2026 23:06
@roblourens
roblourens enabled auto-merge (squash) August 21, 2026 23:06
@roblourens
roblourens merged commit 150cf94 into microsoft:main Aug 22, 2026
44 of 45 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.135.0 milestone Aug 22, 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