Skip to content

agentHost: remove IPC output logging#319224

Draft
roblourens wants to merge 1 commit into
mainfrom
agents/delete-teh-loggingagentconnection-the-agent-host-6e197bc0
Draft

agentHost: remove IPC output logging#319224
roblourens wants to merge 1 commit into
mainfrom
agents/delete-teh-loggingagentconnection-the-agent-host-6e197bc0

Conversation

@roblourens
Copy link
Copy Markdown
Member

Summary

  • Remove LoggingAgentConnection and the agent host IPC output-channel logging wrapper
  • Remove chat.agentHost.ipcLoggingEnabled from configuration registration
  • Route local and remote agent host chat/terminal paths directly through their IAgentConnection
  • Remove remote-host Show Output plumbing that only existed for the IPC log channel

Validation

  • npm run compile-check-ts-native
  • npm run valid-layers-check
  • npm run precommit
  • env -u ELECTRON_RUN_AS_NODE ./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostChatContribution.test.ts --run src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostTerminalContribution.test.ts --run src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remoteHostOptions.test.ts --run src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remoteAgentHostSessionsProvider.test.ts --run src/vs/sessions/contrib/providers/remoteAgentHost/test/browser/remoteAgentHost.contribution.test.ts

(Written by Copilot)

Delete the LoggingAgentConnection wrapper and chat.agentHost.ipcLoggingEnabled setting. Route agent host chat and terminal call sites directly through their IAgentConnection and remove the remote-host Show Output plumbing that only existed for the IPC log channel.\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 May 31, 2026 22:26
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 removes the per-host Agent Host IPC output-channel logging wrapper and routes local/remote chat and terminal integrations directly through IAgentConnection, relying on existing AHP JSONL and forwarded log surfaces for diagnostics.

Changes:

  • Removed LoggingAgentConnection and the chat.agentHost.ipcLoggingEnabled setting.
  • Updated local and remote chat/terminal registration paths to pass raw IAgentConnection instances.
  • Removed remote-host “Show Output” plumbing and related provider API/documentation references.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts Removes configuration registration for IPC output logging.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/loggingAgentConnection.ts Deletes the IPC output-channel logging wrapper.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.ts Uses the local agent host service directly for terminal connections.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.ts Uses the local agent host service directly for chat/session/auth flows.
src/vs/sessions/contrib/providers/remoteAgentHost/REMOTE_AGENT_HOST_SESSIONS_PROVIDER.md Updates provider documentation to reflect removal of IPC output-channel management.
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteHostOptions.ts Removes the remote-host “Show Output” option and output service dependency.
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostTerminal.contribution.ts Uses remote connections directly for terminal entries.
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostSessionsProvider.ts Removes stored output-channel ID from the sessions provider.
src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHost.contribution.ts Reworks remote connection state and registration to use raw IAgentConnection.
src/vs/sessions/common/agentHostSessionsProvider.ts Removes output-channel ID from the shared provider interface.
src/vs/platform/agentHost/common/agentService.ts Removes the IPC logging setting constant.

Copilot's findings

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

Comment on lines 51 to 52
/** Configuration key that controls whether AHP JSONL logs are written for agent host transports. */
export const AgentHostAhpJsonlLoggingSettingId = 'chat.agentHost.ahpJsonlLoggingEnabled';
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.

2 participants