Summary
The "Deploy via Git" command shown in the dashboard, and the URL output by caution init, both contain the SSH port 2222 duplicated, producing an invalid URL that fails with a
hostname resolution error.
Steps to reproduce
- Run caution init in a project directory, or
- Open the app page in the Caution dashboard and look at the "Deploy via Git" section
Actual behaviour
The generated URL contains the port twice:
git remote add caution ssh://git@18.215.248.213:2222:2222/d9860409-a48f-4678-83c0-75ae42f0ca9d.git
Attempting to use this URL fails immediately:
ssh: Could not resolve hostname 18.215.248.213:2222:2222: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Expected behaviour
The port should appear only once:
git remote add caution ssh://git@18.215.248.213:2222/d9860409-a48f-4678-83c0-75ae42f0ca9d.git
Workaround
Manually fix the remote URL after caution init:
git remote set-url caution ssh://git@:2222/.git
Environment
- macOS Darwin 25.5.0, Apple Silicon
- caution 0.1.0
- Self-hosted backend