fix(browser): harden runtime policy edge cases

This commit is contained in:
Tam Nhu Tran committed 2026-04-20 21:01:19 -04:00
1 parent 7d02f55f9f
commit 039ed63a39
16 files changed
+394 -28

No files matched your search

@@ -396,6 +396,24 @@ process.exit(0);
});
}
it('strips browser launch flags before native codex passthrough diagnostics', () => {
if (process.platform === 'win32') return;
const result = runCodexAlias(['--version', '--browser'], {
...process.env,
CI: '1',
NO_COLOR: '1',
CCS_HOME: tmpHome,
CCS_CODEX_PATH: fakeCodexPath,
CCS_TEST_CODEX_ARGS_OUT: codexArgsLogPath,
CCS_TEST_CODEX_VERSION: 'codex-cli 9.9.9-test',
});
expect(result.status).toBe(0);
expect(result.stdout).toContain('codex-cli 9.9.9-test');
expect(readLoggedCodexCalls(codexArgsLogPath)).toEqual([['--version']]);
});
for (const helpFlag of ['--help', '-h']) {
it(`passes ccsx ${helpFlag} straight through to the native Codex binary`, () => {
if (process.platform === 'win32') return;