Merge pull request 'TUI redesign: Catppuccin Mocha + new layout' (#144) from feat/tui-design into main
This commit was merged in pull request #144.
This commit is contained in:
commit
255819cbbc
12 files changed
+1132
-470
No files matched your search
@@ -73,6 +73,30 @@ pub struct State {
|
||||
pub sub_usage: Mutex<hx_ai::Usage>,
|
||||
/// Subagents of this session (see [`subagent`]).
|
||||
pub subs: subagent::Subs,
|
||||
/// Last output lines of running `bash` calls, keyed by command (UI live view).
|
||||
/// ponytail: keyed by command text, so two identical commands running at once share a tail;
|
||||
/// key by call id once ToolCtx carries it.
|
||||
pub live: Mutex<HashMap<String, String>>,
|
||||
/// Structured last lens report for side panels.
|
||||
pub lens: Mutex<LensView>,
|
||||
}
|
||||
|
||||
/// Lens results of the last turn, structured (the injected text is for the model).
|
||||
#[derive(Debug, Clone, Default, PartialEq)]
|
||||
pub struct LensView {
|
||||
pub diags: Vec<Diag>,
|
||||
/// (test name, passed); None = no test run yet
|
||||
pub tests: Option<Vec<(String, bool)>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Diag {
|
||||
/// workspace-relative
|
||||
pub file: String,
|
||||
pub line: u32,
|
||||
pub col: u32,
|
||||
pub error: bool,
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
impl State {
|
||||
|
||||
Reference in new issue
Block a user