INNER CODE UNIT · Python

action_kill

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

    def action_kill(self) -> None:
        if self.selected and self.app.controller.kill_worker(self.selected):
            self.notify(f"kill signal sent to {self.selected}")
        else:
            self.notify("no running worker to kill", severity="warning")


class AttentionScreen(Screen):
    BINDINGS = [
        Binding("escape", "app.pop_screen", "Back"),
        # Submit is Ctrl+S, NOT Enter: Enter must stay free for newlines in the answer
        # box (and selection in the list). priority=True so it fires even while the
        # TextArea has focus, so you can answer and submit without leaving the box.
        Binding("ctrl+s", "resume", "Answer & resume", priority=True),
        Binding("ctrl+n", "next", "Next escalation"),
    ]
    CSS = """
    #elist { height: 10; border: round $warning; }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…