ZIm/crates/repl/src
Agus Zubiaga b103d7621b
Improve handling of large output in embedded terminals (#32416)
#31922 made embedded terminals automatically grow to fit the content. We
since found some issues with large output which this PR addresses by:

- Only shaping / laying out lines that are visible in the viewport
(based on `window.content_mask`)
- Falling back to embedded scrolling after 1K lines. The perf fix above
actually makes it possible to handle a lot of lines, but:
- Alacrity uses a `u16` for rows internally, so we needed a limit to
prevent overflow.
- Scrolling through thousands of lines to get to the other side of a
terminal tool call isn't great UX, so we might as well set the limit
low.
- We can consider raising the limit when we make card headers sticky.

Release Notes:

- Agent: Improve handling of large terminal output
2025-06-09 18:11:31 -03:00
..
components chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
kernels python: Re-land usage of source file path in toolchain picker (#31893) 2025-06-02 16:29:06 +00:00
notebook Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
outputs Improve handling of large output in embedded terminals (#32416) 2025-06-09 18:11:31 -03:00
components.rs Show kernel options in a picker (#20274) 2024-11-07 17:59:53 -08:00
jupyter_settings.rs VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00
notebook.rs Initial Notebook UI structure (#19756) 2024-10-29 11:30:07 -07:00
outputs.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
repl.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
repl_editor.rs Add kernel detection for language support of runnable markdown cells (#29664) 2025-05-21 20:23:05 -07:00
repl_sessions_ui.rs Add searchable global tab switcher (#28047) 2025-04-28 09:21:27 +00:00
repl_store.rs Add kernel detection for language support of runnable markdown cells (#29664) 2025-05-21 20:23:05 -07:00
session.rs Remove block_mouse_down in favor of stop_mouse_events_except_scroll (#30401) 2025-05-29 22:07:34 +00:00