# Session import symlink proof

Use a checkout of current main containing the scenario runner. Install dependencies with `vp i`.
Place seed.mjs in `/tmp/factory-issue-42019-evidence-3/`, apply startup-seed.patch, and place the scenario in scripts/scenarios/.
The startup hook runs after the runner prepares its fresh home and before either server starts. It copies that empty home to a synthetic real directory, replaces the configured home with a symlink, and seeds only fake provider histories.

Run:

```
vp run scenarios:prove scripts/scenarios/session-import-excludes-t3-symlink.e2e.ts --base 9d3195b49dfb0098e9fa592fe0ada5464206d1c2 --head ffdd8dfec2f75b5f7de5de9ee2048e2f9eda5654 --upload-command "ghdrop upload"
```

Each side uses a fresh database created by its own server. The fixture contains one real-project Claude chat, one real-path T3-worktree Claude chat, one real-project Codex chat, and one symlink-path T3-worktree Codex chat. Both Codex chats are assigned to the outside myproj project in state_5.sqlite. No provider runs a model; provider executables deliberately exit, which explains the setup notices above the import list.

The web scenario opens /welcome, expands Review all and Other folders, waits for the expansion to finish, captures the list, then asserts that wt-1 is absent and the real project has two chats.

Expected before: two folders, myproj with three chats, wt-1 with one.
Expected after: one folder, myproj with two chats.
