Skip to content

Mobile Agent Setup: environments with the same name can't be told apart, and the choice resets #930

Open

Description

@Jacksondr5

The problem

On mobile, the environment picker in Settings → Agent Setup can show several entries with the same name and nothing to tell them apart. During the iOS check of the persona stack (#923), the phone listed three identical "openclaw" entries: the live server and test servers on the same host. The tester had to pick the test environment by its position in the list.

The choice also doesn't stick: after the app is relaunched, the picker goes back to the first environment. selectedEnvironmentId is component state in apps/mobile/src/j5/agents/AgentLibrarySettingsScreen.tsx (same on j5/main, 2487e4240f).

Picking the wrong entry here means editing or removing personas in the wrong environment.

Acceptance criteria

  • Two connected environments with the same name can be told apart in the picker, for example by host and port or by connection label.
  • Decide whether the chosen environment should persist across relaunches, and do the same as web's Agent Setup.
  • Checked on iOS and Android.

Notes

The label probably comes from the connection or the server name. Check where web gets its label before adding anything new. If the name comes from upstream's connection model, reuse it rather than adding a J5-only label.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions