Skip to content

[Bug]: File watcher scans full user profile incl. Phone Link CrossDevice mount, triggering mass on-demand downloads from linked phone (Windows) #37789

Open

Description

@Pluto0009

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Link an Android phone via Phone Link so that C:\Users\<user>\CrossDevice\<phone>\storage\ exists.
  2. Start T3 Code with the session location set to C:\Users\<user>.
  3. Windows shows an "automatic file downloads" notification naming T3 Code; the phone shows an active transfer.
  4. %USERPROFILE%\.local\share\opencode\log\opencode.log shows watcher entries with ignores=0 (see Logs below).

Expected behavior

Starting or restarting T3 Code should not trigger downloads from a linked phone. The watcher should skip Cloud Files/FOD reparse-point subtrees, and/or the default session location should be a project folder rather than the profile root, and/or the settings should offer path exclusions.

Suggested fixes

  1. Detect and skip Cloud Files/FOD reparse-point subtrees (OneDrive, CrossDevice) in the watcher.
  2. Expose watcher ignore paths in the settings UI (mapped to watcher.ignore).
  3. Warn when the workspace contains known on-demand mounts.

Actual behavior

The full profile is enumerated, including ~4,256 placeholder entries under CrossDevice\<phone>\storage. fsutil reparsepoint query shows these are FOD reparse points (tag "FeRp"), not local files. Each restart repeats the transfer, which costs phone battery and mobile data.

Impact

Minor bug or occasional failure

Version or commit

T3 Code 0.1.9 (Beta)

Environment

Windows 11 Home 10.0.26300, ARM64, opencode 2.3.0, Plugins: none (MCP: t3-code)

Logs or stack traces

level=INFO message="cli starting" version=2.3.0 channel=latest args=["serve","--hostname=127.0.0.1","--port=54597"]
level=INFO message="watcher subscribe" path="C:\Users\<user>" type=entries ignores=0
level=INFO message="watcher started" path="C:\Users\<user>" type=entries backend=node ignores=0

Screenshots, recordings, or supporting files

No response

Workaround

Add the following to %USERPROFILE%\.config\opencode\opencode.json (reloads automatically):

{ "watcher": { "ignore": ["CrossDevice/**"] } }

T3 Code's settings currently have no equivalent option.

Activity

  1. added
    bug
    needs-triage
    on Nov 16, 2026
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

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions