Fix TUI log indentation in repo cook view
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+13
-13
@@ -1558,19 +1558,19 @@ fn run_tui_cook(config: CliConfig, recipes: Vec<CookRecipe>) -> Result<TuiApp, c
|
|||||||
if start >= end || log_text.is_empty() {
|
if start >= end || log_text.is_empty() {
|
||||||
vec![Line::from("No logs yet")]
|
vec![Line::from("No logs yet")]
|
||||||
} else {
|
} else {
|
||||||
log_text[start..end]
|
log_text[start..end]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| {
|
.map(|s| {
|
||||||
let text_with_colors = s
|
let text_with_colors = s
|
||||||
.into_text()
|
.into_text()
|
||||||
.unwrap_or_else(|_| Text::raw("--unrenderable line--"));
|
.unwrap_or_else(|_| Text::raw("--unrenderable line--"));
|
||||||
text_with_colors
|
text_with_colors
|
||||||
.lines
|
.lines
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.next()
|
.next()
|
||||||
.unwrap_or_else(|| Line::raw("--unrenderable line--"))
|
.unwrap_or_else(|| Line::raw("--unrenderable line--"))
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
vec![Line::from("No logs yet")]
|
vec![Line::from("No logs yet")]
|
||||||
|
|||||||
Reference in New Issue
Block a user