Skip to content

[agentbricks] Keep the recorded deployment name in dev's deploy step - #833

Open
elainewang-db wants to merge 1 commit into
databricks:mainfrom
elainewang-db:agentbricks-dev-panel-deploy-name
Open

elainewang-db wants to merge 1 commit into
databricks:mainfrom
elainewang-db:agentbricks-dev-panel-deploy-name

Conversation

@elainewang-db

Copy link
Copy Markdown
Contributor

What

agentbricks dev's "Agent is running" panel now suggests agentbricks deploy (deploying as agent-bricks-<recorded name>) when agent.toml records a [agent].deployment_name. Projects without one still get agentbricks deploy <directory>.

Why

The panel always built the step from the project directory's name (presentation/dev.py). deploy NAME records NAME in agent.toml, so following the suggestion renamed the deployment away from the one init recorded. Found while manually testing 0.8.0: init --name lg-ewrel0802108 lg-agent followed by dev suggested agentbricks deploy lg-agent. init's own next step is already a bare agentbricks deploy.

Changes

  • DevPreview carries the project's deployment_name; dev passes it to announce_local_url.
  • The deploy step is shared by the chat-UI and API-only panels.

Testing

  • New dev_test.py cases: a recorded name gives a bare agentbricks deploy row plus the app name (agentbricks and custom servers); an unnamed project keeps agentbricks deploy <dir>. dev_service_test.py checks the preview field.
  • Unit suite: 2750 passed. ruff check, ruff format --check and ty check are clean.

This pull request and its description were written by Isaac.

`agentbricks dev`'s next steps suggested `agentbricks deploy <directory>`.
`deploy NAME` records NAME in agent.toml, so following it renamed the
deployment away from the one `init` set up (and `init`'s own next step
is a bare `agentbricks deploy`). When agent.toml records a
deployment_name, suggest `agentbricks deploy` and say which app it
deploys to; otherwise keep naming it after the directory.

Co-authored-by: Isaac <no-reply@databricks.com>

This branch has not been deployed

No deployments
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.

1 participant