No Git repository or input box available — Git extension not found" when generating commit message via Source Control
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
macOS
Kiro Version
Latest version
Bug Description
Environment:
- Kiro: Latest version (macOS)
- OS: macOS (darwin, Apple Silicon)
- Git: 2.38.1 (installed at
/opt/homebrew/bin/git) - Shell: bash
Description:
When clicking the AI commit message generation button in the Source Control sidebar, Kiro displays the error:
"No Git repository or input box available — Git extension not found" Source: Kiro Agent
The Git repository is valid and fully functional. All Git operations work correctly from the terminal. The Source Control view may or may not show changed files, but the commit message generation feature fails consistently.
Steps to Reproduce:
- Open a workspace containing a valid Git repository with staged/unstaged changes
- Navigate to the Source Control view in the sidebar
- Click the Kiro AI button to generate a commit message
- Error appears: "No Git repository or input box available — Git extension not found"
Troubleshooting Already Attempted (all unsuccessful):
- Cleared all caches
- Reloaded window (
Developer: Reload Window) - Confirmed built-in Git and Git Base extensions are enabled
- Confirmed GitHub extension is enabled
- Set
git.pathexplicitly to/opt/homebrew/bin/git - Reopened the workspace via
File: Open Folderat the repo root - Fully quit Kiro (
Cmd+Q) and reopened - Reset workspace state (
Developer: Reset Workspace State) - Checked for extension conflicts — only Git, Git Base, and GitHub are running
- No stale
.git/index.lockfile present
Diagnostic Evidence:
git statusworks correctly — shows branch, staged files, and unstaged changesgit --versionreturnsgit version 2.38.1which gitreturns/opt/homebrew/bin/git.gitdirectory exists at workspace root- No
.git/index.lockstale file - Repository is on
mainbranch with active changes
Expected Behavior: Kiro should detect the Git repository and generate a commit message based on the current diff.
Actual Behavior: Kiro reports the Git extension is not found despite it being enabled and fully functional.
Steps to Reproduce
Steps to Reproduce:
- Open a workspace containing a valid Git repository with staged/unstaged changes
- Navigate to the Source Control view in the sidebar
- Click the Kiro AI button to generate a commit message
- Error appears: "No Git repository or input box available — Git extension not found"
Expected Behavior
Expected Behavior: Kiro should detect the Git repository and generate a commit message based on the current diff.
Conversation ID
No response
Additional Context
No response
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #7569: "Generate commit message" feature broken after recent Kiro update (95% similar)
- #6435: bug: AI-generated commit message fails and shows duplicate entries in dropdown (85% similar)
- #6125: generate commit message (85% similar)
- #5248: Kiro agents spam git repository error for cleaned-up subagent checkouts (85% similar)
- #6278: Powers: update fails with "No name was provided for author" — ignores global git config (82% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both report the same 'Generate commit message' feature being broken with Git extension not found errors, despite Git being properly configured and functional