Skip loading secrets when navigating inside a project #765
factory-kirk
started this conversation in
Ideas
Replies: 1 comment
|
Thanks for the detailed report. The existing hook session already fingerprints the config-file hierarchy, but an older working-directory check forced a reload before that fingerprint could be compared. I opened #766 with a possible fix that lets AI-assisted — Tool: Codex; model: unavailable/unavailable; version: unavailable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I use Fnox's shell integration, but it makes exploring a project much slower than I'd like. For example, I created a new directory like:
Now when I
cdinto it, fnox loads that directory's secrets as expected:But when I
cdintoinner, it loads the secrets again, even though it's empty and doesn't have anyfnox.tomlfile to parse:Just changing the directory takes nearly a second:
It'd be nice if fnox tracked its state, maybe by remembering the hash of all the current fnox.toml files it most recently evaluated, and only updating its records when that hash changes. Then I could bounce through a project with a top-level fnox.toml without the overhead of re-fetching secrets.
BTW, the daemon hugely mitigates this. This would be wonderful for situations where someone can't/won't use the daemon, and might make it unnecessary for the most common use cases.
All reactions