fix(transcode): handle timestamp rounding tolerance for screenshot annotations

This commit is contained in:
yiling
2026-07-25 10:46:20 +08:00
parent bd13fa7774
commit d052c56d39
4 changed files with 387 additions and 8 deletions
+13
View File
@@ -2,6 +2,7 @@ import { Type } from '@sinclair/typebox'
import { type AgentTool } from '@earendil-works/pi-agent-core'
import { type ImageContent } from '@earendil-works/pi-ai'
import { prisma, WorkflowTaskType, WorkflowTaskStatus, type User } from '@shumai/db'
import { logger } from '@shumai/core/src/logger'
import { s3Service } from '@shumai/core/src/s3/s3'
import { workflowService } from '@shumai/workflow-core'
import { authzService, Permission, ResourceType } from '@shumai/core/src/authz/authz'
@@ -65,6 +66,18 @@ export function createScreenshotTool(
}
}
logger.info(
{
assetId,
userId,
userCommentId,
commentTimestamp,
hasAnnotations: Boolean(annotations),
params,
},
'[screenshotTool] Executing screenshot tool call',
)
// Trigger transcode workflow to take screenshots
const task = await prisma.workflowTask.create({
data: {