Skip to content

Conversation

@tschaefer
Copy link
Owner

No description provided.

Copy link

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 pull request adds agent editing functionality to the finchctl tool by introducing a new UpdateAgent gRPC endpoint and corresponding CLI command. The feature allows users to modify configuration settings for already-registered agents.

  • Added new UpdateAgent RPC method to the proto API definition with request/response message types
  • Implemented editAgent function in the internal agent package to call the gRPC endpoint
  • Created new edit CLI command with flags for modifying agent configuration (logs, metrics, profiles, labels)

Reviewed changes

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

Show a summary per file
File Description
internal/api/api.proto Removed copyright header (appropriate for proto definitions) and added UpdateAgent RPC method with UpdateAgentRequest/UpdateAgentResponse messages
internal/api/api.pb.go Auto-generated protobuf code updated with UpdateAgentRequest and UpdateAgentResponse types (copyright header removed as expected for generated code)
internal/api/api_grpc.pb.go Auto-generated gRPC service code updated to include UpdateAgent client and server methods (copyright header removed as expected for generated code)
internal/agent/edit.go New file implementing editAgent function to handle agent updates via gRPC, includes EditData struct definition
internal/agent/agent.go Added public Edit method to expose editAgent functionality
cmd/agent/edit.go New CLI command implementation with flags for agent editing, includes config file support and validation
cmd/agent/agent.go Registered the new edit command with the agent command group

@tschaefer tschaefer marked this pull request as ready for review January 6, 2026 09:51
@tschaefer tschaefer merged commit 3f47b55 into main Jan 6, 2026
2 checks passed
@tschaefer tschaefer deleted the feature/agent-edit branch January 6, 2026 09:52
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