You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/09/22 23:21:12 UTC
(maka) branch feat/runtime-host-rust updated: test(runtime): align chat defaults fixture with model-level thinking
This is an automated email from the ASF dual-hosted git repository.
M4n5ter pushed a commit to branch feat/runtime-host-rust
in repository https://gitbox.apache.org/repos/asf/maka.git
The following commit(s) were added to refs/heads/feat/runtime-host-rust by this push:
new 44cbd86b08 test(runtime): align chat defaults fixture with model-level thinking
44cbd86b08 is described below
commit 44cbd86b080211d678ae1e5e47dd340f70b0ac30
Author: Wang <m4...@gmail.com>
AuthorDate: Wed Sep 23 07:21:06 2026 +0800
test(runtime): align chat defaults fixture with model-level thinking
Generated-by: Codex
---
tests/fixtures/client-runtime-policy-workflow.mjs | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/tests/fixtures/client-runtime-policy-workflow.mjs b/tests/fixtures/client-runtime-policy-workflow.mjs
index 3ee45c2eb2..6d86008510 100644
--- a/tests/fixtures/client-runtime-policy-workflow.mjs
+++ b/tests/fixtures/client-runtime-policy-workflow.mjs
@@ -102,7 +102,6 @@ export async function verifyRuntimePolicy(connection, workspace, reopened, conne
const value = {
sandboxMode: 'danger-full-access',
- thinkingLevel: 'high',
};
const beforeRace = notices.length;
const raced = await Promise.all([mutate(0, value), mutate(0, value, other)]);
@@ -154,7 +153,7 @@ export async function verifyRuntimePolicy(connection, workspace, reopened, conne
await barrier();
assert.equal(notices.length, beforeUnavailable, 'unavailable mutation must not notify');
- const changed = await mutate(2, { sandboxMode: 'workspace-write', thinkingLevel: 'low' });
+ const changed = await mutate(2, { sandboxMode: 'workspace-write' });
assert.deepEqual(changed, { kind: 'committed', revision: 3 });
for (const { input, snapshot } of sessions) {
assert.deepEqual(await querySession(request, input.sessionId), snapshot);
@@ -164,18 +163,13 @@ export async function verifyRuntimePolicy(connection, workspace, reopened, conne
'default changes never alter existing or exactly retried Sessions',
);
}
- const cleared = await mutate(3, { sandboxMode: 'danger-full-access' });
- assert.deepEqual(cleared, { kind: 'committed', revision: 4 });
+ const restored = await mutate(3, { sandboxMode: 'danger-full-access' });
+ assert.deepEqual(restored, { kind: 'committed', revision: 4 });
const finalSettings = await settingsSnapshot(request);
assert.equal(finalSettings.policy.revision, 4);
assert.deepEqual(finalSettings.policy.policy.chatDefaults, {
sandboxMode: 'danger-full-access',
});
- assert.equal(
- Object.hasOwn(finalSettings.policy.policy.chatDefaults, 'thinkingLevel'),
- false,
- 'set_chat_defaults replaces the whole object; omission clears thinking',
- );
await barrier();
assert.equal(notices.length, beforeUnavailable + 2);
const catalog = await request('connection.catalog.query', { kind: 'start' });
@@ -189,7 +183,7 @@ export async function verifyRuntimePolicy(connection, workspace, reopened, conne
raced,
sameValue,
changed,
- cleared,
+ restored,
configurationNotices: notices,
};
await writeFile(path, JSON.stringify(saved));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org