Feature request: relax path constraint must be relative to the workspace
for example, when asking questions about pi itself, the agent wants to search ~/.pi
ffgrep /skills/ in
/Users/tekumara/.fnm/node-versions/v24.11.1/installation/lib/node_modules/@earendil-works/pi-coding-agent/docs/ limit 20
Path constraint must be relative to the workspace:
/Users/tekumara/.fnm/node-versions/v24.11.1/installation/lib/node_modules/@earendil-works/pi-coding-agent/docs/
@ff-labs/[email protected]
I often ask tasks that relies on grepping outside of the current path. Would be great to have it covered.
Cross-worktree frecency by relative path would be a great feature!
[triage-bot] REPRODUCED:
Reproduced on origin/main. Branch: triage-bot/issue-463.
MCP tool ffgrep enforces workspace-relative paths via normalizePathConstraint(). Absolute paths outside workspace throw Path constraint must be relative to the workspace error.
Root cause: packages/pi-fff/src/query.ts:13-17 rejects any path that resolves to ../ (outside workspace). FFF Rust core accepts absolute paths. Constraint is TypeScript-layer only.
Repro:
# From project root
cd packages/pi-fff
bun test
# Test at line 14-18 shows rejection behavior
Working on fix on triage-bot/issue-463.
unfortunately this won't work rn
@dmtrKovalenko may I ask why?
@tifandotme Probably because they rely on index
@dmtrKovalenko would it be possible to offer regular grep results as fallback in this case? it will save some tool calls that model has to make to realise what happens.
Also model may start thinking that fff is unreliable and since that don't try it even for inside repo calls.
Also model may start thinking that fff is unreliable and since that don't try it even for inside repo calls.
@Guria Happened to me.
i use override fff mode. so model just ignores the grep tool, and use rg instead from bash
This is on my todo list for 0.10
@gustav-fff as a quck hotfix prototype a way to store up to 3 additional pickers for pi-fff for non cwd paths, that are going to rotate and die after 5 minutes of inactivity. This should not take more than 200-300 lines of code keep it consize
Also model may start thinking that fff is unreliable and since that don't try it even for inside repo calls.
I second this. I disabled fff entirely because of that :-(