修复完整历史与运行态内存放大并重建发布包
This commit is contained in:
@@ -4748,7 +4748,7 @@ function assertServerSessionHistoryRequestIdContract() {
|
||||
}
|
||||
|
||||
function assertHistoryRecallContract() {
|
||||
for (const script of ['session-history-store-unit.js', 'session-history-unit.js', 'history-runtime-unit.js', 'history-runtime-completion-unit.js', 'codex-rollouts-unit.js', 'history-frontend-unit.js', 'codexapp-retry-history-unit.js', 'streaming-retry-frontend-unit.js', 'assistant-bubble-controls-unit.js']) {
|
||||
for (const script of ['json-persistence-unit.js', 'runtime-state-memory-unit.js', 'session-history-store-unit.js', 'session-history-memory-unit.js', 'session-history-unit.js', 'history-runtime-unit.js', 'history-runtime-completion-unit.js', 'codex-rollouts-unit.js', 'history-frontend-unit.js', 'codexapp-retry-history-unit.js', 'streaming-retry-frontend-unit.js', 'assistant-bubble-controls-unit.js']) {
|
||||
const result = spawnSync(process.execPath, [path.join(REPO_DIR, 'scripts', script)], { encoding: 'utf8', timeout: 60000 });
|
||||
assert(result.status === 0, `${script}: ${result.stderr || result.stdout || result.error}`);
|
||||
}
|
||||
@@ -4828,7 +4828,8 @@ function assertHistoryRecallContract() {
|
||||
'Paged history requests should use the resolved full history and echo requestId'
|
||||
);
|
||||
assert(
|
||||
/prefetchChunks: targetMessageIndex === null \? 0/.test(serverSource),
|
||||
/const prefetchChunks = targetMessageIndex === null \? 0/.test(serverSource)
|
||||
&& /Math\.min\(HISTORY_MAX_CHUNKS_PER_LOAD,/.test(serverSource),
|
||||
'Normal session loads should keep older history on demand instead of prefetching it all'
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user