Skip to content

Mobile App: Directory permission prompt re-triggers on app switch (Android) #28780

Description

@ix-ath

Bug Report

Product: Claude mobile app (Android)
Device: OnePlus 7T
Submitted by: User via Claude Code CLI (filing on their behalf from mobile remote session)

Description

When using the Claude mobile app connected to a remote Claude Code session:

  1. App shows directory/file permission prompts (normal behavior)
  2. User uses Android app switcher (double-tap recent apps / swipe gesture) to briefly switch away
  3. User switches back to the Claude app
  4. The app re-displays a directory permissions prompt — as if the permission state was lost when the app went to background

The re-prompted permissions are for directories, not necessarily the same ones that were last shown. It appears the app loses track of which permissions were already granted when it gets backgrounded and resumed.

Expected Behavior

Permission grants should persist through app background/resume cycles within the same session. Switching apps and coming back should not re-trigger permission prompts.

Likely Cause

The app may not be persisting permission grant state to durable storage — possibly holding it only in memory that gets cleared when Android backgrounds the process. Or the WebSocket/session reconnection on resume is re-requesting permissions.

Steps to Reproduce

  1. Open Claude mobile app on Android (OnePlus 7T)
  2. Connect to a remote Claude Code session that requires directory permissions
  3. Grant the permissions when prompted
  4. Use Android app switcher to switch to another app
  5. Switch back to Claude app
  6. Observe: directory permission prompt appears again

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions