From 948a7af7a6802d3f7e71114e7093e7870b1bde0c Mon Sep 17 00:00:00 2001 From: Milo Quinn Date: Sat, 6 Jun 2026 22:38:26 +0800 Subject: [PATCH] fix: use public cancelled property in streaming thunk --- mellea/stdlib/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mellea/stdlib/streaming.py b/mellea/stdlib/streaming.py index 2de0c6d37..9f2e46fa8 100644 --- a/mellea/stdlib/streaming.py +++ b/mellea/stdlib/streaming.py @@ -434,7 +434,7 @@ def as_thunk(self) -> ModelOutputThunk[str]: "as_thunk accessed before acomplete() — await acomplete() first" ) thunk = ModelOutputThunk(value=self.full_text) - thunk._cancelled = self._mot._cancelled + thunk._cancelled = self._mot.cancelled thunk.generation = copy(self._mot.generation) thunk.parsed_repr = thunk.value # type: ignore[assignment] return thunk