mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
Startup reconciliation could not resolve a secret-bound OPENAI_API_KEY, so it passed apiKey: null and re-seeded the home with the shared subscription symlink — silently downgrading an already-resolved API-key auth.json on every boot while reporting already_seeded. Classify the persisted OPENAI_API_KEY binding into plain / secret / none and pass apiKeySecretBound through to reconcileManagedCodexHome, which now preserves existing usable auth when the key is secret-bound. Adds regression tests at the adapter and server layers. Co-Authored-By: Paperclip <noreply@paperclip.ing>