From 53be7f22ef100028d687d8762b484769d49879f2 Mon Sep 17 00:00:00 2001 From: elyxlz Date: Mon, 24 Nov 2025 13:11:10 +0000 Subject: [PATCH 1/2] Fix nx attach by setting SCREENDIR environment variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The server creates screen sessions in /tmp/nexus-screen/ but the client attach command was looking in the default screen directory. Added SCREENDIR=/tmp/nexus-screen to both remote and local attach commands to match where the server creates sessions. Fixes the 'There is no screen to be resumed' error when attaching to jobs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/nexus/cli/jobs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nexus/cli/jobs.py b/src/nexus/cli/jobs.py index 14d7383..e9db046 100644 --- a/src/nexus/cli/jobs.py +++ b/src/nexus/cli/jobs.py @@ -1179,6 +1179,8 @@ def attach_to_job(cfg: config.NexusCliConfig, target: str | None = None, target_ "sudo", "-u", "nexus", + "env", + "SCREENDIR=/tmp/nexus-screen", "screen", "-r", screen_session_name, @@ -1194,7 +1196,7 @@ def attach_to_job(cfg: config.NexusCliConfig, target: str | None = None, target_ current_user_exit_code = subprocess.call(["screen", "-x", f"nexus/{screen_session_name}"]) if current_user_exit_code != 0: - exit_code = subprocess.call(["sudo", "-u", "nexus", "screen", "-r", screen_session_name]) + exit_code = subprocess.call(["sudo", "-u", "nexus", "env", "SCREENDIR=/tmp/nexus-screen", "screen", "-r", screen_session_name]) if exit_code != 0: print(colored("Screen session not found. Available sessions:", "yellow")) From c0d98189e222c4ef957766a868eb919016a59821 Mon Sep 17 00:00:00 2001 From: elyxlz Date: Mon, 24 Nov 2025 13:39:01 +0000 Subject: [PATCH 2/2] Bump version to 0.5.33 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4f18ea2..fe856d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nexusai" -version = "0.5.32" +version = "0.5.33" description = "Add your description here" readme = "README.md" requires-python = ">=3.9" diff --git a/uv.lock b/uv.lock index 90f1378..f53242f 100644 --- a/uv.lock +++ b/uv.lock @@ -852,7 +852,7 @@ wheels = [ [[package]] name = "nexusai" -version = "0.5.32" +version = "0.5.33" source = { editable = "." } dependencies = [ { name = "aiohttp" },