Skip to content

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

@scott------

Description

@scott------

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingEnhancementNew feature or requestHelp RequiredExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions