Somewhat related, there's a great dark comedy movie called "The Day Shall Come" that revolves around the mechanics of entrapment, and especially how it often targets people on the fringes, especially those with mental illness. Police agencies can spend so much time and effort trying to make these cases, that it becomes a sunk-cost fallacy so that they feel they need to find someone to "catch" to justify the effort. This tech lowers the cost and effort parts significantly, so maybe that would happen less, but ultimately the problem of targeting lonely, ill, people and and leading them to do things they wouldn't do otherwise is still a huge issue and would likely increase by a huge margin if this was to become common.
If the feds can find a loose cannon to carry out a bombing, so can a real terrorist group. For this reason, a suspect having a mental illness is irrelevant.