mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-25 08:48:08 +02:00
docs: disclose codex isolation limits
This commit is contained in:
parent
5966a09c49
commit
27bedb2879
8 changed files with 68 additions and 2 deletions
19
packages/cli/test/context/llm/codex-isolation.test.ts
Normal file
19
packages/cli/test/context/llm/codex-isolation.test.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { describe, expect, it } from 'vitest';
|
||||
import {
|
||||
CODEX_ISOLATION_WARNING,
|
||||
CODEX_ISOLATION_WARNING_FIX,
|
||||
formatCodexIsolationWarning,
|
||||
} from '../../../src/context/llm/codex-isolation.js';
|
||||
|
||||
describe('Codex isolation warning', () => {
|
||||
it('documents the enforced and unenforced Codex isolation boundaries', () => {
|
||||
expect(CODEX_ISOLATION_WARNING).toContain('runtime MCP server to the current ktx tool set');
|
||||
expect(CODEX_ISOLATION_WARNING).toContain('disables Codex web search');
|
||||
expect(CODEX_ISOLATION_WARNING).toContain('may still load user Codex config');
|
||||
expect(CODEX_ISOLATION_WARNING).toContain('built-in command execution');
|
||||
expect(CODEX_ISOLATION_WARNING_FIX).toContain('claude-code');
|
||||
expect(formatCodexIsolationWarning()).toBe(
|
||||
`${CODEX_ISOLATION_WARNING} ${CODEX_ISOLATION_WARNING_FIX}`,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
@ -240,6 +240,8 @@ describe('setup Anthropic model step', () => {
|
|||
models: { default: 'gpt-5.3-codex' },
|
||||
});
|
||||
expect(codexAuthProbe).toHaveBeenCalledWith(expect.objectContaining({ projectDir: tempDir, model: 'gpt-5.3-codex' }));
|
||||
expect(io.stderr()).toContain('Codex backend isolation is limited');
|
||||
expect(io.stderr()).toContain('may still load user Codex config');
|
||||
});
|
||||
|
||||
it('prompts for the Claude Code model during interactive setup', async () => {
|
||||
|
|
|
|||
|
|
@ -415,6 +415,16 @@ describe('buildProjectStatus codex', () => {
|
|||
status: 'ok',
|
||||
detail: 'local Codex session authenticated',
|
||||
});
|
||||
expect(status.warnings).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
message: expect.stringContaining('Codex backend isolation is limited'),
|
||||
fix: expect.stringContaining('claude-code'),
|
||||
}),
|
||||
]),
|
||||
);
|
||||
const rendered = renderProjectStatus(status, { verbose: false, useColor: false });
|
||||
expect(rendered).toContain('Codex backend isolation is limited');
|
||||
});
|
||||
|
||||
it('skips Codex auth probe with --fast', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue