Add completion notifications and a background-job dashboard

Aperta
#68 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

The payload names no files. Start by finding the existing bg job registry and the turn-state events (turn_done, blocked, error, bg_exit) in the Rust source. The work spans notification channels, a bg list/log/kill dashboard, and a webhook payload, so split it before coding. Done means every acceptance checkbox in the issue passes, including the process-group kill and the rule that a failing channel never fails the turn.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: ux enhancement priority: P2

Problem

A local turn can run for minutes. The user switches away and has no signal when it finishes, blocks, or fails. bg starts long-running processes but there is no list, log view, or notification when one exits.

Claude Code hooks and Codex notifications cover this in cloud-oriented tools; a local agent should do it without a phone-home service.

Inspiration

  • Claude Code notification hooks.
  • Codex CLI completion notifications.
  • notify-send on Linux and terminal OSC 9/777 sequences.
  • The existing bg registry.

Proposal

Add notifications on turn_done, blocked, error and bg_exit:

  • Channels: terminal bell/OSC, desktop notify-send (if available), a user-configured webhook, and Telegram (opt-in, token from env, never stored in config).
  • Only notify when the turn took longer than a threshold (default 30 s) or ended in a non-Done state.
  • bg dashboard: list jobs with command, pid, start time, exit status and last lines; actions to view log, kill, or copy the command.
  • Rate-limit and dedupe notifications; never include prompt text or file contents by default.
  • All channels off by default except the terminal bell; no network unless the user configures a webhook.

Acceptance criteria

  • A turn over the threshold sends one notification per configured channel.
  • A blocked or failed turn notifies even when short.
  • bg list shows running and exited jobs with last lines.
  • Kill terminates the process group.
  • The webhook payload contains session id, status and duration, not prompts.
  • A failing notification channel never fails the turn.
Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GotinhaAzul/LocalHarness

Tutte le issue di GotinhaAzul/LocalHarness

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.