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

Repeating output #1127

Open
qwertystars opened this issue Mar 25, 2024 · 4 comments
Open

Repeating output #1127

qwertystars opened this issue Mar 25, 2024 · 4 comments
Labels
Bug Something isn't working

Comments

@qwertystars
Copy link

Describe the bug

When rendering Markdown content, particularly within code snippets or text areas, the text is being repeated multiple times, despite it being intended to display only once. This repetition occurs within the rendered output, making it difficult to read and understand the Markdown content properly.
This maybe a issue of powershell. if Yes please create the gui fast.

Reproduce

Write this as prompt or any prompt that will make it generate output longer than the display size of monitor use. Make me a simple Pomodoro app.

Expected behavior

The Markdown content should be displayed exactly once, providing a clear and concise representation of the intended text.

Screenshots

Screenshot 2024-03-25 134756

Open Interpreter version

0.2.4

Python version

3.10.7

Operating System name and version

Windows 11

Additional context

No response

@qwertystars qwertystars added the Bug Something isn't working label Mar 25, 2024
@rustom
Copy link
Contributor

rustom commented Apr 2, 2024

Reproduced on MacOS, I don't think it's a Powershell issue. +1

@Notnaton
Copy link
Collaborator

Notnaton commented Apr 3, 2024

This is a known issue.

We rerender the output of the llm each time we get a token. This causes it to print a new "screen".

One possible fix would be to rerender everything once the llm is done.
I will explore this.

Moving to textual would solve this, I have explored doing that. Just need some motivation 😅

@bars0um
Copy link

bars0um commented Apr 23, 2024

Not sure if this is an ok fix, but it appears that if I switch the Live attribute vertical_overflow to "elipses" on line 12 of terminal_interface/components/base_block.py the issue somewhat subsides...I've not tested this fully yet and it may end up causing a different issue if your file output is bigger than your console height..."crop" may help avoid issues with overrunning the console buffer.

With either of those settings I'm able to comfortably debug and review output when I put the --debug flag and things don't jitter and repeat.

@davidkan6666
Copy link

Have the similar issue, the output will be repeated many times:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants