fix(docker): install fd from upstream so agent find tool works#56
Merged
Conversation
Debian bookworm pins fd-find at 8.7.0, which predates the --no-require-git flag the agent's find tool passes (added in fd 9.0). Every find call failed at argument parsing. Replace the apt fd-find package with an arch-aware install of upstream fd 10.2.0, exposing both fd and fdfind names, with a build-time --version smoke check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The agent's `find` tool (Pi runtime, invoked via the `zero` CLI) shells out to `fd`/`fdfind` with `--no-require-git`. Every call failed:
```
error: Found argument '--no-require-git' which wasn't expected, or isn't valid in this context
```
`--no-require-git` was added in fd 9.0. The image installs `fd-find` from apt, and `node:22-slim` is Debian bookworm, which pins `fd-find` at 8.7.0 — too old to know the flag. So argument parsing bailed before any search ran.
Fix
Requires image rebuild + redeploy to take effect.
🤖 Generated with Claude Code