Skip to content

Fix: Prevent rich from swallowing Configuration objects in CLI output - #723

Merged
luisremis merged 3 commits into
developfrom
fix/issue-461
May 21, 2026
Merged

luisremis merged 3 commits into
developfrom
fix/issue-461

Conversation

@ad-claw000

Copy link
Copy Markdown
Contributor

Summary

Replaces square brackets with angle brackets in Configuration.__repr__.

Verification

Fixes a bug where adb config ls in Google Colab (and other environments with wide or unconstrained terminal widths) printed blank lines. The issue occurred because rich.console.Console parses strings wrapped in [ and ] as markup tags. When the repr of the configuration object was embedded within dictionary output by console.log, the entire configuration string was treated as an unclosed/invalid styling tag and subsequently swallowed without error.

By matching standard Python representation semantics (using < and >), we avoid clashes with rich's markdown engine.

Fixes #461.

Copilot AI review requested due to automatic review settings May 20, 2026 11:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adjusts Configuration.__repr__ so CLI output rendered via rich (e.g., adb config ls) no longer gets interpreted as Rich markup and swallowed in wide/unconstrained terminals (notably in Google Colab), addressing #461.

Changes:

  • Update Configuration.__repr__ to wrap the representation in angle brackets (<...>) instead of square brackets ([...]) to avoid Rich markup parsing.

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

Comment thread aperturedb/Configuration.py Resolved
Copilot AI review requested due to automatic review settings May 20, 2026 23:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

@luisremis
luisremis merged commit 2b1b065 into develop May 21, 2026
6 checks passed
@luisremis
luisremis deleted the fix/issue-461 branch May 21, 2026 00:55
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.

Google Colab fails to show some adb output

3 participants