Skip to content

v1.3.164

Choose a tag to compare

@topcheer topcheer released this 18 Jul 10:01

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 via os.Setenv, but provider.DiscoverModels validated the raw ${VAR} string without expanding it. DiscoverModels now expands ${VAR} references via config.ExpandEnv before validating/using the key, matching how ResolveActiveEndpoint resolves 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 RepairIndex path: 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.

Compare

v1.3.163...v1.3.164