File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ OpenClaw redacts sensitive values before writing export files:
181181
182182The exporter also bounds input size:
183183
184- - runtime sidecar files: 10 MiB; capture stops at the cap and records a truncation event when space remains
184+ - runtime sidecar files: live capture stops at 10 MiB and records a truncation event when space remains; export accepts existing runtime sidecars up to 50 MiB
185185- session files: 50 MiB
186186- runtime events: 200,000
187187- total exported events: 250,000
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import fs from "node:fs";
22import path from "node:path" ;
33import { resolveHomeRelativePath } from "../infra/home-dir.js" ;
44
5- export const TRAJECTORY_RUNTIME_FILE_MAX_BYTES = 10 * 1024 * 1024 ;
5+ export const TRAJECTORY_RUNTIME_CAPTURE_MAX_BYTES = 10 * 1024 * 1024 ;
6+ export const TRAJECTORY_RUNTIME_FILE_MAX_BYTES = 50 * 1024 * 1024 ;
67export const TRAJECTORY_RUNTIME_EVENT_MAX_BYTES = 256 * 1024 ;
78
89type TrajectoryPointerOpenFlagConstants = Pick <
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
66import { parseBooleanValue } from "../utils/boolean.js" ;
77import { safeJsonStringify } from "../utils/safe-json.js" ;
88import {
9+ TRAJECTORY_RUNTIME_CAPTURE_MAX_BYTES ,
910 TRAJECTORY_RUNTIME_EVENT_MAX_BYTES ,
1011 TRAJECTORY_RUNTIME_FILE_MAX_BYTES ,
1112 resolveTrajectoryFilePath ,
@@ -15,6 +16,7 @@ import {
1516import type { TrajectoryEvent , TrajectoryToolDefinition } from "./types.js" ;
1617
1718export {
19+ TRAJECTORY_RUNTIME_CAPTURE_MAX_BYTES ,
1820 TRAJECTORY_RUNTIME_EVENT_MAX_BYTES ,
1921 TRAJECTORY_RUNTIME_FILE_MAX_BYTES ,
2022 resolveTrajectoryFilePath ,
@@ -244,7 +246,7 @@ export function createTrajectoryRuntimeRecorder(
244246 }
245247 const maxRuntimeFileBytes = Math . max (
246248 1 ,
247- Math . floor ( params . maxRuntimeFileBytes ?? TRAJECTORY_RUNTIME_FILE_MAX_BYTES ) ,
249+ Math . floor ( params . maxRuntimeFileBytes ?? TRAJECTORY_RUNTIME_CAPTURE_MAX_BYTES ) ,
248250 ) ;
249251 const writer =
250252 params . writer ??
You can’t perform that action at this time.
0 commit comments