Skip to content

Commit

Permalink
fix: use vertical overflow in response rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
codito committed Jul 31, 2024
1 parent af76594 commit 29ca8ab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions arey/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ def stop_completion_handler(signal, frame):
)

with SignalContextManager(signal.SIGINT, stop_completion_handler):
with Live(
output,
console=console,
transient=True,
):
# Using transient renderable since we replace content with Markdown
# rendering upon complete. Vertical overflow allows auto scrolling text
# beyond the terminal height.
with Live(output, console=console, transient=True, vertical_overflow="visible"):
for response in run():
if stop_completion:
break
Expand Down

0 comments on commit 29ca8ab

Please sign in to comment.