mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add conversation turn rail, prompt preview, and decoupled step toggles
- Track user input turn boundaries and prompt previews in extractModelSteps while stripping compaction summary headers - Align interleaved main and subagent steps onto unified rootTurnIndex in telemetry-builder and scope lazy cache refresh to the active session family - Render dynamic left-edge turn rail and viewport-clamped prompt tooltip in StepsDetailView across arbitrary custom column orders - Decouple [主]/[子] agent badges from step index and add independent switches for Turn Rail and Agent Badge under Preferences -> Structure Co-authored-by: Swei <sweilo@qq.com>
This commit is contained in:
@@ -381,6 +381,12 @@ function isEquivalentTelemetry(prev, next) {
|
||||
if ((pSet?.showTopbarMultiSession !== false) !== (nSet?.showTopbarMultiSession !== false)) {
|
||||
return false;
|
||||
}
|
||||
if ((pSet?.showStepTurnRail !== false) !== (nSet?.showStepTurnRail !== false)) {
|
||||
return false;
|
||||
}
|
||||
if ((pSet?.showStepAgentBadge !== false) !== (nSet?.showStepAgentBadge !== false)) {
|
||||
return false;
|
||||
}
|
||||
if (!sameArr(pSet?.topbarCapsuleSlots, nSet?.topbarCapsuleSlots)) return false;
|
||||
if (!sameArr(pSet?.hoverModules, nSet?.hoverModules)) return false;
|
||||
if (!sameArr(pSet?.overviewModules, nSet?.overviewModules)) return false;
|
||||
@@ -547,7 +553,13 @@ function isEquivalentTelemetry(prev, next) {
|
||||
bs?.cacheReadTokens !== as?.cacheReadTokens ||
|
||||
bs?.contextTokens !== as?.contextTokens ||
|
||||
bs?.cacheHitPct !== as?.cacheHitPct ||
|
||||
bs?.selectedSpeedReason !== as?.selectedSpeedReason
|
||||
bs?.selectedSpeedReason !== as?.selectedSpeedReason ||
|
||||
bs?.turnIndex !== as?.turnIndex ||
|
||||
bs?.rootTurnIndex !== as?.rootTurnIndex ||
|
||||
bs?.isTurnStart !== as?.isTurnStart ||
|
||||
bs?.isRootTurnStart !== as?.isRootTurnStart ||
|
||||
bs?.turnPrompt !== as?.turnPrompt ||
|
||||
bs?.rootTurnPrompt !== as?.rootTurnPrompt
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
@@ -594,7 +606,13 @@ function isEquivalentTelemetry(prev, next) {
|
||||
before.cacheReadTokens !== after.cacheReadTokens ||
|
||||
before.contextTokens !== after.contextTokens ||
|
||||
before.cacheHitPct !== after.cacheHitPct ||
|
||||
before.selectedSpeedReason !== after.selectedSpeedReason
|
||||
before.selectedSpeedReason !== after.selectedSpeedReason ||
|
||||
before.turnIndex !== after.turnIndex ||
|
||||
before.rootTurnIndex !== after.rootTurnIndex ||
|
||||
before.isTurnStart !== after.isTurnStart ||
|
||||
before.isRootTurnStart !== after.isRootTurnStart ||
|
||||
before.turnPrompt !== after.turnPrompt ||
|
||||
before.rootTurnPrompt !== after.rootTurnPrompt
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
@@ -938,6 +956,12 @@ export async function saveSettingsPatch(patch) {
|
||||
if (Object.prototype.hasOwnProperty.call(safePatch, 'showTopbarMultiSession')) {
|
||||
safePatch.showTopbarMultiSession = Boolean(safePatch.showTopbarMultiSession);
|
||||
}
|
||||
if (Object.prototype.hasOwnProperty.call(safePatch, 'showStepTurnRail')) {
|
||||
safePatch.showStepTurnRail = Boolean(safePatch.showStepTurnRail);
|
||||
}
|
||||
if (Object.prototype.hasOwnProperty.call(safePatch, 'showStepAgentBadge')) {
|
||||
safePatch.showStepAgentBadge = Boolean(safePatch.showStepAgentBadge);
|
||||
}
|
||||
if (Object.prototype.hasOwnProperty.call(safePatch, 'topbarCapsuleSlots')) {
|
||||
safePatch.topbarCapsuleSlots = normalizeClientTopbarSlots(safePatch.topbarCapsuleSlots);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user