Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Platform releases use `vX.Y.Z` tags and publish `ghcr.io/tencent/loopforge`. LoopForge Local packages use `local-vX.Y.Z` tags and are published by manually running the `release-local` workflow.

## Unreleased

- Docker sandboxes always get `--add-host host.docker.internal:host-gateway`. A native install hands every sandbox an `AGENTFLOW_SESSION_GATEWAY` URL on `host.docker.internal`, but the mapping was only added for conversation and runner-login containers, so `git credential fill` in an SOP run sandbox failed with `lookup host.docker.internal ... no such host` and the 发起 MR agent had to rediscover the docker bridge gateway on every run. The mapping now applies to all sandboxes.

## 0.4.1 — Git and MCP credentials, SOP orchestration and conversation workspaces

- Configure HTTPS Git credentials per host, authorize the IP addresses of self-hosted HTTPS Git servers, and distribute trusted SSH host keys to execution machines. MCP servers, market items and SOP nodes can use configured credentials.
Expand Down
4 changes: 2 additions & 2 deletions internal/runtime/docker_cases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ func TestDockerSandboxUsesRelayNetworkOnlyWhenRequested(t *testing.T) {
t.Fatalf("docker create used the wrong network: %s", args)
}
usesGateway := strings.Contains(args, "\n--add-host\nhost.docker.internal:host-gateway\n")
if usesGateway != (tc.conversation || tc.runnerLoginRelay) {
t.Fatalf("docker create host gateway = %v for %s", usesGateway, tc.name)
if !usesGateway {
t.Fatalf("docker create missing host gateway mapping for %s: %s", tc.name, args)
}
})
}
Expand Down
6 changes: 5 additions & 1 deletion internal/runtime/sandbox_docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,11 @@ func (s *dockerSandbox) start(ctx context.Context, recreate bool) error {
}
}
network := strings.TrimSpace(os.Getenv("AGENTFLOW_DOCKER_NETWORK"))
// Sandboxes reach a native platform through the host-gateway alias:
// AGENTFLOW_SESSION_GATEWAY hands them a host.docker.internal URL, and
// Linux daemons only resolve that name when the container carries the
// mapping. Add it for every sandbox, not only conversation relays.
args = append(args, "--add-host", "host.docker.internal:host-gateway")
if s.requirements.ConversationRoot != "" || s.requirements.RunnerLoginRelay {
_, relayNetwork, err := conversationDockerAccess(ctx)
if err != nil {
Expand All @@ -775,7 +780,6 @@ func (s *dockerSandbox) start(ctx context.Context, recreate bool) error {
if relayNetwork != "" {
network = relayNetwork
}
args = append(args, "--add-host", "host.docker.internal:host-gateway")
}
if network != "" {
args = append(args, "--network", network)
Expand Down