You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/09/06 01:14:16 UTC
(maka) branch main updated: fix(desktop): stop inspector summary loading line flickering on usage refresh (#4843)
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/maka.git
The following commit(s) were added to refs/heads/main by this push:
new 70d1516a0b fix(desktop): stop inspector summary loading line flickering on usage refresh (#4843)
70d1516a0b is described below
commit 70d1516a0b3ecc58c63849eded160dc2f879e7b9
Author: Zane <qi...@gmail.com>
AuthorDate: Sun Sep 6 09:14:12 2026 +0800
fix(desktop): stop inspector summary loading line flickering on usage refresh (#4843)
The inspector's summary loading line appeared whenever summaryLoading
was set. A live session re-reads its summary on every usage update
without clearing the last one, so that line was inserted and removed
on each refresh and the timeline jumped.
Show it only while there is no summary yet, same as the trace loader
above. Background refreshes stay on aria-busy.
Generated-by: Maka
---
.../features/workbar/tools/inspector/session-inspector-panel.tsx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/apps/desktop/src/renderer/features/workbar/tools/inspector/session-inspector-panel.tsx b/apps/desktop/src/renderer/features/workbar/tools/inspector/session-inspector-panel.tsx
index ac29081afb..9b6c940269 100644
--- a/apps/desktop/src/renderer/features/workbar/tools/inspector/session-inspector-panel.tsx
+++ b/apps/desktop/src/renderer/features/workbar/tools/inspector/session-inspector-panel.tsx
@@ -134,8 +134,12 @@ export function SessionInspectorPanel(props: { sessionId: string; active: boolea
)}
{/* Usage and context answer to different owners, so a successful
- snapshot beside an empty or failed trace remains visible (#2323). */}
- {snapshot.summaryLoading && (
+ snapshot beside an empty or failed trace remains visible (#2323).
+
+ Render only while there is no summary yet, same as the trace line above:
+ a live session re-reads its summary on every usage update, so gating on
+ the loading flag alone would blink this line in and out. */}
+ {snapshot.summaryLoading && !snapshot.summary && (
<Text type="supporting" color="secondary">
{copy.loadingSummary}
</Text>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org