When the repo directory already existed from a previous init (e.g. local-only init without remote), the origin remote was missing. Now initRepo() verifies and sets/updates the remote on every startup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>