MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / renderWatchdogTimeout

Method renderWatchdogTimeout

internal/tui/log.go:623–634  ·  view source on GitHub ↗

renderWatchdogTimeout renders a watchdog timeout message.

(entry LogEntry)

Source from the content-addressed store, hash-verified

621
622// renderWatchdogTimeout renders a watchdog timeout message.
623func (l *LogViewer) renderWatchdogTimeout(entry LogEntry) []string {
624 style := lipgloss.NewStyle().
625 Foreground(WarningColor).
626 Bold(true)
627
628 text := entry.Text
629 if text == "" {
630 text = "Watchdog timeout: process killed"
631 }
632
633 return []string{style.Render("⏱ " + text)}
634}

Callers 1

renderEntryMethod · 0.95

Calls 1

RenderMethod · 0.45

Tested by

no test coverage detected