CPLAT-10877: add ccx refs subcommand for PR/Jira references#68
Merged
Conversation
List the session's GitHub PR and Jira references with resolved status. - Plain output (--plain / piped): tab-separated kind/label/status/url, newest first, resolving PR state+review+checks and Jira status via the existing session.ResolveRefs path. - Interactive (TTY): reuses the urls picker filtered to pr/jira, with async inline status resolution and o:open-in-browser. CPLAT-10877
Kairo-Kim
approved these changes
Jul 15, 2026
mitrilmad
approved these changes
Jul 15, 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
JIRA: https://sendbird.atlassian.net/browse/CPLAT-10877
What
Adds a
ccx refsCLI subcommand that lists the current session's GitHub PR and Jira references with their resolved status.Behavior
ccx refs --plain): tab-separatedKIND label status url, newest first. Resolves PR state + review + checks and Jira status via the existingsession.ExtractSessionRefsFromFile+ResolveRefspath (TTL-cached, bounded concurrency).urlspicker, filtered to thepr/jiracategories, with async inline status resolution andoto open in the browser.↵jumps to the message in the full TUI.Implementation
internal/cli/cli.go:refscommand wiring +printRefs(plain, status-resolved).internal/cli/context.go:extractRefsWithContextreusesextractURLsWithContextand keeps onlypr/jira.internal/cli/picker.go:refskind resolves ref status likeurls; footer/filter hints for refs.main.go: subcommand dispatch + help text.Test
go build ./...,go test ./internal/cli/pass.ccx refs --plainemits the session's PR/Jira rows.