From 320b81d8d1acc97449ac5b2f5951ef31b1508464 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 13 Sep 2026 00:58:46 +0000 Subject: [PATCH] chore: persist bash history in the dev container The golang base image 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 bare-devcontainer templates now ship. The image 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 Claude-Session: https://claude.ai/code/session_013U5NgFxAibDwMQQ13ZdZxh --- .devcontainer/devcontainer.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cda66f0..a244a74 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Go", - "image": "ghcr.io/bare-devcontainer/golang:1.27-trixie@sha256:ef804c36a9e4840e3c080da8af3a9d8d6b7a5536b061809a24c206a67a205eb0", + "image": "ghcr.io/bare-devcontainer/golang:1.27-trixie@sha256:7a34090cd9cba9ed877f5447fe0bba073eabf9c160f5f32e8d27fe1d3232f2a0", "features": { "ghcr.io/bare-devcontainer/features/claude-code:1.1.0": {} }, @@ -26,6 +26,12 @@ "source": "${devcontainerId}-golang-build-cache", "target": "/home/dev/.cache/go-build", "type": "volume" + }, + // Persist the shell history the image keeps in this directory. + { + "source": "${devcontainerId}-bash-history", + "target": "/home/dev/.local/state/bash", + "type": "volume" } ], "customizations": {