[Bug]: pi-fff blocks session startup while indexing files
Maintainers usually reply within 3 days
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend
Research direction
Read packages/pi-fff/src/index.ts and packages/pi-fff/src/file-picker.ts, focusing on session_start, ensureFinder, and create(). Trace how the shared initialization promise is used by search tools and file mentions, and check shutdown handling. Done when session startup no longer waits for indexing, callers can await initialization as needed, and a finder that finishes after shutdown is destroyed.
Written by the indexing model from the issue text.
Description
Frontend
Other / multiple — pi-fff
Problem
pi-fff awaits file indexing during session_start, so initial scanning can delay session startup on large directories, especially $HOME.
Steps to reproduce
- Enable pi-fff with home-directory scanning enabled.
- Launch pi from
$HOMEor a large project directory whose initial scan takes noticeable time. - Session startup waits for the initial scan to complete or reach its timeout.
Expected behavior
Warm up the finder in the background without blocking session startup. Search tools and file mentions can await the shared initialization promise when needed.
Code path
Source inspection at upstream commit d1c7dd4 shows:
packages/pi-fff/src/index.ts:session_startawaitsensureFinder(activeCwd).packages/pi-fff/src/file-picker.ts:create()awaitswaitForScan(SCAN_TIMEOUT_MS).SCAN_TIMEOUT_MSis 15,000 ms.
Background initialization also needs lifecycle guards so a finder finishing after shutdown is destroyed rather than retained.
The shutdown cleanup fix in #949 addresses a separate issue; startup still awaits indexing.
Verification / logs
This report is based on source inspection. No runtime logs or measured startup timings were collected.
- Dominant language
- Rust
- Stars
- 11.2k
- Forks
- 473
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 32
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dmtrKovalenko/fff
-
triaged
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dmtrKovalenko/fff#842 · 2 comments ·
Maintainers usually reply within 3 days
-
triaged
Difficulty 3/5 1-2 days Newbie friendliness 68/100
dmtrKovalenko/fff#980 · 1 comment ·
Maintainers usually reply within 3 days
-
[Bug]: OSX/xcode 27 dyld wants 8-byte aligned string pools - mis-aligned LINKEDIT string poolPossibly taken @gustav-fff claimed this 1 day ago. Openbug triaged
Difficulty 3/5 1-2 days Newbie friendliness 55/100
dmtrKovalenko/fff#978 · 1 comment ·
Maintainers usually reply within 3 days
-
[Bug]: on a non-git base path, the watcher indexes new files in hidden folders that the scan skips (0.11.0)Possibly taken @gustav-fff claimed this 4 days ago. Opentriaged
Difficulty 3/5 1-2 days Newbie friendliness 35/100
dmtrKovalenko/fff#972 · 2 comments ·
Maintainers usually reply within 3 days
-
triaged
Difficulty 4/5 3-5 days Newbie friendliness 45/100
dmtrKovalenko/fff#970 · 5 comments ·
Maintainers usually reply within 3 days
All issues in dmtrKovalenko/fff
Similar issues
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
servo/rust-smallvec#827 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nowledge-co/hawdb#1400 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
calcit-lang/caps#16 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
penso/herdr-gpui#934 ·
Maintainers usually reply within 1 day
-
🎉 Add BossanovaOpen
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jaywcjlove/awesome-mac#4096 ·
Maintainers usually reply within 1 day