mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add hybrid SQLite+WAL reader, side-question dedup, and cache throttling
- Read local conversation_summaries.db and <id>.db (+ .db-wal composite signatures) first while falling back to RPC when local DBs are absent - Deduplicate cloned parent steps and gen_metadata across forks and Side Questions, render zh/en Side Question badges, and protect mainline context watermarks - Throttle trajectory_usage_cache.json writes to 30s during RUNNING sessions and flush immediately on IDLE or exit - Add phased pricing for gemini-4-argon-b and gemini-4-argon-trial, and suppress false upstream update prompts on custom GitHub forks Co-authored-by: orbitoo <elbertoo001@gmail.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import { i18nStore, t } from '../../i18n/index.js';
|
||||
import { createSvgIcon, patchSvgIcon } from '../../icons/SvgIcon.js';
|
||||
import {
|
||||
fetchTelemetry,
|
||||
formatAgentBadgeText,
|
||||
normalizeClientUpdateMode,
|
||||
telemetryStore,
|
||||
triggerPluginUpdate,
|
||||
@@ -240,7 +241,7 @@ export const TopSessionHeader = defineComponent({
|
||||
} else if (isRunning) {
|
||||
const runningAgent = (telemetry?.activeConversation?.agents || []).find((a) => a.isRunning);
|
||||
const runSuffix =
|
||||
hasSubagents && runningAgent ? ` · ${runningAgent.badgeText || runningAgent.shortLabel}` : '';
|
||||
hasSubagents && runningAgent ? ` · ${formatAgentBadgeText(runningAgent)}` : '';
|
||||
patchSvgIcon(statusIcon, 'bolt');
|
||||
patchText(statusText, t('header.statusGenerating', { suffix: runSuffix }));
|
||||
patchClasses(statusTag, {
|
||||
|
||||
@@ -313,7 +313,9 @@ export const ContextWindowWidget = defineComponent({
|
||||
const activeBadgeText = isEnglishLocale()
|
||||
? rawActiveBadge === '主'
|
||||
? t('fmt.mainBadge')
|
||||
: rawActiveBadge.replace(/^子(\d+)$/, (_, n) => t('fmt.subBadge', { index: n }))
|
||||
: rawActiveBadge
|
||||
.replace(/^子(\d+)$/, (_, n) => t('fmt.subBadge', { index: n }))
|
||||
.replace(/^旁(\d+)$/, (_, n) => t('fmt.sideBadge', { index: n }))
|
||||
: rawActiveBadge;
|
||||
|
||||
const pillItems = [
|
||||
|
||||
@@ -347,10 +347,12 @@ export const StepTableWidget = defineComponent({
|
||||
const badgeText = isEnglishLocale()
|
||||
? formatAgentBadgeText({
|
||||
isMain: !st.isSubagent,
|
||||
isSideQuestion: Boolean(st.isSideQuestion),
|
||||
sideIndex: st.sideIndex || 0,
|
||||
index: st.agentIndex || 0,
|
||||
badgeText: st.agentBadge,
|
||||
})
|
||||
: st.agentBadge || (st.isSubagent ? '子' : '主');
|
||||
: st.agentBadge || (st.isSideQuestion ? '旁' : st.isSubagent ? '子' : '主');
|
||||
patchText(refs.agentBadgeEl, badgeText);
|
||||
|
||||
if (interactiveBadges && onSelectAgentScopes) {
|
||||
|
||||
Reference in New Issue
Block a user