@tiens.nguyen/gu-cli 1.0.714 → 1.0.716

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 +6 -3
  2. package/package.json +1 -1
package/gu-repl.mjs CHANGED
@@ -7703,9 +7703,12 @@ async function manageCodingKeys(ks, keys) {
7703
7703
  await saveSessionCodingKeyId(resolve(process.cwd()));
7704
7704
  keyChoicePending = false; // chosen — the bar's mark comes off
7705
7705
  codingKeyMissingKnown = false;
7706
- // Fetch the key to get its tail for the bottom bar
7707
- const keyData = await fetchCodingKey(keys[idx].backendId || "");
7708
- sessionApiKeyTail = keyData.key ? keyData.key.slice(-4) : "";
7706
+ // The picked row already carries the correct masked tail. Do NOT refetch via
7707
+ // fetchCodingKey(backendId): that returns the key the provider would DEFAULT to, not the key
7708
+ // just chosen by id — and for an UNBOUND key backendId is "", so it answers the account
7709
+ // default. Either way the bar kept showing the old/default key's tail no matter what you
7710
+ // picked (reported: "choosing between multiple keys doesn't change the tail").
7711
+ sessionApiKeyTail = keys[idx].tail || "";
7709
7712
  console.log(
7710
7713
  accent(` ✓ ${folderLabel()} → ${keys[idx].name}`) + dim(` ····${keys[idx].tail}\n`)
7711
7714
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gu-cli",
3
- "version": "1.0.714",
3
+ "version": "1.0.716",
4
4
  "description": "Gu CLI — the gu terminal plus the local worker that runs agent / OCR / PDF / embedding jobs on your Mac (Ollama / MLX / OpenAI-compatible).",
5
5
  "type": "module",
6
6
  "license": "MIT",