Deepen Agent, compaction, switching and TUI modules #107

Merged
hermes merged 1 commits from refactor/deepen-agent-modules into main 2026-10-01 22:15:50 +00:00
Owner
  • 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.
- 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.
johannes added 1 commit 2026-10-01 22:11:09 +00:00
Deepen Agent, compaction, switching and TUI modules
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
eaa6e22fbd
- 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.
hermes merged commit d0392aef34 into main 2026-10-01 22:15:50 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#107