Help us shape the future of Go! Take the 2026 Go Developer Survey

todotool

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ar *animation.Runtime, msg *types.Message, sessionState service.SessionStateReader) layout.Model

New creates a new unified todo component. This component handles create, create_multiple, list, and update operations. The TODOs themselves are displayed in the sidebar; here we only show the tool call header (icon + name).

Types

type SidebarComponent

type SidebarComponent struct {
	// contains filtered or unexported fields
}

SidebarComponent represents the todo display component for the sidebar

func NewSidebarComponent

func NewSidebarComponent() *SidebarComponent

func (*SidebarComponent) Counts added in v1.102.0

func (c *SidebarComponent) Counts() (completed, total int)

Counts returns how many todos are completed and the total count.

func (*SidebarComponent) InvalidateCache added in v1.80.0

func (c *SidebarComponent) InvalidateCache()

InvalidateCache drops the memoized render. The sidebar calls this when the theme changes, since the cached lines embed theme-dependent styling.

func (*SidebarComponent) Render

func (c *SidebarComponent) Render() string

func (*SidebarComponent) SetSize

func (c *SidebarComponent) SetSize(width int)

func (*SidebarComponent) SetTodos

func (c *SidebarComponent) SetTodos(result *tools.ToolCallResult) error

Jump to

Keyboard shortcuts

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