feat(agent): richer deploy output with deployment name and links - #933
Merged
Conversation
|
|
JackNDwyer
force-pushed
the
jack/devx-641/deploy-output-links
branch
from
August 5, 2026 23:30
3229209 to
e0ed2c6
Compare
After a successful `lk agent deploy`, report the agent name, target deployment, and links to the agent details page and the agent console (deep-linked to the deployment). Name comes from the agent-level ListAgents field, which is ready at deploy time (the per-region field isn't populated until the agent is scraped). Falls back to a minimal status line if the lookup fails. Version is intentionally omitted: no source is both correct and ready synchronously at deploy time (the deploy API doesn't return it, the agent-level version is production-only, and the per-deployment version isn't scraped yet). Console deep-link carries the deployment as a query param. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
JackNDwyer
force-pushed
the
jack/devx-641/deploy-output-links
branch
from
August 6, 2026 13:55
e0ed2c6 to
d401f00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Part of the agent deployments beta polish (DEVX-641). Beta feedback (Ben): the end of
lk agent deployjust printsDeployed agentwith no indication of which deployment/version went live or where to go next. This makes the output actionable.Changes
After a successful
lk agent deploy, print:<deployment>isproductionwhen--deploymentis omitted, else the deployment name.ListAgentscall. If that lookup fails, output falls back to the minimal summary (Completed deployment of agent to <deployment>) — a successful deploy is never reported as an error.deploymentquery param oncloudConsoleURL.cloudAgentURLhelper builds the analytics (agent detail) link.lk agent start.Tests
TestCloudConsoleURLwith deployment-param cases (including query-escaping).TestCloudAgentURL.go build,go vet,gofmt, andgo test ./cmd/lk/all clean.Related: livekit/web#5406 (Console deployment badge), livekit/web#4660 (docs).