Home question cards survive org/team and origin-mismatch resume rejections
Follow-up from review of #14099 (thread).
A pending question raised inside an expert session becomes an unclearable Home card whenever the thread's guard raises before clear_pending_question runs (sdk/service.py:4047 vs 4104; baseline/service.py:1641 vs 1669). The card has no secondary_action/dismiss, so only deleting the session removes it.
#14099 fixed the archived-expert case on the read side: Home now drops question items whose asker is not in the active roster. That filter does not cover the other guards that raise on the same path — the org/team mismatch and the origin-mismatch resume rejection.
The general fix belongs on the write side: either clear pending questions when the session becomes unanswerable, or reorder the clear ahead of the identity build in both engines. Both touch the engines, which is why #14099 took the read-side remedy for the one case it could.
Source: Significant-Gravitas/AutoGPT