No, the IRS does not automatically send your refund to the trustee in your bankruptcy.  However, you and your attorney should amend your petition and list the refund as an asset.  Otherwise you are committing fraud.