fix(FN-710): fix addSteeringComment to persist comments and correct type usage
- Fix addSteeringComment to skip auto-refinement and write directly to steeringComments array - Update formatCommentForInjection to accept SteeringComment type instead of raw string - Export SteeringComment type from @fusion/core for executor usage - Add tests verifying steering comments are persisted to task store - Fix executor import to use exported SteeringComment type
This commit is contained in:
@@ -1941,7 +1941,7 @@ Treat a non-zero exit code as a blocking failure. Do not claim success without a
|
||||
* Format a comment for injection into a running agent session.
|
||||
* Used for real-time steering during task execution.
|
||||
*/
|
||||
function formatCommentForInjection(comment: import("@fusion/core").TaskComment): string {
|
||||
function formatCommentForInjection(comment: import("@fusion/core").SteeringComment): string {
|
||||
const timestamp = formatTimestamp(comment.createdAt);
|
||||
return `📣 **New feedback** — ${timestamp} (${comment.author}):\n\n${comment.text}\n\nPlease adjust your approach based on this feedback.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user