Uh oh!
There was an error while loading. Please reload this page.
Ask Sourcebot list commits tool - #843
Conversation
- Add listCommits to toolNames constant and uiVisiblePartTypes - Create listCommitsTool with support for filtering by date range, author, and commit message - Implement ListCommitsToolComponent.tsx for UI display - Integrate tool into agent and detailsCard Co-authored-by: brendan <brendan@sourcebot.dev>
Cursor Agent can help with this pull request. Just |
Caution Review failedThe pull request is closed. WalkthroughAdds a new chat tool "listCommits": backend tool implementation, type bindings, agent registration, UI visibility, and a new React component to render commit lists (loading/error/success) in the chat details view. Changes
Sequence DiagramsequenceDiagram
participant Agent as Chat Agent
participant AgentReg as Agent Registry
participant Tool as listCommitsTool
participant GitAPI as Git API
participant UI as ListCommitsToolComponent
Agent->>AgentReg: request execute tool listCommits (params)
AgentReg->>Tool: invoke listCommitsTool with params
Tool->>GitAPI: call listCommits(query, since, until, author, maxCount)
GitAPI-->>Tool: return commit list or error
alt success
Tool->>Tool: map commits -> {hash, message, author, refs, date, totalCount}
Tool-->>AgentReg: return formatted output
else error
Tool-->>AgentReg: return service error
end
AgentReg-->>UI: deliver tool UI part (tool-listCommits)
UI->>UI: determine state (loading / error / success)
UI-->>UI: render collapsible commits list or error/no-results message
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Uh oh!
There was an error while loading. Please reload this page.
Add
listCommitstool to Ask Sourcebot to enable querying commit history for repositories.Linear Issue: SOU-338
Summary by CodeRabbit
New Features
Documentation