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
|
|
||
| ## Branch targeting | ||
|
|
||
| `--branch-id <id>` is global, but currently supported only by sandbox commands. |
Contributor
There was a problem hiding this comment.
why is it called branch-id and not just branch? what is an example value that needs to be passed, is it really an id?
Contributor
Author
There was a problem hiding this comment.
The CLI now accepts only --branch and resolves the ID internally.
netanelgilad
previously approved these changes
Sep 14, 2026
|
|
||
| ## Branch targeting | ||
|
|
||
| `--branch <name>` and `--branch-id <id>` are global, but currently supported only by sandbox commands. |
Contributor
There was a problem hiding this comment.
we dont need both :) just branch.
users and agents have no way to know the id
Contributor
Author
There was a problem hiding this comment.
The ID flag is removed, and branches list now lets agents discover names directly.
Contributor
Author
|
Moved unchanged to internal PR #622 so trusted publishing and review workflows can run. |
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.
Sandbox commands target a Base44 branch by name with
--branch <name>. For example:The CLI resolves the exact name within the selected app and sends the ID to the sandbox bridge internally. Missing or ambiguous names fail before any sandbox operation.
--branch mainor no flag targets main. No checkout state is saved, and there is no public ID flag.All seven sandbox commands honor the global flag; unsupported commands such as functions pull/list reject it explicitly. Broader resource branch support remains separate work.
Validation: production bundle build, TypeScript typecheck, lint, Knip, and 37 mocked-HTTP CLI tests passed. No live E2E run.
Pairs with base44-dev/apper#23840, whose Builder-generated CLI instructions now include the selected branch name. MCP sandbox tools are an independent connection and do not invoke the CLI.
Branch discovery:
base44 --app-id <app-id> branches listreturns main and active branch names, with structured JSON output for agents; IDs remain internal.