diff --git a/pkg/agentic/remote.go b/pkg/agentic/remote.go index 8126476..9234bc3 100644 --- a/pkg/agentic/remote.go +++ b/pkg/agentic/remote.go @@ -143,6 +143,7 @@ func (s *PrepSubsystem) dispatchRemote(ctx context.Context, _ *mcp.CallToolReque } else if len(rpcResp.Result.Content) > 0 { var dispatchOut DispatchOutput if json.Unmarshal([]byte(rpcResp.Result.Content[0].Text), &dispatchOut) == nil { + output.Success = dispatchOut.Success output.WorkspaceDir = dispatchOut.WorkspaceDir output.PID = dispatchOut.PID output.Agent = dispatchOut.Agent diff --git a/pkg/monitor/harvest.go b/pkg/monitor/harvest.go index df04e8b..dc01562 100644 --- a/pkg/monitor/harvest.go +++ b/pkg/monitor/harvest.go @@ -280,6 +280,8 @@ func updateStatus(wsDir, status, question string) { st["status"] = status if question != "" { st["question"] = question + } else { + delete(st, "question") // clear stale question from previous state } updated, _ := json.MarshalIndent(st, "", " ") coreio.Local.Write(filepath.Join(wsDir, "status.json"), string(updated))