feat(FN-4244): add no-task heartbeat procedure override
Merged FN-4244: adds an override path for the no-task heartbeat procedure in the engine, allowing agents to execute a custom procedure when they have no active task. The fix commit corrects the initial implementation, with test coverage for procedure source selection and updated documentation in `do Fusion-Task-Id: FN-4244 Fusion-Task-Lineage: 6bf1bfe4-de2c-4467-93dc-d90231a53eb2
This commit is contained in:
@@ -49,7 +49,7 @@ describe("TaskStore", () => {
|
||||
} finally {
|
||||
harness.store().stopWatching();
|
||||
}
|
||||
}, 30_000);
|
||||
}, 60_000);
|
||||
it("cache is updated when polling is active even without fs.watch", async () => {
|
||||
await harness.store().watch();
|
||||
|
||||
|
||||
@@ -4057,8 +4057,8 @@ export interface AgentHeartbeatRun {
|
||||
systemPrompt?: string;
|
||||
/** Full per-tick execution prompt sent to the LLM for this run (truncated to 100,000 chars). */
|
||||
executionPrompt?: string;
|
||||
/** Whether a custom heartbeat procedure was loaded ("custom") or the built-in default was used ("default"). */
|
||||
heartbeatProcedureSource?: "default" | "custom";
|
||||
/** Whether the run used a custom heartbeat procedure, the built-in default, or the no-task default override. */
|
||||
heartbeatProcedureSource?: "default" | "custom" | "default-no-task-override";
|
||||
}
|
||||
|
||||
/** Capabilities/roles an agent can have */
|
||||
|
||||
Reference in New Issue
Block a user