You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: keep runtime trace config attributable for unlimited and tabless runs
Review follow-ups on the runtime trace metadata:
- record the "unlimited" step budget as the stored 0 sentinel instead of
dropping Infinity as a non-integer
- omit mode and the per-tab authorizations when there is no tab, so a dump
reads them as unknown rather than as ask/false
- widen the max_image_dimension floor to 1 so every dimension the agent can
hold survives normalization
- reuse _resolvePromptTier for the tier lookup
- guard the mirrored module with a byte-identical parity assertion and cover
the unlimited, tabless, and producible-range cases
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: test/run.js
+47-1Lines changed: 47 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4139,12 +4139,22 @@ test('trace record and JSON exports carry WebBrain version metadata', () => {
4139
4139
assert.match(recorder, /runtimeConfig: normalizeRuntimeTraceConfig\(meta\.runtimeConfig\)/, `${label}: run record should retain only allowlisted runtime settings`);
4140
4140
assert.match(agent, new RegExp(`webbrainVersion: ${runtimeName}\\.runtime\\.getManifest\\(\\)\\.version`), `${label}: trace start should read the runtime manifest`);
`${label}: workflow runs should snapshot effective runtime settings too`,
4146
+
);
4142
4147
assert.match(traceUi, new RegExp(`exportedByWebBrainVersion: ${runtimeName}\\.runtime\\.getManifest\\(\\)\\.version`), `${label}: JSON export should identify the exporting build`);
4143
4148
assert.match(traceUi, /schema: 'webbrain-trace\/1'/, `${label}: additive version metadata should retain the v1 schema`);
4144
4149
}
4145
4150
});
4146
4151
4147
4152
test('runtime trace config is versioned, bounded, and secret-free in both browsers', () => {
0 commit comments