diff --git a/src/renderer/src/components/sidebar/WorktreeCard.pr-display.test.tsx b/src/renderer/src/components/sidebar/WorktreeCard.pr-display.test.tsx
index 57749ed1e..83311e622 100644
--- a/src/renderer/src/components/sidebar/WorktreeCard.pr-display.test.tsx
+++ b/src/renderer/src/components/sidebar/WorktreeCard.pr-display.test.tsx
@@ -124,6 +124,10 @@ function renderWorktreeCardMarkup(element: ReactNode): string {
return renderToStaticMarkup(<>{element}>)
}
+function countAutomationCreatedLabels(markup: string): number {
+ return markup.match(/Created by automation/g)?.length ?? 0
+}
+
function getInlineRenameTitleTag(markup: string): string {
const match = markup.match(/]*data-worktree-title-inline-rename=""[^>]*>/)
expect(match).not.toBeNull()
@@ -456,7 +460,7 @@ describe('WorktreeCard linked PR display', () => {
/>
)
- expect(markup).toContain('Created by automation')
+ expect(countAutomationCreatedLabels(markup)).toBe(1)
expect(markup).not.toContain('>Automation')
}, 20_000)
@@ -487,7 +491,7 @@ describe('WorktreeCard linked PR display', () => {
/>
)
- expect(markup).not.toContain('Created by automation')
+ expect(countAutomationCreatedLabels(markup)).toBe(0)
expect(markup).not.toContain('>Automation')
expect(markup).not.toContain('Nightly triage automation')
}, 20_000)
@@ -519,7 +523,7 @@ describe('WorktreeCard linked PR display', () => {
/>
)
- expect(markup).toContain('Created by automation')
+ expect(countAutomationCreatedLabels(markup)).toBe(1)
expect(markup).not.toContain('>Automation')
}, 20_000)
@@ -549,7 +553,7 @@ describe('WorktreeCard linked PR display', () => {
/>
)
- expect(markup).not.toContain('Created by automation')
+ expect(countAutomationCreatedLabels(markup)).toBe(0)
expect(markup).not.toContain('>Automation')
expect(markup).not.toContain('Nightly triage automation')
})
diff --git a/src/renderer/src/components/sidebar/WorktreeCard.tsx b/src/renderer/src/components/sidebar/WorktreeCard.tsx
index dd4a7e42c..8eba02df0 100644
--- a/src/renderer/src/components/sidebar/WorktreeCard.tsx
+++ b/src/renderer/src/components/sidebar/WorktreeCard.tsx
@@ -511,7 +511,6 @@ const WorktreeCard = React.memo(function WorktreeCard({
const showAutomation = cardProps.includes('automation')
const showComment = cardProps.includes('comment')
const showPorts = cardProps.includes('ports')
- const hasAutomationMetadata = showAutomation && !!worktree.automationProvenance
const shouldRefreshHostedReview = newCardStyle ? showStatus : showPR
const detailsHoverControl = useWorktreeCardDetailsHoverControl()
const hoverDetailsOpen = detailsHoverControl.hoverOpen
@@ -1052,7 +1051,7 @@ const WorktreeCard = React.memo(function WorktreeCard({
// carrying a persistent rebase chip while preserving other interruption cues.
const showConflictOperationBadge =
!!conflictOperation && conflictOperation !== 'unknown' && conflictOperation !== 'rebase'
- const hasMetadataBadge = showConflictOperationBadge || hasAutomationMetadata
+ const hasMetadataBadge = showConflictOperationBadge
const showUnreadQuickAction = !affiliateListMode && showStatus && !newCardStyle
// Why: the slot owns the tiny unread/status lane; legacy keeps the bell
// toggle, while the experimental card keeps the status glyph passive.
@@ -1070,7 +1069,6 @@ const WorktreeCard = React.memo(function WorktreeCard({
showBranch ||
showDetachedHeadInMetaRow ||
showConflictOperationBadge ||
- hasAutomationMetadata ||
cacheStartedAt != null ||
showMetaRowDetails
)
@@ -1561,23 +1559,6 @@ const WorktreeCard = React.memo(function WorktreeCard({
)}
- {hasAutomationMetadata && (
-
-
-
- )}
-
{cacheStartedAt != null && (
)}