From 8738afc4b3fcc76e7a7a791d59820e34670a202e Mon Sep 17 00:00:00 2001 From: AliceJump <2630923991@qq.com> Date: Tue, 6 Oct 2026 05:30:30 +0800 Subject: [PATCH] fix(annotation): narrow retry load message fields --- src/annotationPanel.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/annotationPanel.ts b/src/annotationPanel.ts index 61415a2..205e0fe 100644 --- a/src/annotationPanel.ts +++ b/src/annotationPanel.ts @@ -486,7 +486,9 @@ class AnnotationController { break; } case 'retryLoad': - if (msg.imagePath === this._currentImage && msg.mode === this.mode) await this.loadImage(msg.imagePath); + if (msg.imagePath && msg.mode && msg.imagePath === this._currentImage && msg.mode === this.mode) { + await this.loadImage(msg.imagePath); + } break; case 'resolveAnnotationConflicts': await this.resolveAnnotationConflicts(msg.choices || [], msg.conflictSessionId);