Skip to content

Two servers on one machine report the same name #545

Closed

Description

@Jacksondr5

Problem

Two J5 servers on one machine report the same name. A server names itself from the host's friendly name or hostname (apps/server/src/environment/ServerEnvironmentLabel.ts), with no override. In a two-server peering test on one host, both servers are openclaw, so agents and people cannot tell which participant lives where, and mismatch messages are ambiguous.

Jackson has hit this running --peer by hand, and a tester agent hit it during the Squadron fold tests.

Fix

Let an environment variable set the server's name, read before the hostname fallback. The test setup script sets it to "Local" and "Remote" for the two servers.

This is a few lines in an upstream-owned file and changes what upstream's server does, so it needs a FORK.md entry and a register entry in docs/j5/product/upstream.md. Upstream has the same clash for any two servers on one machine, so it is a candidate to offer back (#276).

The alternative, running the second server in its own hostname namespace, was rejected: the process would look like root inside the namespace, which provider CLIs and the browser sandbox may react to.

Jackson approved the upstream edit on 2026-10-11.

Part of the agent live-testing work.

Activity

  1. added
    enhancement
    on Oct 12, 2026
  2. added a commit that references this issue on Oct 12, 2026
    b749a5b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions