Skip to content

[DT-400][DT-4347] Persist Claude Code and Codex config across devcontainer rebuilds - #3176

Merged
fboulnois merged 1 commit into
fb-dt-400-devcontainer-updatefrom
fb-dt-400-persist-claude-codex-config
Oct 26, 2026
Merged

fboulnois merged 1 commit into
fb-dt-400-devcontainer-updatefrom
fb-dt-400-persist-claude-codex-config

Conversation

@fboulnois

@fboulnois fboulnois commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Addresses

https://broadworkbench.atlassian.net/browse/DT-400
https://broadworkbench.atlassian.net/browse/DT-4347

Summary

Follow up to #3175 .

Persist Claude Code and Codex config across devcontainer rebuilds by bind-mounting them from the host.

  • Create ~/.claude and ~/.codex on the host before startup
  • Bind-mount both into /home/vscode
  • Set CLAUDE_CONFIG_DIR and CODEX_HOME to the mounted paths

Have you read CONTRIBUTING.md lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@fboulnois
fboulnois requested a review from a team as a code owner October 22, 2026 19:41
@fboulnois
fboulnois requested review from otchet-broad and rushtong and a balanced review from Copilot and removed request for a team October 22, 2026 19:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The host initialization command and home-directory resolution prevent startup on standard native Windows setups.

1 open issue
What changed in this PR

This follow-up to #3175 persists Claude Code and Codex configuration across devcontainer rebuilds by sharing configuration directories with the host.

Changes:

  • Create and bind-mount host configuration directories, with matching environment variables.
  • Add Claude Code and ChatGPT VS Code extensions.
  • Update Docker-in-Docker to 4.1.3 and the Java feature lock to 1.8.3.
File Description
.devcontainer/​devcontainer.json Adds configuration persistence and editor extensions; updates Docker-in-Docker.
.devcontainer/​devcontainer-lock.json Pins updated Docker-in-Docker and Java features.

Review effort: Balanced

Comment thread .devcontainer/devcontainer.json
@fboulnois fboulnois changed the title [DT-400] Persist Claude Code and Codex config across devcontainer rebuilds [DT-400][DT-4347] Persist Claude Code and Codex config across devcontainer rebuilds Oct 22, 2026

@rushtong rushtong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

@fboulnois
fboulnois changed the base branch from develop to fb-dt-400-devcontainer-update October 22, 2026 20:17

@otchet-broad otchet-broad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fboulnois
fboulnois added this pull request to stack #3183 October 26, 2026 15:09
@fboulnois
fboulnois force-pushed the fb-dt-400-persist-claude-codex-config branch from e8ca6ea to a6fe89e Compare October 26, 2026 15:10
@sonarqubecloud

Copy link
Copy Markdown

@fboulnois
fboulnois merged commit acc0030 into develop Oct 26, 2026
11 checks passed
@fboulnois
fboulnois deleted the fb-dt-400-persist-claude-codex-config branch October 26, 2026 16:20
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.

4 participants