mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-09 01:51:39 +00:00
fix(codex): preserve context config in remote sessions (#1633)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user