Deepen Agent, compaction, switching and TUI modules
- Agent: make session/usage/provider/model/system/max_tokens/compact_at private; add set_provider, set_model, replace_session, fork, clear, fit_window. Fixes stale context-token reading after resume/new session. - hx-core::compact: ContextMeter, plan/apply and estimate_tokens split out of agent.rs, testable without provider or session. - hx-core::switch: Switcher shared by TUI and RPC for model/provider switches; RPC set_model now also refits the compaction threshold. - hx-tui: status.rs (footer, /usage as pure functions), popup.rs, and Picker::key returning an Act. - tests/tui_smoke.py: resolve the temp dir (macOS /var symlink) and match the resume via the OSC window title instead of split screen text.
This commit is contained in:
1 parent
fe308e0f36
commit
eaa6e22fbd
11 files changed
+1407
-632
No files matched your search
@@ -2,12 +2,14 @@
|
||||
|
||||
pub mod agent;
|
||||
pub mod command;
|
||||
pub mod compact;
|
||||
pub mod context;
|
||||
pub mod ext;
|
||||
pub mod hook;
|
||||
pub mod mask;
|
||||
pub mod session;
|
||||
pub mod stats;
|
||||
pub mod switch;
|
||||
pub mod tool;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
Reference in new issue
Block a user