fix: restore selectedOutputs filter and fix oxlint console error

- Restore output node filtering in linearOutputStore that was
  accidentally removed, fixing the skips-unselected-outputs test
- Fix oxlint no-console error in perfReporter with proper disable

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Koshi
2026-03-29 22:24:04 +02:00
parent 79fb6b7d0a
commit 9aa3b5604b
2 changed files with 11 additions and 5 deletions

View File

@@ -41,7 +41,8 @@ export function logMeasurement(
if (formatter) return formatter(m)
return `${f}=${m[f]}`
})
// oxlint-disable-next-line no-console -- perf reporter intentionally logs
console.log(`${label}: ${parts.join(', ')}`)
}

View File

@@ -8,12 +8,13 @@ import type { InProgressItem } from '@/renderer/extensions/linearMode/linearMode
import type { ResultItemImpl } from '@/stores/queueStore'
import type { ExecutedWsMessage } from '@/schemas/apiSchema'
import { api } from '@/scripts/api'
import { useAppModeStore } from '@/stores/appModeStore'
import { useExecutionStore } from '@/stores/executionStore'
import { useJobPreviewStore } from '@/stores/jobPreviewStore'
export const useLinearOutputStore = defineStore('linearOutput', () => {
const { isAppMode } = useAppMode()
const appModeStore = useAppModeStore()
const executionStore = useExecutionStore()
const jobPreviewStore = useJobPreviewStore()
const workflowStore = useWorkflowStore()
@@ -116,9 +117,13 @@ export const useLinearOutputStore = defineStore('linearOutput', () => {
const newOutputs = flattenNodeOutput([nodeId, detail.output])
if (newOutputs.length === 0) return
// Track in-progress items for all output nodes, regardless of
// which ones are selected for the grid view. This ensures the
// full history shows every generated output.
// Skip output items for nodes not flagged as output nodes
const outputNodeIds = appModeStore.selectedOutputs
if (
outputNodeIds.length > 0 &&
!outputNodeIds.some((id) => String(id) === String(nodeId))
)
return
const skeletonItem = inProgressItems.value.find(
(i) => i.id === currentSkeletonId.value && i.jobId === jobId