Skip to content

feat: Add mount paths configuration and container naming#1

Open
kiro-agent[bot] wants to merge 2 commits intomainfrom
feat/mount-paths-and-container-naming
Open

feat: Add mount paths configuration and container naming#1
kiro-agent[bot] wants to merge 2 commits intomainfrom
feat/mount-paths-and-container-naming

Conversation

@kiro-agent
Copy link
Copy Markdown

@kiro-agent kiro-agent bot commented Feb 23, 2026

This pull request was generated by @kiro-agent 👻

Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent


Summary

Adds two features that differentiate this app from existing container management tools:

  1. Common Mount Paths Configuration - A new Settings view where users can configure directories on their Mac that should be available inside containers. Useful for running AI Agents in isolated containers while giving them access to specific trusted directories.

  2. Container Naming on Copy - When copying a run command to clipboard, users can now specify a container name and select which mount paths to include. This makes it easy to identify containers in the running containers list.

Changes

  • Models/MountPath.swift - Data model for mount path configuration
  • ViewModels/SettingsViewModel.swift - ViewModel for managing mount paths with persistence
  • Views/SettingsView.swift - Full settings UI with add/rename/delete functionality and folder picker
  • Views/Components/CopyRunCommandView.swift - Sheet dialog for configuring container name and mount paths before copying
  • ViewModels/ImagesViewModel.swift - Added buildRunCommand and copyCommand methods
  • Views/ImagesListView.swift - Terminal button now opens the CopyRunCommandView sheet
  • Views/ContentView.swift - Added Settings to sidebar navigation
  • Utilities/AppConfiguration.swift - Extended with mountPaths storage via UserDefaults

Example Command Output

/usr/local/bin/container run -it --name myagent -v "/Users/me/projects":"/Users/me/projects" alpine:latest /bin/sh

User Flow

  1. Go to Settings → Click + → Select a folder → Give it a name (e.g., "Projects")
  2. Go to Images → Click terminal icon on any image
  3. Enter container name (optional) and select which mount paths to include
  4. Click Copy to Clipboard → Paste and run in terminal

root and others added 2 commits February 23, 2026 00:16
- Add MountPath model with Codable, Identifiable, Hashable conformance
- Extend AppConfiguration with mountPaths storage using UserDefaults JSON
- Add SettingsViewModel with @observable pattern for path management
- Create SettingsView with table listing paths, add/edit/delete actions
- Add Settings to sidebar navigation in ContentView

Co-authored-by: Ryan Cormack <1962883+ryancormack@users.noreply.github.com>
- Create CopyRunCommandView.swift sheet with container name input and
  mount path checkboxes for selecting which paths to include
- Add buildRunCommand and copyCommand methods to ImagesViewModel
- Update ImagesListView to show CopyRunCommandView sheet when clicking
  the terminal icon instead of copying directly
- Generated command includes --name flag when name is provided and
  -v flags for each selected mount path with quoted paths for spaces

Co-authored-by: Ryan Cormack <1962883+ryancormack@users.noreply.github.com>
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.

0 participants