Skip to content

fix(hub): implement proper agent resume and restart dispatch#11

Closed
kweinmeister wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
kweinmeister:feature/hub-agent-resume-restart
Closed

fix(hub): implement proper agent resume and restart dispatch#11
kweinmeister wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
kweinmeister:feature/hub-agent-resume-restart

Conversation

@kweinmeister

Copy link
Copy Markdown
Contributor

This resolves a TODO where the Hub was unable to properly resume or restart a stopped agent via a co-located runtime broker dispatcher. It abstracts the StartOptions construction and utilizes the agent manager's Start method with the Resume flag. Includes new tests in cmd/server_dispatcher_test.go.

This resolves a TODO where the Hub was unable to properly resume or restart a stopped agent via a co-located runtime broker dispatcher. It abstracts the StartOptions construction and utilizes the agent manager's Start method with the Resume flag.
This refactor addresses three key improvements in cmd/server.go:
1. DRY: Extracted identical grove path resolution logic into a resolveGrovePath() helper.
2. Clean Architecture: Removed side-effects from buildStartOptions() by moving hubAgent mutation (labels) into the calling dispatch methods.
3. Consistency: Applied the grove ID label consistently across Create, Start, and Restart operations.
@ptone

ptone commented Mar 16, 2026

Copy link
Copy Markdown
Member

merged in 30a1b74 after local rebase

@ptone ptone closed this Mar 16, 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.

2 participants