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:
gsxdsm
2026-04-02 14:17:19 -07:00
parent 0258c21ff6
commit bf12c22efb
4 changed files with 100 additions and 6 deletions

View File

@@ -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.`;
}