diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-31 16:21:53 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-31 16:22:04 +0300 |
| commit | bc1c052d1524749b3f24d91e83f120ca8b7f37c4 (patch) | |
| tree | d012bd4288bec8033bd8e9ab4e2086e8f110178e /src/app | |
| parent | 7db744ab4758df30f3e811ff9930646ec5f5970d (diff) | |
fix: read alternate-screen agent history
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/api/panes.rs | 1 | ||||
| -rw-r--r-- | src/app/api_helpers.rs | 5 | ||||
| -rw-r--r-- | src/app/mod.rs | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/app/api/panes.rs b/src/app/api/panes.rs index 253fd627..02c9c3d4 100644 --- a/src/app/api/panes.rs +++ b/src/app/api/panes.rs @@ -2013,6 +2013,7 @@ mod tests { lines: Some(2), format: crate::api::schema::ReadFormat::Text, strip_ansi: true, + intent: crate::api::schema::ReadIntent::Interactive, }, ); let success: SuccessResponse = serde_json::from_str(&response).unwrap(); diff --git a/src/app/api_helpers.rs b/src/app/api_helpers.rs index a6dad384..95224b9f 100644 --- a/src/app/api_helpers.rs +++ b/src/app/api_helpers.rs @@ -143,7 +143,10 @@ pub(super) fn read_terminal_snapshot( } } -fn limit_snapshot_lines(text: String, limit: Option<usize>) -> crate::pane::TerminalReadSnapshot { +pub(crate) fn limit_snapshot_lines( + text: String, + limit: Option<usize>, +) -> crate::pane::TerminalReadSnapshot { let Some(limit) = limit else { return crate::pane::TerminalReadSnapshot { text, diff --git a/src/app/mod.rs b/src/app/mod.rs index 1733e234..2530a05b 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -10,6 +10,7 @@ pub(crate) mod agent_view; mod agents; mod api; mod api_helpers; +pub(crate) use api_helpers::limit_snapshot_lines; mod config_io; mod creation; mod git_refresh; |
