Skip to main content

Module layout

Module layout 

Source
Expand description

The top-level frame composition — generalized port of tagent’s repl/tui/layout.rs::draw.

Why: DOC-50 §5 Slice 4 migrates the vertical split that arranges the scrollback, input row, and statusline into one frame. Generalization dropped two tagent-only rows this crate has no generic equivalent for yet: the three-row “activity panel” (animated spinner + elapsed timer + latest thinking step, repl/tui/layout.rs::draw_activity / status.rs’s spinner helpers) and the inline choice-picker row (model/ provider/persona pickers, repl/tui/pickers.rs) — both are Phase 2/ later-slice concerns per DOC-50 §4.2/§5 Slice 7-9, not part of the MVP scrollback+input+statusline widget set this slice delivers.

What: draw splits the frame into chat (sized to content height, per crate::widgets::scrollback::chat_line_count), a separator, the input row, another separator, and the statusline, with a trailing blank spacer.

§Spec References

Functions§

draw
Top-level draw: banner (in-scrollback) + chat (sized to content) + separator + input + separator + statusline + trailing spacer.
draw_separator
Render a dim horizontal rule across area — the visual divider above and below the input row.