Thinking levels: Tab cycles off/low/medium/high, /effort

This commit is contained in:
hermes committed 2026-10-06 12:05:29 +00:00
1 parent 2f1ce2c072
commit ab2af421a4
9 files changed
+180 -16

No files matched your search

+5
View File
@@ -13,6 +13,7 @@ use ratatui::text::{Line, Span};
pub struct Status {
pub kind: Kind,
pub model: String,
pub effort: hx_ai::Effort,
pub usage: Usage,
pub ctx_tokens: usize,
/// auto-compact threshold: the context bar's 100%
@@ -226,6 +227,9 @@ pub fn footer(st: &Status, c: &Chrome, width: u16, now: u64) -> Line<'static> {
fn tail(st: &Status, c: &Chrome) -> Vec<String> {
let mut t = vec![format!("{:?}", st.kind), st.model.clone()];
if st.effort != hx_ai::Effort::Off {
t.push(format!("think {}", st.effort.name()));
}
if c.queued > 0 {
t.push(format!("{} queued", c.queued));
}
@@ -322,6 +326,7 @@ mod tests {
Status {
kind: Kind::Claude,
model: "m1".into(),
effort: hx_ai::Effort::Off,
usage: Usage::default(),
ctx_tokens: 0,
ctx_max: 150_000,