Skip to content

fix: move MOTD display to extension files for persistent disk compatibility#11

Open
wdvr wants to merge 1 commit into
mainfrom
fix/motd-extension-files
Open

fix: move MOTD display to extension files for persistent disk compatibility#11
wdvr wants to merge 1 commit into
mainfrom
fix/motd-extension-files

Conversation

@wdvr
Copy link
Copy Markdown
Owner

@wdvr wdvr commented Jan 21, 2026

Summary

  • Move MOTD display from profile files to extension files (.bashrc_ext, .zshrc_ext)
  • Add TTY checks to skip MOTD for Claude Code and non-interactive sessions
  • Add GPU_DEV_MOTD_SHOWN flag to prevent duplicate MOTD display

Why

Profile files (.bash_profile, .profile, .zprofile) are only copied on first reservation with a new persistent disk. Extension files are sourced on every shell session, making them the right place for MOTD display.

Test plan

  • Create new reservation, verify MOTD displays once on first login
  • Open second terminal, verify MOTD doesn't display again (same session)
  • Test with persistent disk - verify MOTD works without profile updates
  • Test Claude Code - verify MOTD doesn't interfere with non-interactive sessions

🤖 Generated with Claude Code

…bility

Move MOTD display from profile files (.bash_profile, .profile, .zprofile)
to extension files (.bashrc_ext, .zshrc_ext) with proper TTY checks.

This ensures MOTD works correctly on persistent disks without needing
profile updates on each reservation. The extension files are always
sourced and include:
- TTY checks to skip MOTD for Claude Code and scripts
- GPU_DEV_MOTD_SHOWN flag to show MOTD only once per session

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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