zidane-gui 8.2.2 → 8.2.3

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.
@@ -27665,7 +27665,12 @@ const SETTINGS_KEYWORDS = {
27665
27665
  "gutter",
27666
27666
  "timeline"
27667
27667
  ],
27668
- showCacheNotices: ["prompt cache", "cache hit"],
27668
+ showCacheNotices: [
27669
+ "prompt cache",
27670
+ "cache hit",
27671
+ "reasoning dropped",
27672
+ "thinking dropped"
27673
+ ],
27669
27674
  showThinking: ["reasoning", "thoughts"],
27670
27675
  thinkingAutoExpand: [
27671
27676
  "reasoning",
@@ -28029,7 +28034,7 @@ const SETTINGS_TOGGLES$1 = [
28029
28034
  category: "ui",
28030
28035
  key: "showCacheNotices",
28031
28036
  label: "Cache notices",
28032
- description: "Add a row to the chat when the prompt cache expires or resets."
28037
+ description: "Add a row to the chat when the prompt cache expires or resets, or the provider drops earlier reasoning."
28033
28038
  },
28034
28039
  {
28035
28040
  category: "ui",
@@ -33148,7 +33153,9 @@ function retagUserPromptEventsFromRefs(events, refs) {
33148
33153
  }
33149
33154
  return changed2 ? next : events;
33150
33155
  }
33151
- const CACHE_NOTICE_LABEL = "cache";
33156
+ function isCacheNotice(notice) {
33157
+ return notice?.label === "cache" || notice?.label === "reasoning";
33158
+ }
33152
33159
  function isVisible(event, settings) {
33153
33160
  if (event.parentToolCallId !== void 0 && !event.runsNestedAgent && !settings.codemodeShowCalls) return false;
33154
33161
  if (settings.hideSubagentOutput) {
@@ -33166,7 +33173,7 @@ function isVisible(event, settings) {
33166
33173
  case "run-summary":
33167
33174
  return settings.showRunReceipt;
33168
33175
  case "info":
33169
- return settings.showCacheNotices || event.notice?.label !== "cache";
33176
+ return settings.showCacheNotices || !isCacheNotice(event.notice);
33170
33177
  case "spawn-queued":
33171
33178
  return settings.transcriptDensity === "compact";
33172
33179
  default:
@@ -35731,7 +35738,7 @@ const SETTINGS_TOGGLES = withCanonicalGates([
35731
35738
  {
35732
35739
  key: "showCacheNotices",
35733
35740
  label: "Cache notices",
35734
- description: "Add a row to the chat when the prompt cache expires or resets."
35741
+ description: "Add a row to the chat when the prompt cache expires or resets, or the provider drops earlier reasoning."
35735
35742
  },
35736
35743
  {
35737
35744
  key: "queueMessages",
@@ -45547,7 +45554,7 @@ function loadSymbolsFont(url) {
45547
45554
  return symbolsFont;
45548
45555
  }
45549
45556
  function loadGhostty$1(symbolsFontUrl2) {
45550
- ghosttyModule ??= Promise.all([__vitePreload(() => import("./ghostty-web-6lAA0ofW.js"), true ? [] : void 0, import.meta.url), loadSymbolsFont(symbolsFontUrl2)]).then(async ([m2]) => {
45557
+ ghosttyModule ??= Promise.all([__vitePreload(() => import("./ghostty-web-DeA_Bbgl.js"), true ? [] : void 0, import.meta.url), loadSymbolsFont(symbolsFontUrl2)]).then(async ([m2]) => {
45551
45558
  await m2.init();
45552
45559
  drawBoxGlyphs(m2);
45553
45560
  return m2;
@@ -64780,15 +64787,23 @@ const CommandNoteRow = reactExports.memo(({ text: text2 }) => {
64780
64787
  const InfoRow = reactExports.memo(({ text: text2 }) => {
64781
64788
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-[var(--zg-text-muted)] whitespace-pre-wrap", children: text2 });
64782
64789
  });
64790
+ const NOTICE_STYLE = {
64791
+ error: { tone: "text-zg-danger", icon: "i-ph-x-circle" },
64792
+ warn: { tone: "text-zg-warn", icon: "i-ph-warning" },
64793
+ info: { tone: "text-[var(--zg-text-muted)]", icon: "i-ph-info" }
64794
+ };
64783
64795
  const NoticeRow = reactExports.memo(({ notice, text: text2 }) => {
64784
- const tone = notice.severity === "error" ? "text-zg-danger" : notice.severity === "warn" ? "text-zg-warn" : "text-[var(--zg-text-muted)]";
64796
+ const { tone, icon } = NOTICE_STYLE[notice.severity] ?? NOTICE_STYLE.info;
64785
64797
  const [head2, ...details] = text2.split("\n").filter((line) => line.trim() !== "");
64786
64798
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-start gap-1 text-xs", title: notice.label, children: [
64787
- /* @__PURE__ */ jsxRuntimeExports.jsx(
64799
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
64788
64800
  "span",
64789
64801
  {
64790
- className: `inline-flex items-baseline gap-1.5 px-2 py-px rounded-full shadow-[inset_0_0_0_1px_var(--zg-hairline)] font-mono ${tone}`,
64791
- children: head2
64802
+ className: `inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full shadow-[inset_0_0_0_1px_var(--zg-hairline)] font-medium ${tone}`,
64803
+ children: [
64804
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { "aria-hidden": true, className: `${icon} shrink-0` }),
64805
+ head2
64806
+ ]
64792
64807
  }
64793
64808
  ),
64794
64809
  details.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "min-w-0 flex flex-col gap-0.5 pl-1.5 text-[var(--zg-text-muted)]", children: details.map((line, i2) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: line }, i2)) })
@@ -65867,7 +65882,7 @@ const asStream = (events) => events;
65867
65882
  function useTranscriptRows(events, streaming, { showCacheNotices, codemodeShowCalls, showEditDiffs, groupToolCalls, showRunReceipt, compact }) {
65868
65883
  const shownEvents = reactExports.useMemo(() => {
65869
65884
  const shown2 = showCacheNotices && codemodeShowCalls ? events : events.filter(
65870
- (event) => (showCacheNotices || event.notice?.label !== CACHE_NOTICE_LABEL) && nestedCallVisible(event, codemodeShowCalls)
65885
+ (event) => (showCacheNotices || !isCacheNotice(event.notice)) && nestedCallVisible(event, codemodeShowCalls)
65871
65886
  );
65872
65887
  return gatherCommandNotes(asStream(shown2));
65873
65888
  }, [events, showCacheNotices, codemodeShowCalls]);
@@ -88,8 +88,8 @@
88
88
  pointer-events: none;
89
89
  }
90
90
  </style>
91
- <script type="module" crossorigin src="./assets/index-BGEXnnpi.js"></script>
92
- <link rel="stylesheet" crossorigin href="./assets/index-Cp6Qu5JQ.css">
91
+ <script type="module" crossorigin src="./assets/index-D0fPExZY.js"></script>
92
+ <link rel="stylesheet" crossorigin href="./assets/index-BblJFgWQ.css">
93
93
  </head>
94
94
  <body>
95
95
  <div id="root"></div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zidane-gui",
3
3
  "productName": "Zidane",
4
- "version": "8.2.2",
4
+ "version": "8.2.3",
5
5
  "description": "Zidane Desktop",
6
6
  "author": "StackBlitz",
7
7
  "type": "module",
@@ -66,7 +66,7 @@
66
66
  "shiki": "^4.5.0",
67
67
  "tippy.js": "^6.3.7",
68
68
  "typescript-language-server": "^6.0.1",
69
- "zidane": "8.2.2",
69
+ "zidane": "8.2.3",
70
70
  "zod": "^4.6.5"
71
71
  },
72
72
  "devDependencies": {