Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Merge remote-tracking branch 'upstream/main' into test-to-green-20261022

Steven Enamakelede1da53d82c
diff --cc scripts/mock-api/routes/__tests__/stateful.test.mjs
index 08e9175301,d5b7c0d66a..3a6ef4d975
--- a/scripts/mock-api/routes/__tests__/stateful.test.mjs
+++ b/scripts/mock-api/routes/__tests__/stateful.test.mjs
@@@ -67,7 -67,7 +67,7 @@@ test("does not reseed conversations aft
assert.deepEqual(afterDeleteBody?.data, []);
});
- test("keeps server-controlled ids on conversation create and channel patch routes", async () => {
-test("keeps the server-controlled id on conversation create", async () => {
++test("keeps server-controlled ids on create and patch routes", async () => {
const started = await startMockServer(0);
const baseUrl = `http://127.0.0.1:${started.port}`;
@@@ -77,14 -77,6 +77,35 @@@
body: JSON.stringify({ id: "client-conv", title: "Client title" }),
}).then((response) => response.json());
assert.notEqual(createdConversation?.data?.id, "client-conv");
+
++ const createdCron = await fetch(`${baseUrl}/settings/cron-jobs`, {
++ method: "POST",
++ headers: { "Content-Type": "application/json" },
++ body: JSON.stringify({ id: "client-cron", name: "Client cron" }),
++ }).then((response) => response.json());
++ const cronId = createdCron?.data?.id;
++ assert.notEqual(cronId, "client-cron");
++
++ await fetch(`${baseUrl}/settings/cron-jobs/${cronId}`, {
++ method: "PATCH",
++ headers: { "Content-Type": "application/json" },
++ body: JSON.stringify({ id: "mutated-cron", enabled: false }),
++ });
++
++ const cronList = await fetch(`${baseUrl}/settings/cron-jobs`).then(
++ (response) => response.json(),
++ );
++ const patchedCron = cronList.data.find((entry) => entry.id === cronId);
++ assert.equal(patchedCron.id, cronId);
++ assert.equal(patchedCron.enabled, false);
++
+ const patchedChannel = await fetch(`${baseUrl}/channels/channel-1`, {
+ method: "PATCH",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ id: "client-channel", name: "Patched channel" }),
+ }).then((response) => response.json());
+ assert.equal(patchedChannel?.data?.id, "channel-1");
+ assert.equal(patchedChannel?.data?.name, "Patched channel");
});
test("serves deterministic Parallel search proxy results", async () => {
diff --cc vendor/tinyagents
index 1f24dbece9,540997da52..9f91eb125a
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit 1f24dbece99f24fd4363efa4489f87dcfe2b02fb
-Subproject commit 540997da5274d0f12c38870d4be1af1a20494eab
++Subproject commit 9f91eb125a8e31c325b4bf41197f9699346861d4