mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
fix(tui): the review items of #853 that go on top
The one-row nudge before a forced resize at an unchanged size runs only for a tmux-backed session. On a direct PTY the process is the agent itself, which got two height changes where master sent none. The unrelated table reformatting in docs/tui.md is dropped. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2c03e6bf3
commit
fcccdd07c5
4 files changed
+62
-34
No files matched your search
+4
-1
@@ -5704,7 +5704,10 @@ export class Session extends EventEmitter {
|
||||
// to that terminal at its next key. A one-row nudge first makes this
|
||||
// client the latest one, as a real resize does. Under `manual` with no
|
||||
// attach the window ignores the client's pty, so the agent sees nothing.
|
||||
if (!dimsChanged && rows > 1) {
|
||||
// Only for a tmux-backed session: on a direct PTY the process is the
|
||||
// agent itself, which would get two height changes for nothing (and
|
||||
// every height change costs Claude's inline renderer transcript lines).
|
||||
if (!dimsChanged && rows > 1 && this._useMux && this._muxSession) {
|
||||
this.nudgeThenResize(cols, rows);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user