This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch tymux
in repository terminology.

View the commit online.

commit dee1b94adb4644192fa4a9adba6382f1270a4f40
Author: [email protected] <[email protected]>
AuthorDate: Mon Mar 23 22:49:53 2026 -0600

    fix(tymux): send RESIZE on resume and log PAUSE send failures
    
    - Terminology native client now sends its grid dimensions back to the
      daemon on RESUME, so the PTY resizes from the hijacker's dimensions
      back to the restored client's size.
    - Log a warning if sending PAUSE to the existing PRIMARY fails.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
 src/bin/termd_tymux.c | 3 ++-
 src/bin/termio.c      | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/termd_tymux.c b/src/bin/termd_tymux.c
index f87118c5..f60d5ef2 100644
--- a/src/bin/termd_tymux.c
+++ b/src/bin/termd_tymux.c
@@ -867,7 +867,8 @@ termd_tymux_client_add(TermDTymux *sess, int cfd)
 
                      pp.cols = (uint32_t)sess->pty->w;
                      pp.rows = (uint32_t)sess->pty->h;
-                     termsrv_msg_send(c->fd, TSRV_MSG_PAUSE, &pp, sizeof(pp));
+                     if (termsrv_msg_send(c->fd, TSRV_MSG_PAUSE, &pp, sizeof(pp)) < 0)
+                       WRN("failed to send PAUSE to fd %d", c->fd);
                      c->role = CLIENT_PAUSED;
                      sess->paused_stack = eina_list_prepend(sess->paused_stack, c);
                      break;
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 8d78be6e..24f2df7e 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -3833,6 +3833,11 @@ _smart_tymux_resume(void *data)
    if (!sd || !sd->term) return;
    term_pause_set(sd->term, EINA_FALSE);
 
+   /* Send our dimensions so the daemon resizes the PTY back from the
+    * hijacker's size to ours. */
+   if (sd->tymux)
+     termtymux_resize(sd->tymux, sd->grid.w, sd->grid.h);
+
    /* Force a full repaint by triggering the change callback */
    if (sd->tymux && sd->tymux->cb_change.func)
      sd->tymux->cb_change.func(sd->tymux->cb_change.data);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to