Skip to content

refactor(agent): remove vestigial hubs from PSU gRPC protocol#1858

Open
Benoît Cortier (CBenoit) wants to merge 2 commits into
masterfrom
claude/remove-hubs-grpc-7wiqe2
Open

refactor(agent): remove vestigial hubs from PSU gRPC protocol#1858
Benoît Cortier (CBenoit) wants to merge 2 commits into
masterfrom
claude/remove-hubs-grpc-7wiqe2

Conversation

@CBenoit

@CBenoit Benoît Cortier (CBenoit) commented Jul 17, 2026

Copy link
Copy Markdown
Member

The PSU agent gRPC protocol carried a hubs label on registration that the
server echoed back, ported mechanically from the older SignalR PSUEventHub
protocol. It is vestigial: agent identity is defined by AgentId and job
fan-out is handled by computer groups, which superseded hubs.

The PSU agent gRPC protocol carried a hubs label on registration that the
server echoed back, ported mechanically from the older SignalR PSUEventHub
protocol. It is vestigial: agent identity is defined by AgentId and job
fan-out is handled by computer groups, which superseded hubs. Remove the
hubs and accepted_hubs fields from the protocol and every producer, along
with the related POC container configuration.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H56zawifWCep1KFqMiDdD9
Copilot AI review requested due to automatic review settings July 17, 2026 06:40

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

Removes vestigial PSU hub metadata from the agent’s gRPC protocol and configuration.

Changes:

  • Removes hubs and accepted_hubs protocol fields.
  • Removes hub configuration from agent runtime and tests.
  • Cleans up POC container scripts and environment variables.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
devolutions-agent/src/psu_agent/mod.rs Stops sending hubs during registration.
devolutions-agent/src/config.rs Removes hub configuration.
devolutions-agent/Run-PsuGrpcAgentContainer.ps1 Removes the container hubs parameter.
devolutions-agent/proto/psu_agent.proto Removes obsolete protocol fields.
devolutions-agent/Dockerfile.psu-grpc-poc Removes the hubs environment variable.
devolutions-agent/docker/psu-grpc-entrypoint.sh Removes hub parsing and JSON generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread devolutions-agent/proto/psu_agent.proto Outdated
Comment thread devolutions-agent/proto/psu_agent.proto
@CBenoit
Benoît Cortier (CBenoit) enabled auto-merge (squash) July 17, 2026 06:42
Removing the hubs field left a gap at tag 9 in RegisterAgent. Renumber the
trailing fields (capabilities 10->9, powershell_runtimes 11->10) so the field
numbering is contiguous again. Wire-format change, safe for this POC protocol
since both ends are updated together.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H56zawifWCep1KFqMiDdD9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants