@arhen/pi-senja 1.2.3 → 1.2.4

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.
package/README.md CHANGED
@@ -13,7 +13,7 @@ Forked from [pi-haiku](https://github.com/nnocte/pi-haiku) **0.2.0** by **nocte*
13
13
  - **Quiet tool text** — tool titles and output both use the foreground beige (`fg0`) rather than loud accents, keeping panels calm against their tint.
14
14
  - **Editor-style code colors** — pink keywords, olive strings, aqua function names, amber types, warm beige identifiers and punctuation, readable muted comments. Applies to code in tool calls/results and Markdown code blocks through Pi's syntax roles.
15
15
  - **A live timer** while Pi works, plus elapsed-time completion message and notification. Preserves the active mode label and colour from `@arhen/pi-add-mode` (`review is working... 8s`).
16
- - **Fast / Ultrafast mode** — `/fast on|off` and `/ultrafast on|off` set a paid speed preference per OpenAI provider and model. For ChatGPT sign-in, Senja checks the account’s model catalog before enabling or restoring a tier. If it is unavailable or cannot be verified, Senja warns and does not apply it. API-key mode checks known model support, not account entitlement. The footer shows only `fast` or `ultrafast`. If a completed Senja request reports a different tier or none, Senja warns once and turns the mode off for that model. Failed or canceled requests do not change the preference. Off shows no chip and adds no tier. Preferences persist under `<agent-dir>/fast-mode/`; explicit `samplingParams.service_tier` still wins.
16
+ - **Fast / Ultrafast mode** — `/fast on|off` and `/ultrafast on|off` set a paid speed preference per OpenAI provider and model. For ChatGPT sign-in, Senja checks the account’s model catalog before enabling or restoring a tier. If it is unavailable or cannot be verified, Senja warns and does not apply it. API-key mode checks known model support, not account entitlement. The footer shows only `fast` or `ultrafast`. If a completed request reports a different tier (or none), Senja warns once for that response. The badge stays on, and the next request still asks for the selected tier. Failed or canceled requests do not change the preference. Off shows no chip and adds no tier. Preferences persist under `<agent-dir>/fast-mode/`; explicit `samplingParams.service_tier` still wins.
17
17
  - **A fresh start** — clear the visible screen on initial terminal startup without clearing scrollback.
18
18
 
19
19
  Enabled by default in terminal UI mode. Print, JSON, SDK, and RPC modes do not install terminal components, switch themes, clear the screen, or start UI timers. `/senja` in RPC mode reports that terminal UI is required.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arhen/pi-senja",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Senja Gruvbox Material theme with Haiku's structured header, footer, and live timer for Pi.",
5
5
  "license": "MIT",
6
6
  "author": "arhen",
package/src/index.ts CHANGED
@@ -438,17 +438,10 @@ export default function (pi: ExtensionAPI) {
438
438
  const tier = pendingReports.get(key);
439
439
  if (!tier) return;
440
440
  pendingReports.delete(key);
441
- if (served === wireTier(tier) || served === tier) return;
441
+ if (!ctx.hasUI || served === wireTier(tier) || served === tier) return;
442
442
  const reason =
443
443
  typeof served === "string" && /^[a-z0-9_-]{1,32}$/i.test(served) ? `reported ${served}` : "did not report a tier";
444
- let warning = `OpenAI ${reason}. Turned off ${tier} for ${key}.`;
445
- try {
446
- setSpeedTier(key, null);
447
- } catch {
448
- warning += " Could not save this change.";
449
- }
450
- requestFooterRender();
451
- if (ctx.hasUI) ctx.ui.notify(warning, "warning");
444
+ ctx.ui.notify(`Requested ${tier} for ${key}; OpenAI ${reason}. ${tier} stays on.`, "warning");
452
445
  }
453
446
 
454
447
  pi.on("provider_stream_event", (event, ctx) => {