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

[Bug]: if Jupyter Shell output has a long single line output, the UI container grows too wide and goes offscreen #4714

Open
1 task done
diwu-sf opened this issue Nov 3, 2024 · 1 comment
Labels
bug Something isn't working frontend Related to frontend

Comments

@diwu-sf
Copy link

diwu-sf commented Nov 3, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

To repro:

  • Make the agent run a python script in the jupyter shell that outputs a really long line
  • Hint, maybe have a raw file with a single extra wide line and just ask the agent to read the file
  • In the UI, switch to the Jupyter tab, notice the UI will grow extra wide and potentially go off screen

Switching between the workspace and the Jupyter tab will also somehow make the outer container of the right hand side of the UI grow wider and squeeze the left side conversation box narrower.

I think the fix should be along the lines of adding wrapLongLines={true} to the Syntaxhighlighter in the Jupyter.tsx file.
However, even after adding that, the width of the jupyter container will still grow wider when switching between the workspace tab and the jupyter tab.

OpenHands Installation

Docker command in README

OpenHands Version

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

@diwu-sf diwu-sf added the bug Something isn't working label Nov 3, 2024
@mamoodi mamoodi added the frontend Related to frontend label Nov 4, 2024
@mamoodi
Copy link
Collaborator

mamoodi commented Nov 4, 2024

Yep we've definitely seen the Jupyter tab act weird. Thanks for opening this issue!

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

No branches or pull requests

2 participants