fix(codex): preserve context config in remote sessions (#1633)

This commit is contained in:
NightWatcher314
2026-09-06 14:19:44 +08:00
committed by GitHub
parent b85c72f09f
commit 97b1dd4c34
6 changed files with 141 additions and 6 deletions
@@ -188,6 +188,23 @@ describe('appServerConfig', () => {
});
});
it('passes effective Codex context management settings via thread config', () => {
const params = buildThreadStartParams({
cwd: '/workspace/project',
mode: { permissionMode: 'default', collaborationMode: 'default' },
mcpServers,
contextManagementConfig: {
modelContextWindow: 400_000,
modelAutoCompactTokenLimit: 300_000
}
});
expect(params.config).toMatchObject({
model_context_window: 400_000,
model_auto_compact_token_limit: 300_000
});
});
it('translates Fast to the advertised app-server tier (priority) in thread params', () => {
const params = buildThreadStartParams({
cwd: '/workspace/project',