fix(tui): repainted ssh topology flips

- Added renderer hooks for first-result placeholder replacement and partial-result settle repaints.\n- Enabled the hooks for SSH and covered the streamed-placeholder and settle seams.\n\nFixes #4314
This commit is contained in:
roboomp
2026-07-02 13:01:24 +00:00
parent 0ea6ea630b
commit cc97fada73
6 changed files with 122 additions and 3 deletions
+8
View File
@@ -392,4 +392,12 @@ export const sshToolRenderer = {
// land below and strand a duplicate pending header above the final frame
// ([#3177](https://github.com/can1357/oh-my-pi/issues/3177)).
provisionalPartialResult: true,
// Streamed args can initially render the SSH placeholder (`⏳ SSH: […]` /
// `$ …`), then the first partial result inserts the `Output` section and
// re-anchors the frame. Force a full repaint at that seam so placeholder rows
// do not survive in viewport/native scrollback.
forceFirstResultViewportRepaint: true,
// The provisional pending-result frame settles into the final `⇄ SSH: [host]`
// frame, so clear/replay the viewport at that topology flip too.
forceResultViewportRepaintOnSettle: true,
};