Skip to main content

Module busy_messages

Module busy_messages 

Source
Expand description

Render gw delete refusal messages for the 3-tier busy model. Pure string formatting; no I/O. Kept separate from busy.rs so the detection logic can be tested without locale/styling concerns.

Functionsยง

render_busy_block
Render the busy-status block (header + body) for read-only callers like gw status / gw list. Same body sections as render_refusal (Active Claude session / Lockfile holder / cwd processes) but with a neutral header and no --force guidance. Returns an empty string when both vectors are empty.
render_refusal
Render the user-facing refusal text for gw delete. Empty inputs in both vectors is a programming error (caller should not have refused) but is rendered as an empty string for safety.