From 1214098c7ee2d63fae8542e794d7418cceb09fc3 Mon Sep 17 00:00:00 2001 From: Yvette Carlisle Date: Thu, 11 Jun 2026 16:44:16 +0800 Subject: [PATCH] {"schema":"decodex/commit/1","summary":"Limit Decodex app run chips to account rows","authority":"manual"} --- .../Sources/DecodexApp/AccountPanelView.swift | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift b/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift index 55dc03b76..a79c33454 100644 --- a/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift +++ b/apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift @@ -279,10 +279,6 @@ struct AccountPanelView: View { header accountSummary - if globalActiveRuns.isEmpty == false { - globalRunSummary - } - if telemetryMatrixIsVisible { AccountTelemetryMatrixView( aggregate: accountProfileAggregate, @@ -609,9 +605,6 @@ struct AccountPanelView: View { if store.accountList?.usageProbeError != nil { height += AccountPanelLayout.sectionSpacing + AccountPanelLayout.noticeHeight } - if globalActiveRuns.isEmpty == false { - height += AccountPanelLayout.sectionSpacing + AccountRunStripLayout.globalSummaryHeight - } return height } @@ -666,30 +659,6 @@ struct AccountPanelView: View { + CGFloat(rows.count - 1) * AccountPanelLayout.telemetryRowSpacing } - private var globalActiveRuns: [OperatorRunStatus] { - store.operatorSnapshot?.activeRuns ?? [] - } - - private var globalRunSummary: some View { - VStack(alignment: .leading, spacing: 6) { - HStack(alignment: .firstTextBaseline, spacing: 6) { - Image(systemName: "play.circle.fill") - .font(PanelFont.accountDetail) - .foregroundStyle(PanelPalette.routeAccent(colorScheme)) - .frame(width: 12) - Text("\(globalActiveRuns.count) active") - .font(PanelFont.accountDetail) - .foregroundStyle(PanelPalette.primaryText(colorScheme)) - Spacer(minLength: 0) - } - - AccountRunSummaryView(runs: globalActiveRuns, currentTime: currentTime) - } - .padding(.horizontal, 8) - .padding(.vertical, 7) - .modernGlassSurface(cornerRadius: 9, depth: .row) - } - private func displayName(for account: CodexAccount) -> String { if emailsHidden { return AccountDisplay.aliases(for: store.accounts)[account.id] @@ -1018,7 +987,6 @@ struct AccountRunSummaryView: View { } private enum AccountRunStripLayout { - static let globalSummaryHeight: CGFloat = 42 static let contentCoordinateSpace = "account-run-strip-content" static let dragActivationDistance: CGFloat = 1 static let edgeControlSpacing: CGFloat = 4 @@ -2999,10 +2967,6 @@ struct OperatorLanePopoverView: View { } private var modelBucket: OperatorChildAgentBucket? { - guard run.processAlive != false else { - return nil - } - return orderedBuckets.first { bucket in bucket.name.caseInsensitiveCompare("Model") == .orderedSame }