feat(agents): add PR title, draft, and status icons to sidebar#22952
Merged
feat(agents): add PR title, draft, and status icons to sidebar#22952
Conversation
ae1694a to
82270ef
Compare
Adds pull_request_title and pull_request_draft to the chat diff status pipeline (DB → provider → SDK → frontend). The GitHub provider now fetches the PR title alongside existing status fields. The agents sidebar now displays PR-state-aware icons for chats that have a linked pull request (when the chat is in waiting/completed state): - Open PR: GitPullRequestArrow (green) - Draft PR: GitPullRequestDraft (gray) - Merged PR: GitMerge (purple) - Closed PR: GitPullRequestClosed (red) Running/pending/paused/error chats keep their existing activity icons. Real-time sync requires no changes — the existing diff_status_change pubsub event already propagates the full ChatDiffStatus.
82270ef to
85d230a
Compare
hugodutka
approved these changes
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
pull_request_titleandpull_request_draftto the chat diff status pipeline (DB → provider → SDK → frontend). The GitHub provider now fetches the PR title alongside existing status fields.The agents sidebar now displays PR-state-aware icons for chats that have a linked pull request (when the chat is in waiting/completed state):
GitPullRequestArrow(green)GitPullRequestDraft(gray)GitMerge(purple)GitPullRequestClosed(red)Running/pending/paused/error chats keep their existing activity icons (spinner, pause, error triangle).
Changes
Database migration (
000432): Addspull_request_title TEXTandpull_request_draft BOOLEANcolumns tochat_diff_statuses.Backend pipeline:
gitprovider.PRStatusgains aTitlefieldtitlefrom the API responsegitsyncandcoderd/chats.gopass title + draft through to the DB upsertcodersdk.ChatDiffStatusexposes both new fields in the API responseFrontend (
AgentsSidebar.tsx): NewgetPRIconConfig()function resolves the appropriate Lucide git icon based onpull_request_stateandpull_request_draft. Only applies when the chat is in a terminal state (waiting/completed).Real-time sync: No changes needed — the existing
diff_status_changepubsub event already propagates the fullChatDiffStatusincluding the new fields.