@tiens.nguyen/gu-cli 1.0.920 → 1.0.921

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/gu-repl.mjs +4 -1
  2. package/package.json +1 -1
package/gu-repl.mjs CHANGED
@@ -8936,7 +8936,10 @@ async function setUpFreeModel({ token, announce = false } = {}) {
8936
8936
  if (announce || got.why === "over") console.log(GUTTER + (got.why === "over" ? yellow(got.error) : dim(got.error)));
8937
8937
  return false;
8938
8938
  }
8939
- const first = !freeModel || freeModel.url !== got.preset.baseUrl;
8939
+ // A code redeemed just now (announce) is a fresh choice, like the first time: the chat model AND the
8940
+ // coding model move to the preset even when an earlier code left this same server here. Otherwise
8941
+ // the chat model stayed on what it was (claude-haiku, 2026-11-26) and every turn fell back.
8942
+ const first = announce || !freeModel || freeModel.url !== got.preset.baseUrl;
8940
8943
  // A rotated key on ANY provider (the primary's, or an extra one's) counts (GH #444).
8941
8944
  const keysNow = JSON.stringify(Object.fromEntries(fm.presetProviders(got.preset).map((p) => [p.baseUrl, p.keyId])));
8942
8945
  const keysThen = JSON.stringify(freeModel?.keyIds ?? Object.fromEntries([[freeModel?.url, freeModel?.keyId]]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gu-cli",
3
- "version": "1.0.920",
3
+ "version": "1.0.921",
4
4
  "description": "gu: the coding agent in your terminal. It reads your repo, makes the change and runs the tests, with your own models (Ollama or any OpenAI-compatible provider). Free installs keep the agent, its API and its database on your machine. macOS, Linux and Windows.",
5
5
  "keywords": [
6
6
  "ai",