I am a professional tax advisor. But I am semi-retired, and trading and bonds are not my area of expertise. But I understand what you did, and I think I can help you resolve this.
Your trade confirmations and account history should allow you to determine exactly how much of the sales proceeds were interest. If you can't do that, then I don't have a complete solution for you.
If you know how much of it was interest, then it's not that complicated. There are two parts to the equation:
Part 1:You report the interest portion in the appropriate area of your tax return. It does not matter that you did not receive Form 1099-INT. There are many situations in which a person receives taxable interest income but does not receive Form 1099-INT. For example if you are the seller in a seller-financed mortgage, the buyer does not have to send you a Form 1099-INT, but you still have to report the interest income.
So in your tax program, you enter the interest in the appropriate place. Exactly how you do this depends on the program, but the principle is universal. There may be a box to indicate whether you received Form 1099-INT. And there will definitely be a field to indicate that the interest is from the US Treasury, or that it is "state-exempt." So you enter the interest and check that box. Don't let it bother you if it feels like you are creating a "fake" Form 1099-INT. The point is to get the interest entered on line 2b of Form 1040, and get it coded so that it is backed out of your gross income on the state tax return.
Part 2: You report the sale of the bonds on Form 8949, in the section of your tax program where you report capital gain and loss. You have to report the total gross proceeds from the sale as it appears on Form 1099-B. If you don't do that, then it won't match with the data the IRS received from the broker, and you'll get an unpleasant letter from the IRS.
But you adjust your basis in the bonds--the amount you paid for them--upward by the amount of the interest. In other words, you increase your basis by the amount of the interest, and in this way you avoid having the interest included in your capital gain (or loss).
Your 1099-B indicates that the broker did not report your basis to the IRS. (Gee, I wonder why? Might have something to do with the accrued interest LOL.) So the adjustment to your basis will not trigger any red flags with the IRS.
Does this make sense?
BMK