Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions agent_cli/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ def print_input_panel(
style: str = "bold blue",
) -> None:
"""Prints a panel with the input text."""
console.print(Panel(text, title=title, subtitle=subtitle, border_style=style))
console.print(
Panel(text, title=title, subtitle=subtitle, border_style=style),
soft_wrap=False,
)


def print_output_panel(
Expand All @@ -207,7 +210,10 @@ def print_output_panel(
style: str = "bold green",
) -> None:
"""Prints a panel with the output text."""
console.print(Panel(text, title=title, subtitle=subtitle, border_style=style))
console.print(
Panel(text, title=title, subtitle=subtitle, border_style=style),
soft_wrap=False,
)


def print_error_message(message: str, suggestion: str | None = None) -> None:
Expand All @@ -216,7 +222,10 @@ def print_error_message(message: str, suggestion: str | None = None) -> None:
if suggestion:
error_text.append("\n\n")
error_text.append(suggestion)
console.print(Panel(error_text, title="Error", border_style="bold red"))
console.print(
Panel(error_text, title="Error", border_style="bold red"),
soft_wrap=False,
)


def print_with_style(message: str, style: str = "bold green") -> None:
Expand Down