report cut off fix

This commit is contained in:
dal 2025-09-22 13:38:27 -06:00
parent b8b2526348
commit a7b307a460
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
3 changed files with 5 additions and 8 deletions

View File

@ -296,10 +296,7 @@ export function createModifyReportsDelta(context: ModifyReportsContext, state: M
state.version_number = newVersion;
// Track this modification for this tool invocation
if (!state.reportsModifiedInMessage) {
state.reportsModifiedInMessage = new Set();
}
state.reportsModifiedInMessage.add(state.reportId);
state.reportModifiedInMessage = true;
// Update version history with the final content after all edits
const now = new Date().toISOString();

View File

@ -83,7 +83,7 @@ const ModifyReportsStateSchema = z.object({
.string()
.optional()
.describe('Track the last content saved to DB to avoid redundant updates'),
reportsModifiedInMessage: z.set(z.string()).optional(),
reportModifiedInMessage: z.boolean().optional(),
snapshotVersion: z.number().optional(),
versionHistory: z
.record(
@ -121,7 +121,7 @@ export function createModifyReportsTool(context: ModifyReportsContext) {
toolCallId: undefined,
responseMessageCreated: false,
snapshotContent: undefined,
reportsModifiedInMessage: new Set(),
reportModifiedInMessage: false,
};
// Create all functions with the context and state passed

View File

@ -1,5 +1,5 @@
import * as path from 'path';
import { fileURLToPath } from 'url';
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import { config } from 'dotenv';
// Get the directory name for ES modules