Skip to content

Fix nx attach by setting SCREENDIR environment variable - #146

Merged
elyxlz merged 2 commits into
masterfrom
fix/nx-attach-screendir
Nov 24, 2025
Merged

Fix nx attach by setting SCREENDIR environment variable#146
elyxlz merged 2 commits into
masterfrom
fix/nx-attach-screendir

Conversation

@elyxlz

@elyxlz elyxlz commented Nov 24, 2025

Copy link
Copy Markdown
Owner

Summary

Fixes nx attach command which was unable to find screen sessions after PR #145 was merged.

Root Cause

The server creates screen sessions in /tmp/nexus-screen/ (see src/nexus/server/core/job.py:236-241), but the client attach commands weren't setting the SCREENDIR environment variable. This caused screen to look in the default directory instead of the custom location.

Changes

  • Added env SCREENDIR=/tmp/nexus-screen to remote SSH attach command
  • Added env SCREENDIR=/tmp/nexus-screen to local sudo attach command

Test Plan

  • Verify nx attach <job_id> works on local target
  • Verify nx attach <job_id> works on remote target
  • Confirm screen sessions are found in /tmp/nexus-screen/

🤖 Generated with Claude Code

elyxlz and others added 2 commits November 24, 2025 13:34
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 <noreply@anthropic.com>
@elyxlz
elyxlz merged commit bd2f64e into master Nov 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant