feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes

This commit is contained in:
Yun Chan 2026-11-14 11:51:41 +09:00
parent 01ef3293cf
commit 66b6b45ba9
399 changed files with 17828 additions and 11330 deletions

View file

@ -5,6 +5,7 @@ import { app, ipcMain } from 'electron'
import os from 'os'
import { IPC_CHANNELS } from '@d3ro/core/ipc-channels'
import { ok } from '@d3ro/core/errors'
import { redactPII } from '@d3ro/core/utils/pii-redactor'
import type {
SystemDiagnosticsPayload,
AIAssistQuery,
@ -88,6 +89,16 @@ export function registerSupportHandlers(): void {
},
) => {
const now = Date.now()
const rawDiagnostics = ticketData.diagnostics ?? ticketData.diagnosticsSnapshot
const sanitizedDiagnostics: SystemDiagnosticsPayload | undefined = rawDiagnostics
? {
...rawDiagnostics,
recentErrors: (rawDiagnostics.recentErrors ?? []).map((entry) => ({
...entry,
message: redactPII(entry.message, 'mask').redactedText,
})),
}
: undefined
const newTicket: SupportTicket = {
id: `tkt_${now}`,
userId: 'user_local',
@ -96,9 +107,9 @@ export function registerSupportHandlers(): void {
category: ticketData.category || 'general',
priority: ticketData.priority || 'normal',
status: 'open',
subject: ticketData.subject || '고객 지원 문의',
description: ticketData.description || '',
diagnostics: ticketData.diagnostics ?? ticketData.diagnosticsSnapshot,
subject: redactPII(ticketData.subject || '고객 지원 문의', 'mask').redactedText,
description: redactPII(ticketData.description || '', 'mask').redactedText,
diagnostics: sanitizedDiagnostics,
slaDueAt: ticketData.slaDueAt ?? now + 24 * 60 * 60 * 1000,
createdAt: now,
updatedAt: now,