From e277937619b20835b1676c485d70ae7ec1433882 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 16 Apr 2026 20:54:27 +0200 Subject: [PATCH] batchstore: set result to status message on failure On failure, result is empty and only status carries the error. Callers (subagent_spawn, oq) now always have a useful value in result regardless of success or failure. --- internal/p9/batchstore.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/p9/batchstore.go b/internal/p9/batchstore.go index a73c154..1450735 100644 --- a/internal/p9/batchstore.go +++ b/internal/p9/batchstore.go @@ -224,6 +224,7 @@ func (s *BatchStore) runJob(ctx context.Context, job *batchJob) { } else { job.status = "failed: " + err.Error() } + job.result = job.status plog.Info("batch job %s failed: %v", job.id, err) return }