chore: sweep Kimi mentions from comments and notes
Some checks failed
Tests / PR mergeability (push) Successful in 19s
Tests / Base branch health (push) Successful in 10s
Tests / Detect test scope (push) Successful in 17s
Tests / lint-tests (push) Failing after 1m43s
Tests / plugin-validate (push) Successful in 1m7s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 18s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24) (push) Failing after 17s
Tests / test (inert CI) (push) Has been skipped
Tests / QA loop walk (smell ratchet) (push) Failing after 18s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 8s
Tests / Required tests (push) Has been cancelled
Tests / conformance test (macos-latest, 24) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Has been cancelled
Some checks failed
Tests / PR mergeability (push) Successful in 19s
Tests / Base branch health (push) Successful in 10s
Tests / Detect test scope (push) Successful in 17s
Tests / lint-tests (push) Failing after 1m43s
Tests / plugin-validate (push) Successful in 1m7s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 18s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24) (push) Failing after 17s
Tests / test (inert CI) (push) Has been skipped
Tests / QA loop walk (smell ratchet) (push) Failing after 18s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 8s
Tests / Required tests (push) Has been cancelled
Tests / conformance test (macos-latest, 24) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Has been cancelled
This commit is contained in:
@@ -249,9 +249,9 @@ describe('resolveReportedRuntime: precedence', () => {
|
||||
|
||||
test('invalid MSD_RUNTIME falls through to config', (t) => {
|
||||
const tmpDir = withProject(t);
|
||||
writeConfig(tmpDir, JSON.stringify({ runtime: 'kimi' }));
|
||||
writeConfig(tmpDir, JSON.stringify({ runtime: 'cursor' }));
|
||||
const result = resolveReportedRuntime(tmpDir, { env: { MSD_RUNTIME: ' ' } });
|
||||
assert.strictEqual(result, 'kimi');
|
||||
assert.strictEqual(result, 'cursor');
|
||||
});
|
||||
|
||||
test('explicit config runtime outranks detection (#2517 preserved)', (t) => {
|
||||
@@ -307,10 +307,10 @@ describe('resolveReportedRuntime: precedence', () => {
|
||||
|
||||
test('crlf config json is unaffected', (t) => {
|
||||
const tmpDir = withProject(t);
|
||||
const crlfConfig = ['{', ' "runtime": "kimi"', '}'].join('\r\n');
|
||||
const crlfConfig = ['{', ' "runtime": "cursor"', '}'].join('\r\n');
|
||||
writeConfig(tmpDir, crlfConfig);
|
||||
const result = resolveReportedRuntime(tmpDir, { env: { CODEX_SANDBOX: 'seatbelt' } });
|
||||
assert.strictEqual(result, 'kimi');
|
||||
assert.strictEqual(result, 'cursor');
|
||||
});
|
||||
|
||||
// Deliberately NOT a "windows-shaped CODEX_HOME" test computed with
|
||||
@@ -447,8 +447,8 @@ describe('runtime-slash: frozen contract (#3245 extraction must not move it)', (
|
||||
writeConfig(tmpDir, JSON.stringify({ runtime: 'opencode' }));
|
||||
assert.strictEqual(resolveRuntime(tmpDir), 'opencode');
|
||||
|
||||
process.env.MSD_RUNTIME = 'kimi';
|
||||
assert.strictEqual(resolveRuntime(tmpDir), 'kimi');
|
||||
process.env.MSD_RUNTIME = 'cursor';
|
||||
assert.strictEqual(resolveRuntime(tmpDir), 'cursor');
|
||||
});
|
||||
|
||||
test('resolveRuntime ignores a codex session signal', (t) => {
|
||||
@@ -644,11 +644,11 @@ describe('resolveReportedRuntime: install-marker rung (#4717)', () => {
|
||||
|
||||
test('explicit config runtime still outranks the marker (#4717 ladder rung 1)', (t) => {
|
||||
const tmpDir = withProject4717(t);
|
||||
writeConfig4717(tmpDir, 'kimi');
|
||||
writeConfig4717(tmpDir, 'cursor');
|
||||
slash._setInstallRuntimeMarkerForTests('codex');
|
||||
t.after(() => slash._resetInstallRuntimeMarkerCacheForTests());
|
||||
const result = resolveReportedRuntime(tmpDir, { env: {} });
|
||||
assert.strictEqual(result, 'kimi');
|
||||
assert.strictEqual(result, 'cursor');
|
||||
});
|
||||
|
||||
test('no marker: host detection unchanged (dev/source trees, pre-#2297 installs)', (t) => {
|
||||
|
||||
Reference in New Issue
Block a user