Skip to content

chore: persist bash history in the default dev container - #472

Merged
nozaq merged 1 commit into
mainfrom
claude/fervent-goldberg-14sa6t
Sep 13, 2026
Merged

nozaq merged 1 commit into
mainfrom
claude/fervent-goldberg-14sa6t

Conversation

@nozaq

@nozaq nozaq commented Sep 13, 2026

Copy link
Copy Markdown
Member

Applies the bash history persistence the templates repository ships to the dev container used for working in this repository.

Changes

  • .devcontainer/default/devcontainer.json: mount a ${devcontainerId}-bash-history volume on /home/dev/.local/state/bash, the directory the debian base points HISTFILE at, so the shell history survives a rebuild.
  • .devcontainer/default/Dockerfile: move the base pin to trixie-20260913, the first release that creates that directory as dev. Without it Docker would create the mount point and it would be owned by root.

The sandbox and feature dev containers are deliberately left alone: they exist to mirror the published images.

🤖 Generated with Claude Code

https://claude.ai/code/session_013U5NgFxAibDwMQQ13ZdZxh


Generated by Claude Code

The debian base sets HISTFILE to /home/dev/.local/state/bash/history, so a
named volume mounted on that directory keeps the shell history across container
rebuilds, matching what the templates repository now ships.

The base pin moves to the release that creates the directory: without it the
mount point would be created by Docker and owned by root instead of dev.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013U5NgFxAibDwMQQ13ZdZxh
@nozaq
nozaq marked this pull request as ready for review September 13, 2026 01:57
@nozaq
nozaq merged commit 38a9637 into main Sep 13, 2026
6 checks passed
@nozaq
nozaq deleted the claude/fervent-goldberg-14sa6t branch September 13, 2026 01:57
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.

2 participants