Skip to content

fix(init): local by default, park the Dev Container mxcli writes - #242

Closed
MendixMau wants to merge 1 commit into
masterfrom
fix/no-devcontainer
Closed

MendixMau wants to merge 1 commit into
masterfrom
fix/no-devcontainer

Conversation

@MendixMau

Copy link
Copy Markdown
Owner

What changed and why

mxcli new / mxcli init always writes .devcontainer/, and VS Code then offers (and remembers) "Reopen in Container". That container is a second machine: no claude login, no dotfiles, and its postCreateCommand installs claude to ~/.local/bin without adding it to PATH. Local use was always the toolkit's intent.

  • bin/init-project.sh: moves .devcontainer/ to .mxtk-backup/devcontainer-<stamp> unless MXTK_KEEP_DEVCONTAINER=1. Nothing is deleted, idempotent.
  • README.md: "say no" to the reopen prompt, how to get back out (Reopen Folder Locally), the devcontainer lane stays opt-in.
  • CHANGELOG.md: line under Unreleased.

Field evidence

Incident 2026-10-08: a first-time user followed the docs, landed in the container with claude: command not found and a fresh login prompt, and asked how to get rid of it. The new init step was probed on a scratch project with a .devcontainer/ present: folder moved, message printed, re-run is a no-op.

Checklist

  • Size cap: 3 files, +24/−7
  • Test tier: T0 (bash -n, scratch probe, leak guard clean)
  • CHANGELOG line in the same commit
  • No client data

🤖 Generated with Claude Code

https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw


Generated by Claude Code

`mxcli new` / `mxcli init` always writes `.devcontainer/`, and VS Code then offers (and
remembers) "Reopen in Container". A first-time user followed the docs on 2026-10-08 and
landed inside that container with "claude: command not found" (the template installs
claude to ~/.local/bin and never adds it to PATH) and a fresh Claude login prompt, then
asked how to get rid of the container. Local use was always the intent.

- init-project.sh moves `.devcontainer/` to `.mxtk-backup/devcontainer-<stamp>` unless
  MXTK_KEEP_DEVCONTAINER=1. Nothing deleted, idempotent, probed on a scratch project.
- README: "say no" to the reopen prompt, how to get back out, the lane stays opt-in.
- CHANGELOG line under Unreleased.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
MendixMau added a commit that referenced this pull request Oct 8, 2026
Squash of integration/2026-10-08, which merges:

- #225 perf(ui-loop): test-stack-up.sh recognises a live mxcli run --local
- #231 fix(sync): sync-project.sh no longer exits 1 silently before its bin/ refresh
- #242 fix(init): local by default, no Dev Container
- #243 docs(lint): process/lint-backlog.md, the lint rollout plan
- #247 new(lint): the lint gate keeps a ledger
- #249 learn(test): skills/e2e-locators-that-lie.md
- #250 learn(skills): unhappy-path-testing.md
- #251 fix(testing-shape): mxcli test --local shares the deploy directory (#230)
- #252 fix(obligations): LOOK staleness reads the newest VALID AT stamp (#155)
- #253 docs(lint): quality-source review, Batch 4 backlog rows and skill additions
- #254 fix(lint): CONV020 works out of the box, page navigation counts as feedback (#229, #245)
- #255 fix(e2e): journey-runner rung 2 runs for a negative-only span claim (#150)
- #256 fix(gates): Stage 6 Surface, source-sufficiency title, ${JOURNEY_DIR} manifest token (#233, #234, #235)

Verified on the branch: tests/run-tests.sh 33/0, tests/test-lint-delivery.sh ALL GREEN, tests/wave2 73/75 (two environmental), render-routing --check, check-scripts, check-portability, leak guard, check-no-private-citations, check-pr-discipline all clean; scaffold smoke run without crashes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
@MendixMau

Copy link
Copy Markdown
Owner Author

Merged into master via integration PR #258 (squash 9dd9be4), on the maintainer's approval. Closing this PR; its branch is part of that squash.


Generated by Claude Code

@MendixMau MendixMau closed this Oct 8, 2026
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