This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/36/head
in repository terminology.
View the commit online.
commit ead2535fdac6206eeed802dbcebef8624dabd494
Author: [email protected] <[email protected]>
AuthorDate: Thu Mar 19 23:17:22 2026 -0600
fix: tymux new attaches inline instead of exec'ing terminology
tymux new was calling execlp("terminology", "--tymux", name) which
fails if the installed terminology doesn't have --tymux support yet.
Instead, after spawning the daemon, call cmd_attach directly to
attach inline as a terminal proxy — consistent with tymux attach
behavior and avoids any dependency on the installed terminology binary.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
src/bin/tymux.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/bin/tymux.c b/src/bin/tymux.c
index 752f25f7..b9ba8235 100644
--- a/src/bin/tymux.c
+++ b/src/bin/tymux.c
@@ -880,6 +880,8 @@ cmd_list(void)
return 0;
}
+static int cmd_attach(int argc, char **argv);
+
static int
cmd_new(int argc, char **argv)
{
@@ -980,13 +982,10 @@ cmd_new(int argc, char **argv)
printf("Session '%s' created.\n", name);
- /* Advertise the session name so nested tymux invocations can warn. */
- setenv("TYMUX_SESSION", name, 1);
-
- /* Replace this process with terminology, connecting to the new session. */
- execlp("terminology", "terminology", "--tymux", name, (char *)NULL);
- perror("tymux: exec terminology");
- return 1;
+ /* Attach inline — reuse cmd_attach which acts as a terminal proxy. */
+ /* Build a synthetic argv for cmd_attach: "attach <name>" */
+ char *attach_argv[] = { "tymux", "attach", (char *)name };
+ return cmd_attach(3, attach_argv);
}
/*
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.