simpify crash report trail text generation

This commit is contained in:
pa
2026-01-09 21:40:19 +09:00
committed by Natsumi
parent 2f3e57cd01
commit 97a0cddf68
2 changed files with 112 additions and 8 deletions
+9 -1
View File
@@ -543,7 +543,15 @@ export const useVrcxStore = defineStore('Vrcx', () => {
}
return ts.isAfter(cutoff) || ts.isSame(cutoff);
});
const trailText = JSON.stringify(trail);
const trailText = trail
.map((entry) => {
const t = dayjs(entry.ts).format('HH:mm:ss');
const a = entry.action ?? '';
if (!a) return t;
return `${t} ${a}`;
})
.filter(Boolean)
.join(';');
Sentry.withScope((scope) => {
scope.setLevel('fatal');
scope.setTag('reason', 'crash-recovery');