Skip to content

fix: Linux dead sessions, cache network, SSH auth#26

Merged
ethannortharc merged 1 commit intomainfrom
fix/linux-zellij-ssh-cache
Mar 11, 2026
Merged

fix: Linux dead sessions, cache network, SSH auth#26
ethannortharc merged 1 commit intomainfrom
fix/linux-zellij-ssh-cache

Conversation

@ethannortharc
Copy link
Copy Markdown
Owner

Summary

Three Linux-only fixes:

  1. Dead Zellij sessions: zellij delete-all-sessions now runs via exec_as_user instead of exec_cmd. On Incus, exec_cmd runs as root which can't see the non-root user's Zellij sessions — dead sessions were never cleaned up.

  2. Cached image network failure: post_cache_setup no longer calls wait_for_network(). Cached images only need local operations (copy git config, devbox binary) — the network check was unnecessary and caused failures.

  3. SSH password prompt in devbox code:

    • Fixed nixbld user detection in code.rs (added /home/ filter)
    • Added services.openssh with PasswordAuthentication = false to devbox-module.nix (was missing — only existed in standalone configuration.nix)

Test plan

  • cargo build + cargo test — all 71 tests pass
  • devbox shell on Linux with dead session — should auto-clean and attach
  • devbox create from cache on Linux — should skip network check
  • devbox code on Linux — should connect without password prompt

🤖 Generated with Claude Code

1. Zellij dead session cleanup now uses exec_as_user instead of
   exec_cmd — on Incus, exec_cmd runs as root which can't see
   the non-root user's Zellij sessions.

2. post_cache_setup no longer calls wait_for_network — cached
   images only need local file operations (git config, devbox binary),
   not internet access.

3. SSH auth for `devbox code`:
   - Fixed nixbld user detection in code.rs (same /home/ filter)
   - Added services.openssh with PasswordAuthentication=false to
     devbox-module.nix (was missing, only in standalone config)
   - Forces key-based auth, preventing password prompts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethannortharc ethannortharc merged commit 41ca320 into main Mar 11, 2026
0 of 2 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