Skip to content

feat(cli): rich table for tags, fzf preview for select (#773) - #795

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/rich-formatting
May 4, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/rich-formatting

Conversation

@Sinity

@Sinity Sinity commented May 4, 2026

Copy link
Copy Markdown
Owner

Replace manual column alignment in tags with rich Table. Add fzf preview showing provider/date/title/ID.

Replace manual column alignment in tags command with rich Table.
Add fzf --preview showing provider/date/title/ID in select verb.
List and completions already used rich/theme consistently.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Copilot AI review requested due to automatic review settings May 4, 2026 02:30
@Sinity
Sinity merged commit 8a84434 into master May 4, 2026
@Sinity
Sinity deleted the feature/feat/rich-formatting branch May 4, 2026 02:30
@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 11 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8a0f32cb-1bd9-43b0-befd-710121ee30bf

📥 Commits

Reviewing files that changed from the base of the PR and between b446236 and 6e7751d.

📒 Files selected for processing (2)
  • polylogue/cli/commands/tags.py
  • polylogue/cli/select.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/rich-formatting

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.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 28 minutes and 11 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e7751d31c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/cli/select.py Resolved
Comment thread polylogue/cli/select.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CLI output/UX for tag listing and conversation selection by adopting richer terminal rendering and adding an fzf preview for selection.

Changes:

  • Add an fzf preview panel for conversation selection showing provider/date/title/ID.
  • Replace manual tag column alignment with a Rich Table render.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
polylogue/cli/select.py Changes fzf input formatting and adds a new preview property used for fzf preview output.
polylogue/cli/commands/tags.py Switches tag listing output from manual spacing to Rich table rendering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread polylogue/cli/select.py
Comment on lines +60 to +63
@property
def preview(self) -> str:
date = self.date or "unknown"
return f"Provider: {self.provider}\nDate: {date}\nTitle: {self.title}\nID: {self.conversation_id}"
Comment thread polylogue/cli/select.py
Comment on lines 55 to +58
@property
def label(self) -> str:
date = self.date or "unknown"
return f"{self.provider} | {date} | {self.title} | {self.conversation_id}"
return f"{self.provider} | {date} | {self.title}"
Comment thread polylogue/cli/select.py
Comment on lines 94 to +95
def _fzf_input(rows: list[SelectConversationRow]) -> str:
return "\n".join(f"{row.conversation_id}\t{row.label}" for row in rows)
return "\n".join(f"{row.conversation_id}\t{row.label}\t{row.preview}" for row in rows)
Comment thread polylogue/cli/select.py
Comment on lines 94 to +95
def _fzf_input(rows: list[SelectConversationRow]) -> str:
return "\n".join(f"{row.conversation_id}\t{row.label}" for row in rows)
return "\n".join(f"{row.conversation_id}\t{row.label}\t{row.preview}" for row in rows)
Comment on lines +53 to +54
console = Console()
table = Table(title=f"Tags ({provider or 'all providers'}, {len(tags)} total)")
Comment on lines +50 to +54
from rich.console import Console
from rich.table import Table

console = Console()
table = Table(title=f"Tags ({provider or 'all providers'}, {len(tags)} total)")
Sinity added a commit that referenced this pull request May 7, 2026
Replace manual column alignment in tags with rich Table. Add fzf preview
showing provider/date/title/ID.

Co-authored-by: Claude Opus 4.7 <[email protected]>
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 60.F057 / P1: fixed-already at the checked revision: The preview is now composed with spaces rather than embedded line separators at polylogue/cli/select.py:55. The normal preview no longer creates several newline-delimited fzf records for one session.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 61.F133 / P2: fixed-already at the checked revision: polylogue/cli/select.py:45 includes the full session ID in each fallback chooser label. Sessions sharing origin, date, and title therefore no longer have identical labels that resolve to the first row.

Only the rows listed above are dispositioned. Held findings remain open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants