orca
orca copied to clipboard
[Feature]: Let a folder-mode workspace switch to git mode after `git init`
Problem or use case
I can open a plain directory as a workspace (folder mode, no git). Often I later run git init inside that directory to start version-controlling it. But the workspace stays in folder mode — Orca doesn't notice it's now a git repo, so I don't get any of the git-mode features (branch, diff, worktrees, review, etc.) without closing and re-adding the workspace.
Proposed solution
- [ ] Detect when a folder-mode workspace has become a git repository (e.g. after
git initinside it) and offer to switch it to git mode in place. - [ ] Provide an explicit action too — e.g. a "Convert to git workspace" / "Re-detect git" option on the folder-mode workspace — so the user can trigger the switch on demand without re-adding the workspace.
Alternatives or additional context
- Today the only workaround is to remove the workspace and re-add the same path once it's a git repo, which loses the workspace's open tabs/session context.
- Should work for SSH/remote hosts too, not just local — the git detection needs to run against the workspace's actual host.
Closing as a duplicate of #3839. Disagree? Please respond! I will re-visit this ticket in 5 days. If you respond, I will re-open it 🙏.