Use label as container slug prefix when provided #242
Reference in New Issue
Block a user
Delete Branch "use-label-as-container-slug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mint_sluginresolve_common.pynow usesspec.labelas the slug prefix when the user has named the bottle via the TUI label field, falling back tospec.agent_namewhen no label is given.spec.identity(the resume path) still takes precedence over both.TestMintSlugcover the no-label fallback, label-as-prefix, label-slugification, and identity-precedence cases.Not quite what I wanted: the slug should use the label when provided. This may introduce name conflicts/collisions, but this is ok: we don't want users to use the same name for multiple agents.
We should check that the name is valid when assigning a label, and if an agent with that name and agent is already running, the cli prompt where we ask for the label again with a disclaimer that says " already in use"