Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(sandbox): use E2B BuildID as template version

wizardchen815d32d3a997
diff --git a/internal/sandbox/docker_integration_test.go b/internal/sandbox/docker_integration_test.go
index 4fe24bba9..dedc17337 100644
--- a/internal/sandbox/docker_integration_test.go
+++ b/internal/sandbox/docker_integration_test.go
@@ -56,6 +56,9 @@ func newDockerIntegrationManager(t *testing.T, cfg *Config) *SessionBoundManager
if err != nil {
t.Fatalf("build docker client: %v", err)
}
+ // Integration tests clean up their own sessions. Do not reclaim unrelated
+ // idle containers when using a shared developer daemon.
+ client.sweeper = nil
probeCtx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
defer cancel()
if err := client.Health(probeCtx); err != nil {
diff --git a/internal/sandbox/e2b_remote_client.go b/internal/sandbox/e2b_remote_client.go
index 0a3f92dcb..183b3227e 100644
--- a/internal/sandbox/e2b_remote_client.go
+++ b/internal/sandbox/e2b_remote_client.go
@@ -228,7 +228,7 @@ func (c *E2BRemoteClient) ListTemplates(ctx context.Context) ([]RemoteTemplate,
ID: item.TemplateID,
Name: name,
Status: status,
- Version: item.EnvdVersion,
+ Version: item.BuildID,
CreatedAt: item.CreatedAt,
UpdatedAt: item.UpdatedAt,
Standard: standard,