mirror of https://github.com/buster-so/buster.git
report cut off fix
This commit is contained in:
parent
b8b2526348
commit
a7b307a460
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue