92eb6cf6e1aa8ce00e6ed68d4cf8aedd2e32c32b
One parked question per dialogue id meant a side query could only destroy the flow it interrupted. The store now keeps a stack per id, newest last, with Push, Peek, Pop, Depth and Delete as drop-all. MaxStackDepth is 2: one flow plus the thing he interrupted it with, because spoken conversation does not nest deeper, and because every level she keeps is a level she has to be able to speak when it dies. Behaviour is unchanged. Put still replaces the top rather than growing the stack — a re-ask is another question about the same action — and nothing calls Push yet, so the daemon runs at depth one exactly as before. Get is Peek under the name the callers already use. An expired top takes the stack with it and TakeExpired reports it, so no parked action dies without a word; Push returns the entry the depth bound forced out for the same reason. PendingQuestion.IsExpired and CanAsk now answer through PendingAction, so the TTL and attempt-cap rules have one copy and the widening cannot drift.
Description
No description provided
Languages
Go
97.1%
HTML
0.9%
Shell
0.6%
CSS
0.5%
Makefile
0.3%
Other
0.6%