fix(webcrt): resize hop PTY before nested CLI jump

Nested stelnet/telnet captures hop TTY width at start; Netmiko's default 511 cols made mid-line edit redraws wrap and garble in ~80-col WebCRT.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hansjone 2026-07-30 02:34:25 +00:00
parent b690914f18
commit b540ea21c1
6 changed files with 88 additions and 3 deletions

View file

@ -410,6 +410,8 @@ export type WebcrtSessionCreateResult = {
cols: number;
rows: number;
ws_path: string;
/** True when session used a vendor CLI hop (nested stelnet/telnet). */
cli_hop?: boolean;
};
export const createWebcrtSession = (body: {