Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

No Git repository or input box available — Git extension not found" when generating commit message via Source Control

Open AbdelrahmanElboshi opened this issue 7 months ago • 1 comments

Before opening, please confirm:

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:

  1. Open a workspace containing a valid Git repository with staged/unstaged changes
  2. Navigate to the Source Control view in the sidebar
  3. Click the Kiro AI button to generate a commit message
  4. Error appears: "No Git repository or input box available — Git extension not found"

Troubleshooting Already Attempted (all unsuccessful):

  1. Cleared all caches
  2. Reloaded window (Developer: Reload Window)
  3. Confirmed built-in Git and Git Base extensions are enabled
  4. Confirmed GitHub extension is enabled
  5. Set git.path explicitly to /opt/homebrew/bin/git
  6. Reopened the workspace via File: Open Folder at the repo root
  7. Fully quit Kiro (Cmd+Q) and reopened
  8. Reset workspace state (Developer: Reset Workspace State)
  9. Checked for extension conflicts — only Git, Git Base, and GitHub are running
  10. No stale .git/index.lock file present

Diagnostic Evidence:

  • git status works correctly — shows branch, staged files, and unstaged changes
  • git --version returns git version 2.38.1
  • which git returns /opt/homebrew/bin/git
  • .git directory exists at workspace root
  • No .git/index.lock stale file
  • Repository is on main branch 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:

  1. Open a workspace containing a valid Git repository with staged/unstaged changes
  2. Navigate to the Source Control view in the sidebar
  3. Click the Kiro AI button to generate a commit message
  4. 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

AbdelrahmanElboshi avatar Apr 22 '26 17:04 AbdelrahmanElboshi

🤖 Potential Duplicate Detected

This issue appears to be similar to:

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

github-actions[bot] avatar Apr 22 '26 17:04 github-actions[bot]