Skip to content

fix: modernize stop command with label-based container discovery#8

Merged
pigmej merged 2 commits intomainfrom
fix_stop_cli
Oct 30, 2025
Merged

fix: modernize stop command with label-based container discovery#8
pigmej merged 2 commits intomainfrom
fix_stop_cli

Conversation

@pigmej
Copy link
Copy Markdown
Owner

@pigmej pigmej commented Oct 30, 2025

  • Replace getContainerName() with discoverAllAisanityContainers() using workspace mode
  • Add branch filtering to stop only containers for current branch
  • Remove all legacy fallback logic (devcontainer and workspace name patterns)
  • Update function to async for Promise-based discovery API
  • Add clear error messaging when no containers found for branch
  • Preserve existing --worktree and --all-worktrees options
  • Use stopContainers() utility for efficient batch operations

Fixes 'No such container: aisanity-cleanup' errors by using modern
label-based discovery instead of generated container names.

- Replace getContainerName() with discoverAllAisanityContainers() using workspace mode
- Add branch filtering to stop only containers for current branch
- Remove all legacy fallback logic (devcontainer and workspace name patterns)
- Update function to async for Promise-based discovery API
- Add clear error messaging when no containers found for branch
- Preserve existing --worktree and --all-worktrees options
- Use stopContainers() utility for efficient batch operations

Fixes 'No such container: aisanity-cleanup' errors by using modern
label-based discovery instead of generated container names.

BREAKING CHANGE: Default stop behavior now only stops containers for
current branch instead of all workspace containers
@pigmej pigmej merged commit 59bb2c6 into main Oct 30, 2025
3 checks passed
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