INNER CODE UNIT · Python

action_resume

VisionForge-OU/foreman · src/foreman/tui/app.py:328

    def action_resume(self) -> None:
        if not self.selected:
            return
        answer = self.query_one("#answer", TextArea).text.strip()
        if not answer:
            self.notify("Type an answer first", severity="warning")
            return
        slug, iid = self.slug, self.selected

        async def task():
            # The resume can outlive this screen (the user may navigate away during it),
            # so surface the result via the app (always alive); refresh_escs self-guards.
            try:
                await self.app.controller.resume(slug, iid, answer)
                self.app.notify(f"{iid} resumed")
            except Exception as e:
                self.app.notify(str(e), severity="error")
            self.refresh_escs()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…