fix(FN-1300): capture agent run output in heartbeat and step sessions

- Wire AgentLogger into heartbeat runs, including tool/text callbacks and stdout excerpts on run records
- Persist heartbeat context taskId snapshots earlier and ensure logger flushes on success and failure paths
- Pass TaskStore into StepSessionExecutor and flush per-attempt agent logs in finally cleanup
- Expand heartbeat and step-session tests to verify log persistence and flush behavior, and add a patch changeset for @gsxdsm/fusion
This commit is contained in:
gsxdsm
2026-04-08 12:46:24 -07:00
parent f465c3688c
commit b0b3ca7e4b
6 changed files with 275 additions and 29 deletions

View File

@@ -854,6 +854,7 @@ export class TaskExecutor {
executorLog.log(`${task.id}: using step-session mode (maxParallel=${settings.maxParallelSteps ?? 2})`);
const stepExecutor = new StepSessionExecutor({
store: this.store,
taskDetail: detail,
worktreePath,
rootDir: this.rootDir,