Add pinned devcontainer templates with persisted rebuild state#22
Merged
PabloZaiden merged 4 commits intoApr 23, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a built-in devcontainer template catalog and updates workspace state persistence so that rebuilds can reuse the previously selected configuration source (repo vs template).
Changes:
- Introduces
devbox templatesanddevbox up --template <name>for selecting pinned built-in devcontainer templates. - Extends workspace state (STATE_VERSION 2) to persist
configSourceand optional template details/config for rebuild. - Updates status output and tests to reflect template/source metadata and the new persisted state behavior.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents --template, templates, and rebuild behavior with persisted config source. |
| src/arise.ts | Allows stored sourceConfigPath to be nullable (template-backed workspaces). |
| src/cli.ts | Adds templates command and routes up/rebuild through resolveWorkspaceConfig; keeps state on down. |
| src/constants.ts | Bumps STATE_VERSION to 2. |
| src/core.ts | Adds template-related state/types, CLI arg parsing for --template, and resolveWorkspaceConfig. |
| src/status.ts | Exposes config source/template metadata in status; reads config hints from template config when applicable. |
| src/templates.ts | Adds built-in template catalog and listing/lookup helpers. |
| tests/arise.test.ts | Updates expected workspace state shape/version. |
| tests/core.test.ts | Adds/updates arg parsing tests for templates and --template validation. |
| tests/examples.test.ts | Adds an example test for template-backed workspaces and updates state persistence expectations. |
| tests/status.test.ts | Updates expected workspace state shape/version for status scenarios. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Make Bun use the pinned oven/bun image, remove stale v1 error text, and keep rebuilds on the saved template source instead of later repo devcontainer discovery.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Files
Branches
mainadd-devcontainer-template-catalog-with-t-0ed64f1