Clarify Agentbox names and invariants

Co-authored-by: codegirl007 <codegirl-007@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-08-18 06:05:46 +00:00
co-authored by codegirl007
parent 4d2fb4a733
commit e702497996
11 changed files with 35 additions and 19 deletions
@@ -17,7 +17,7 @@ func (environmentBackend *Environment) Launch(
ctx context.Context,
application environment.Command,
) error {
fmt.Fprintln(environmentBackend.config.Output, "Uploading build...")
fmt.Fprintln(environmentBackend.config.Output, "Staging application...")
executable, err := os.Open(application.Path)
if err != nil {
return fmt.Errorf("open application: %w", err)
@@ -47,7 +47,7 @@ func (environmentBackend *Environment) Launch(
fmt.Fprintln(environmentBackend.config.Output, "Launching application...")
dockerArguments := []string{"exec", "-d"}
for variableName, variableValue := range application.Env {
for variableName, variableValue := range application.EnvironmentVariables {
dockerArguments = append(
dockerArguments,
"-e",
@@ -69,6 +69,8 @@ func (environmentBackend *Environment) Start(ctx context.Context) error {
); err != nil {
return fmt.Errorf("start environment: %w", err)
}
// entrypoint.sh creates this file only after both Xvfb and Openbox accept
// requests. It is the readiness handshake between host and container.
if err := waitFor(ctx, 10*time.Second, func() bool {
_, readyErr := environmentBackend.runDocker(
ctx,