Skip to content

Allow setting default session directory via environment variable - #46

Open
jamestut wants to merge 1 commit into
mobydeck:mainfrom
jamestut:custom-session-dir
Open

Allow setting default session directory via environment variable#46
jamestut wants to merge 1 commit into
mobydeck:mainfrom
jamestut:custom-session-dir

Conversation

@jamestut

@jamestut jamestut commented Aug 3, 2026

Copy link
Copy Markdown

Background

The session directory is always computed from $HOME (~/.cache/atch/). This will be problematic when:

  • Containers share a home directory bind mount — multiple containers clobber each other's sockets and logs.
  • NFS-mounted centralised home — machines on the network see stale sockets from other hosts, causing connection failures or phantom sessions.

Solution

I'm adding ATCH_SESSION_DIR environment variable at get_session_dir() to allow user to override the default session directory location.

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