mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 07:17:54 +08:00
be8a0111ec
`ask` now reads its answer from the wait's source as well, which is what makes the notification's reply field mean something: the reply typed into it is the answer the caller gets. The readline path stays whenever the source offers no answers, so line editing and Tab completion only go away when the human asked for a surface that can answer — and a terminal answer still wins over one that arrives through the notification. The read itself is the poll-based one this module already had, so the same "no deadline, wait for a line or an answer" rule and the same Ctrl+C handling apply; a cancelled read raises `NonInteractiveError`, as the backend's own cancellation does.