delay to see if it fixes the issue of not marking complete

This commit is contained in:
dal 2025-09-03 10:10:36 -06:00
parent 992be1d12d
commit 2e11ee999a
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,9 @@ export function createSequentialThinkingExecute(
) {
return wrapTraced(
async (_input: SequentialThinkingInput): Promise<SequentialThinkingOutput> => {
// Add small delay to ensure finish handler completes its DB update
await new Promise((resolve) => setTimeout(resolve, 250));
if (!state.toolCallId) {
throw new Error('Tool call ID is required');
}

View File

@ -485,6 +485,9 @@ export function createCreateMetricsExecute(
) {
return wrapTraced(
async (input: CreateMetricsInput): Promise<CreateMetricsOutput> => {
// Add small delay to ensure finish handler completes its DB update
await new Promise((resolve) => setTimeout(resolve, 250));
const startTime = Date.now();
try {