- hx-tui: ratatui app with streaming transcript, markdown-ish rendering, tool call status, colored edit diffs, collapsible bash/read output (ctrl-o), scrollback, spinner + footer (provider, model, ctx, tokens) - editor: multi-line, history, word/line kill, bracketed paste, @file fuzzy tab completion; mentioned files attached - message queue while agent runs; esc/ctrl-c abort; /model /provider /compact /clear /help /quit; resumed history shown - hx-core: compaction (summarize older prompts, keep recent verbatim, session rebase keeps full file history), auto-compact at threshold; abort only ends current run - config: ~/.hx/config.toml + project .hx/config.toml (provider, per-provider models, compact_at, max_tokens, system_prompt) - API-equivalent cost estimate in exit summary - tests/tui_smoke.py drives the real TUI in a pty against the fake API Closes #15, closes #16, closes #17, closes #18, closes #19
This commit is contained in:
1 parent
21d4d2bb3d
commit
89c9833e43
13 files changed
+2875
-48
No files matched your search
@@ -72,6 +72,15 @@ impl Session {
|
||||
Ok(id)
|
||||
}
|
||||
|
||||
/// Start a new root with `msgs` (used by compaction). Old entries stay in the file.
|
||||
pub fn rebase(&mut self, msgs: Vec<Message>) -> std::io::Result<()> {
|
||||
self.head = None;
|
||||
for m in msgs {
|
||||
self.append(m)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Move head to `id` so the next append branches from it.
|
||||
pub fn fork(&mut self, id: u64) -> bool {
|
||||
let ok = self.entries.iter().any(|e| e.id == id);
|
||||
|
||||
Reference in new issue
Block a user