Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bracket logging in rich #753

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

aymeric-roucher
Copy link
Collaborator

Fixes #751

@@ -84,7 +84,7 @@ class LogLevel(IntEnum):
class AgentLogger:
def __init__(self, level: LogLevel = LogLevel.INFO):
self.level = level
self.console = Console()
self.console = Console(width=100)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@albertvillanova this is to fix a bug where terminal size is often wrongly detected to be as wide as the screen, which breaks the code (cf this slack message). This is arbitrary but probably a good value, wide enough for most code snippets.

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.

[BUG] Rich removes all [] in errors
1 participant