Support app branches in sandbox commands - #616
Open
theunreal wants to merge 2 commits into
Open
Conversation
theunreal
force-pushed
the
codex/sandbox-branch-support
branch
from
September 10, 2026 08:18
80c2ef8 to
e9c5d36
Compare
carmelc
previously approved these changes
Sep 10, 2026
| "--name <name>", | ||
| "Optional message/title for the checkpoint (defaults to an auto-generated title)", | ||
| ) | ||
| .option("--branch-id <id>", "Operate on a specific app branch") |
Contributor
There was a problem hiding this comment.
I am wondering if only the the sandbox cli commands need it, like don'tfunctions pull/entity pull (get the backend code and entity schemas) need the branch id too (I am not sure if it is covered in the feature), if it is relevant in more commands you can consider adding it to packages/cli/src/cli/program.ts (global params added to all cli commands)
Author
There was a problem hiding this comment.
Good point, I made --branch-id global. sandbox commands support it, while unsupported commands like functions pull explicitly reject it instead of silently targeting main.
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
--branch-id <id>global and forward it through all seven sandbox commandsScope
Branch support is currently sandbox-only.
functions pull/listread the app-level deployed-function map; merely passing a branch query parameter is not sufficient. They now reject explicit branch scope, as do other unsupported commands. There is noentities pullcommand in this CLI; use sandbox file reads for branch source files. Full branch-aware resource pull support remains separate backend/CLI work.Testing
git diff --checkCoordination
Pairs with base44-dev/apper#23840 for the sandbox-based local-agent handoff. The CLI can release first: the old backend rejects branch-scoped sandbox payloads rather than ignoring them, and commands without the flag are unchanged.