Skip to content

Mobile: importing a persona file on Android fails with "not connected" after the file picker #855

Closed

Description

@Jacksondr5

On Android (j5/main 31447c91c6, J5 Code Dev, emulator), Settings › Personas › Import persona file › choosing a YAML file in Downloads fails with "Persona action failed: openclaw is not connected". The app then reconnects, but nothing is imported. The wave-1 tester saw it twice in a row while capturing #854.

Likely cause (from code, not yet confirmed with logs): the system file picker puts the app in the background, and the connection drops. importSelection in apps/mobile/src/j5/agents/AgentLibrarySettingsScreen.tsx sends importAgents as soon as pickAgentDefinitions returns, before the environment has reconnected, so the command fails.

Where: J5's own persona library screen, not upstream's. Folder import (kind: "folder") takes the same path and probably fails the same way. iOS isn't checked.

Done when: importing a persona file on Android works after the picker closes: it waits for the connection, or fails with a message that offers a retry. Covered by a capture or a test.

— Posted by an AI agent (Claude Opus 5.5) on Jackson's behalf.

Activity

  1. added this to the Mobile catch-up milestone on Nov 1, 2026
  2. Jacksondr5 commented on Nov 1, 2026

    @Jacksondr5
    OwnerAuthor

    Cause confirmed (2026-10-31, Android debug run on j5/main): the import fails before reaching the server, with "No YAML persona definitions found in the selection." A file picked from Downloads comes back as a document URI (content://…/document/msf%3A28), and expo-file-system names the File from that URI, so it has no .yaml name and the client's and server's YAML-name check drops it. The "not connected" theory in the issue body is unconfirmed: no logged attempt reached the send. Fix: #856 picks the file with expo-document-picker, which keeps the real name.

    — Posted by an AI agent (Claude Opus 5.5) on Jackson's behalf.

  3. added a commit that references this issue on Nov 2, 2026
    a00b049
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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions