feat(FN-2113): merge fusion/fn-2113

This commit is contained in:
gsxdsm
2026-04-19 05:07:00 -07:00
parent a956ce5a4f
commit 59fbdc8dab
4 changed files with 22 additions and 22 deletions

View File

@@ -789,14 +789,14 @@ describe("InProcessRuntime", () => {
expect(scheduler!.getRegisteredAgents()).toContain(agent.id);
});
it("registers agent without explicit heartbeatIntervalMs using default 30s interval", async () => {
it("registers agent without explicit heartbeatIntervalMs using default 3600s interval", async () => {
// Create a new agent with only enabled: true (no heartbeatIntervalMs)
// This tests that the default 30-second interval is applied
// This tests that the default 3600-second interval (1 hour) is applied
const store = getAgentStore(runtime);
const agent = await store.createAgent({
name: "test-agent-default-interval",
role: "executor",
runtimeConfig: { enabled: true }, // No heartbeatIntervalMs - should use default 30s
runtimeConfig: { enabled: true }, // No heartbeatIntervalMs - should use default 3600s (1 hour)
});
// Verify the agent was registered with the trigger scheduler

View File

@@ -497,7 +497,7 @@ export class InProcessRuntime
this.agentStore.on("agent:updated", this.agentUpdatedListener);
// Register existing agents with heartbeat monitoring not explicitly disabled
// Agents without explicit heartbeat config will use the default 30-second interval
// Agents without explicit heartbeat config will use the default 3600-second interval (1 hour)
try {
const agents = await this.agentStore.listAgents();
let registeredCount = 0;