INNER CODE UNIT · Python
task
VisionForge-OU/foreman · src/foreman/tui/app.py:337
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()
self.query_one("#answer", TextArea).text = ""
self.app.run_worker(task(), exclusive=False)
self.notify(f"resuming {iid}…")
class SettingsScreen(Screen):
BINDINGS = [Binding("escape", "app.pop_screen", "Back")]