Skip to content

fix(gga): put the pin shim ahead of the real codex in fish - #22

Merged
Dreamcoder08 merged 1 commit into
mainfrom
fix/gga-pin-fish-path
Sep 29, 2026
Merged

Dreamcoder08 merged 1 commit into
mainfrom
fix/gga-pin-fish-path

Conversation

@Dreamcoder08

Copy link
Copy Markdown
Owner

In a fresh fish the GGA pin shim sat at PATH position 8, behind the real codex at 6, so the model pin relied only on the block in ~/.config/gga/config, which gentle-ai sync rewrites (found while simulating that rewrite).

Cause: fish keeps fish_user_paths ahead of the rest of PATH, and config.fish adds ~/.local/bin (the real codex) to it. The shim was added with --path from a conf.d snippet that runs before config.fish.

Fix: add the shim directory to fish_user_paths from config.fish, after the other fish_add_path calls, and move it to the front (--move). The conf.d snippet now only exports GGA_PROVIDER. New bats test checks the order and fails without the change (RED confirmed). zsh and bash were already correct.

fish keeps fish_user_paths ahead of the rest of PATH, and config.fish adds ~/.local/bin (where
the real codex lives) to it. The shim directory was added with --path from a conf.d snippet,
so in a fresh shell it sat at position 8 behind the real codex at 6: the model pin then relied
only on the block in the gga config, which gentle-ai sync rewrites.

Add the shim directory to fish_user_paths from config.fish, after the other fish_add_path calls,
and move it to the front. The conf.d snippet now only exports GGA_PROVIDER. A test checks the
order (it fails without the change).
@Dreamcoder08
Dreamcoder08 merged commit 0af1090 into main Sep 29, 2026
8 checks passed
@Dreamcoder08
Dreamcoder08 deleted the fix/gga-pin-fish-path branch September 29, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant