bgtasks

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bgtasks renders the horizontal background-task chip strip. Mirrors components/agents/strip.go shape — one chip per task, rotating spinner glyph while running, static glyph on terminal states. Returns "" when no daemons of kind local_bash are tracked so the layout collapses the slot.

Source of truth is the *daemon.DaemonState (the unified daemon catalog). The strip subscribes implicitly via the agent's KindStoreUpdate bridge — the bubbletea host re-renders when any daemon change arrives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ds *daemon.DaemonState, width int, th *theme.Theme, frame int) string

Render returns the chip strip as a (possibly multi-line) string. frame is the spinner frame index used to animate running daemons.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL