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

command prompt window grows very long rapidly and looks a little jittery as OI is working #1006

Open
scott------ opened this issue Feb 9, 2024 · 1 comment
Labels
Bug Something isn't working Enhancement New feature or request Help Required Extra attention is needed

Comments

@scott------
Copy link

Describe the bug

When we run a simple prompt in OI, the command window can rapidly get filled with iterations of the entire stream over and over. I've attached pics to better explain.
oi_screen_bug2
oi_screen_bug1

My guess is when OI sends the chunk to the CMD window it is running in, it doesn't just add the current chunk that is being streamed, it adds the entire set of chunks for the current call to open-ai.

This behavior is consistent and can be repeated easily by ask OI to do something that involves multiple steps and watch the output.

One approach to resolve this could be to stream the returning chunks to a file and then use a python package like watchdog to just write to the CMD the new chunks as they arrive (appending to the content that is already there).

Reproduce

Run OI and ask it to do any medium to long type of multi step task especially if you ask it to write a program.

Expected behavior

Smooth UI/UX where only the latest chunks are appended to the current output.

Screenshots

oi_screen_bug2
oi_screen_bug1

Open Interpreter version

.0.2.0

Python version

3.11.4

Operating System name and version

windows 11

Additional context

No response

@scott------ scott------ added the Bug Something isn't working label Feb 9, 2024
@Notnaton
Copy link
Collaborator

Notnaton commented Feb 10, 2024

Would need to incorporate curses or something similar to fix this.
I am working on a replacement for the terminal_interface that fixes this: #976 it is more GUI like

@Notnaton Notnaton added Enhancement New feature or request Help Required Extra attention is needed labels Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Enhancement New feature or request Help Required Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants