feat: use label as container slug prefix when provided
lint / lint (push) Successful in 1m45s
test / unit (pull_request) Successful in 33s
test / integration (pull_request) Successful in 19s

When a user names a bottle via the TUI label field, that name is now
used as the slug prefix for the container identity instead of always
falling back to the agent name.
This commit is contained in:
2026-06-22 19:16:53 +00:00
parent 6e6890ebd9
commit e463670649
2 changed files with 32 additions and 1 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ from . import BottleSpec
def mint_slug(spec: BottleSpec) -> str:
"""Return the bottle identity: the recorded identity for a resume,
or a freshly minted one for a new start."""
return spec.identity or bottle_identity(spec.agent_name)
name = spec.label or spec.agent_name
return spec.identity or bottle_identity(name)
def write_launch_metadata(