Skip to content
pi-c View Ticket
Login

View Ticket

Remote: the phone can start a conversation only in folders pic has already run in

Closeda34fbfd9d71e9780963c15c6d8e945d196f9d198Created 2.9 days agoUpdated 2.7 days ago
Description2026-11-28 00:29:10
Reported from real use: "new conversation only gives me a few folders at random to choose from."

Cause: the phone's folder list is `picu_workspace`, the folders pic has run in, with temporary directories hidden (`rmt_temporary`), in last-used order. The owner's registry has 15 rows, 9 of them under /private/tmp, so the phone shows 6 folders: pi-c, flak, the home directory, pic-relay, valet and CLIProxyAPI. ~/projects holds 71 folders. A folder pic has never run in cannot be chosen from the phone at all, and the 6 that are shown are whichever were used last. That reads as random.

Reproduce on a disposable home with no live service: register the owner's 15 workspace paths (folders mirrored outside /tmp, temporary ones under /tmp) with one `pic ask` each, pair a phone and open New conversation. The sheet lists the 6 non-temporary folders and nothing else.

Observed: only folders with a pic journal are offered. Expected: the folders the owner works in, including ones pic has not run in yet.

Code path: remote.c `rmt_scan_rows` (line ~2903), `SELECT path, journal FROM picu_workspace ORDER BY last_used_ms DESC`, then `rmt_temporary`. Protocol section 7, "Workspaces", and `+W` in "A new conversation" take W from that list only.

Fix shape (a protocol amendment, pic's design): a setting naming the roots to offer (say `remote.folders`, default `~/projects` when it exists, else the home directory), whose subdirectories are listed beside the registered workspaces, with each one's name and whether it has a journal yet. `+W` for such a folder creates its journal, as running pic there would. The page will show them once the note says how; until then it shows what pic lists.

2026-11-28 05:18:46

Closed by !208: remote-fixes landing on trunk (778886bba32a)