diff --git a/frontend/src/lib/components/AnnotationLayer.svelte b/frontend/src/lib/components/AnnotationLayer.svelte
index 0321514d..5f8e57f8 100644
--- a/frontend/src/lib/components/AnnotationLayer.svelte
+++ b/frontend/src/lib/components/AnnotationLayer.svelte
@@ -163,20 +163,21 @@ const containerStyle = $derived(
{commentCounts?.[annotation.id]}
diff --git a/frontend/src/lib/components/PdfViewer.svelte b/frontend/src/lib/components/PdfViewer.svelte
index fc27684d..cd51b52a 100644
--- a/frontend/src/lib/components/PdfViewer.svelte
+++ b/frontend/src/lib/components/PdfViewer.svelte
@@ -217,6 +217,7 @@ async function handleAnnotationDraw(rect: { x: number; y: number; width: number;
if (res.ok) {
const created: Annotation = await res.json();
annotations = [...annotations, created];
+ activeAnnotationId = created.id;
}
} catch {
// ignore