Skip to content

agentHost: Re-enable Copilot process log exports - #334175

Merged
roblourens merged 1 commit into
mainfrom
roblou/agents/export-agent-logs-reenable-check
Sep 3, 2026
Merged

agentHost: Re-enable Copilot process log exports#334175
roblourens merged 1 commit into
mainfrom
roblou/agents/export-agent-logs-reenable-check

Conversation

@roblourens

Copy link
Copy Markdown
Member

Summary

  • re-enable Copilot SDK process-log collection in Agent Host debug exports
  • keep session events and shell logs scoped to the selected session
  • update focused coverage for session-scoped and host-wide exports

Why

The Copilot runtime now includes the debug-log collection performance improvements from github/copilot-agent-runtime#15407, so the temporary process-log exclusion is no longer needed.

Validation

  • npm run transpile-client
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts --grep "collects SDK debug logs with process logs"
  • npm run eslint -- src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts
  • pre-commit hygiene

(Written by Copilot)

The current Copilot runtime includes the debug-log collection performance improvements, so include process logs again for both session-scoped and host-wide exports.\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 September 3, 2026 04:11

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.

Copilot review overview

🟢 Approval recommended

The focused implementation and tests correctly match the stated export behavior.

Review tier: Balanced
Findings: None

What changed in this PR

Re-enables Copilot SDK process logs in Agent Host debug exports while preserving session scoping.

Changes:

  • Enables process-log collection for all Copilot debug exports.
  • Updates focused unit-test expectations.
File Description
copilotAgentSession.ts Includes SDK process logs in exports.
copilotAgentSession.test.ts Verifies session and host-wide inclusion settings.

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

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: d2078dc3 Current: 2e64c5f5

Errored (8)

Fixtures that failed to render — no screenshot was produced.

sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunning/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunning/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunningAutoStart/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunningAutoStart/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostDisconnected/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostDisconnected/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/Connecting/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/Connecting/Light — unknown error (no image hash produced)
unknown error (no image hash produced)

@roblourens
roblourens marked this pull request as ready for review September 3, 2026 16:08

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved after current-head Copilot Code Review and GPT Luna found no security issue in the full PR patch.

@roblourens
roblourens merged commit 10a0b7f into main Sep 3, 2026
41 checks passed
@roblourens
roblourens deleted the roblou/agents/export-agent-logs-reenable-check branch September 3, 2026 16:18
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 3, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved after manual review

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