Pi saves fields of its own into ~/.pi/agent/settings.json, such as the
deviceId it sends OpenAI when signing in with ChatGPT and defaults saved
from the model picker. The file was a home-manager link into the Nix
store, so every save failed silently and Pi made a new deviceId for every
login. ogygia-nix-fixer copied its settings in only when the file was
missing, so changes to them never reached an existing install.
Added pi-merge-settings, which replaces each top-level field the Nix
config declares, keeps every other field, and logs the path of each value
the replacement drops without the value. The home module persists
settings.json and runs it on every home-manager activation, so the log
lands in the journal under home-manager-jake. The fixer runs it in
preStart in place of its one-time copy. An AGENTS.md tells Pi where its
configuration comes from, so it proposes changes to this repository
rather than editing files a deploy overwrites.
Test plan:
CI
Built maverick's and iceman's toplevels
Ran pi-merge-settings on a missing file, an unchanged file, a file with
changed declared fields plus a deviceId, and a declared object replaced
by a string: it logged only the changed paths and kept deviceId
Pi saves fields of its own into ~/.pi/agent/settings.json, such as the
deviceId it sends OpenAI when signing in with ChatGPT and defaults saved
from the model picker. The file was a home-manager link into the Nix
store, so every save failed silently and Pi made a new deviceId for every
login. ogygia-nix-fixer copied its settings in only when the file was
missing, so changes to them never reached an existing install.
Added pi-merge-settings, which replaces each top-level field the Nix
config declares, keeps every other field, and logs the path of each value
the replacement drops without the value. The home module persists
settings.json and runs it on every home-manager activation, so the log
lands in the journal under home-manager-jake. The fixer runs it in
preStart in place of its one-time copy. An AGENTS.md tells Pi where its
configuration comes from, so it proposes changes to this repository
rather than editing files a deploy overwrites.
Test plan:
- CI
- Built maverick's and iceman's toplevels
- Ran pi-merge-settings on a missing file, an unchanged file, a file with
changed declared fields plus a deviceId, and a declared object replaced
by a string: it logged only the changed paths and kept deviceId
Pi saves fields of its own into ~/.pi/agent/settings.json, such as the
deviceId it sends OpenAI when signing in with ChatGPT and defaults saved
from the model picker. The file was a home-manager link into the Nix
store, so every save failed silently and Pi made a new deviceId for every
login. ogygia-nix-fixer copied its settings in only when the file was
missing, so changes to them never reached an existing install.
Added pi-merge-settings, which replaces each top-level field the Nix
config declares, keeps every other field, and logs the path of each value
the replacement drops without the value. The home module persists
settings.json and runs it on every home-manager activation, so the log
lands in the journal under home-manager-jake. The fixer runs it in
preStart in place of its one-time copy. An AGENTS.md tells Pi where its
configuration comes from, so it proposes changes to this repository
rather than editing files a deploy overwrites.
Test plan:
- CI
- Built maverick's and iceman's toplevels
- Ran pi-merge-settings on a missing file, an unchanged file, a file with
changed declared fields plus a deviceId, and a declared object replaced
by a string: it logged only the changed paths and kept deviceId
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Pi saves fields of its own into ~/.pi/agent/settings.json, such as the
deviceId it sends OpenAI when signing in with ChatGPT and defaults saved
from the model picker. The file was a home-manager link into the Nix
store, so every save failed silently and Pi made a new deviceId for every
login. ogygia-nix-fixer copied its settings in only when the file was
missing, so changes to them never reached an existing install.
Added pi-merge-settings, which replaces each top-level field the Nix
config declares, keeps every other field, and logs the path of each value
the replacement drops without the value. The home module persists
settings.json and runs it on every home-manager activation, so the log
lands in the journal under home-manager-jake. The fixer runs it in
preStart in place of its one-time copy. An AGENTS.md tells Pi where its
configuration comes from, so it proposes changes to this repository
rather than editing files a deploy overwrites.
Test plan:
changed declared fields plus a deviceId, and a declared object replaced
by a string: it logged only the changed paths and kept deviceId
d389435651toded10c87ebded10c87ebtof23366b292f23366b292to6630f251d26630f251d2tobfd971b0cdbfd971b0cdtofafe17e86efafe17e86eto1e85771fe11e85771fe1to8ab02989958ab0298995to635b992acd