fix(terminal): reduce tmux session viewport#3394
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
|
✅ Review complete. This review was performed through OpenHands Cloud Automation. You can log in and view the conversation here. |
all-hands-bot
left a comment
There was a problem hiding this comment.
🟢 Good taste. No code issues found in this small constants/test update.
Leaving this as COMMENT rather than APPROVE because it changes terminal/tmux behavior, which repo guidance treats as eval-sensitive; a human maintainer should decide after any lightweight eval/manual validation.
[RISK ASSESSMENT]
- [Overall PR]
⚠️ Risk Assessment: 🟡 MEDIUM
Small, well-scoped terminal backend change, but viewport sizing can affect output wrapping and agent observations.
VERDICT: ✅ Worth merging after human maintainer validation.
Reviewed by an AI agent (OpenHands) on behalf of the user.
Was this automated review useful? React with 👍 or 👎 to this review to help us measure review quality.
Workflow run: https://github.com/OpenHands/software-agent-sdk/actions/runs/26501778228
all-hands-bot
left a comment
There was a problem hiding this comment.
Good targeted fix for #2806 — shrinking the 1,000,000-cell viewport (1000x1000) to 51,200 cells (256x200) is a clean, minimal change with clear motivation. One substantive concern about the regression test should be addressed before merge; a secondary note on the constants comment is advisory only.
This review was generated by an AI agent (OpenHands) on behalf of the user through OpenHands Automation. View conversation
|
hey @serejaris thanks for the contribution. It looks fine to me, but I would like to run an eval just to be sure nothing is breaking ;-). |
|
Evaluation Triggered
|
|
Follow-up pushed in 3c8eae7 to address the review feedback. What changed:
Small note: I did not use the suggested Validation after rebasing onto the latest fork branch: Both passed locally. |
Why
Fixes #2806. The tmux backend currently creates sessions with a
1000x1000viewport. That gives each detached session a million-cell virtual terminal grid, which the issue reporter traced to high kernel CPU while tmux processes PTY output.Summary
1000x1000to256x200.HISTORY_LIMITunchanged so scrollback retention remains controlled by history, not viewport height.Issue Number
Fixes #2806
How to Test
Pre-fix regression proof:
Before the fix, this failed with:
Post-fix validation:
Manual tmux smoke after the fix:
Note:
uv runprinted an existing warning while parsingpyproject.toml(exclude-newer = "7 days"), but the commands completed successfully.Video/Screenshots
Not applicable; terminal backend change.
Type
Notes
I did not change the history limit. The fix only reduces the visible tmux viewport size used when creating sessions.