v1.3.164
ggcode v1.3.164
Highlights
Provider panel: fix "no API key configured" on new endpoint save
- When adding a new endpoint in the provider panel and entering an API key, the model refresh step previously failed with
endpoint "<id>" has no API key configured. The key was stored as an env reference (e.g.${ZAI_TEEE_API_KEY}) with the real value injected viaos.Setenv, butprovider.DiscoverModelsvalidated the raw${VAR}string without expanding it.DiscoverModelsnow expands${VAR}references viaconfig.ExpandEnvbefore validating/using the key, matching howResolveActiveEndpointresolves keys for normal requests. This fixes all call sites (panel refresh, onboarding, model panel, agentruntime) in one place.
Provider panel: hot-reload definitions from other instances
- Opening the provider panel now reconciles the live config with disk. Vendor/endpoint definitions and API keys authored by other running ggcode instances (written to the global/instance config and
keys.env) become visible without restarting. The reload only merges the structural diff — vendor/endpoint entries present on disk but missing in memory are added, and the session-driven runtime selection (Vendor/Endpoint/Model) is never overwritten.
RepairIndex session index resilience
- Iterated on the startup
RepairIndexpath: moved it to an unconditional fire-and-forget step at startup, and fixed a bug where it passed a nil index and loaded all JSONL files. The session index repair now runs safely in the background without blocking startup.
Autopilot / strategist feedback
- Autopilot now notifies the user when it stops because the strategist returned empty guidance, errored, or hit the budget guard — previously it could stop silently.
Upgrade notes
No breaking changes. No config migration needed.