Skip to content

v1.2.0

@atsentia atsentia tagged this 20 Apr 04:48
Closes the 7 functional gaps identified in docs/V1.2_GAP_CLOSURE.md via
6 parallel agents (non-overlapping file ownership; lead wires at end).

New modules (91 new unit tests):
- src/agent/session_manager.py — save_turn, load_session_history,
  new_session_id, session_exists. 10 tests.
- src/agent/session_resolver.py — resolve_session_id (full ID / UUID
  prefix / path), list_all_sessions, get_latest_session_id,
  AmbiguousPrefixError. 14 tests.
- src/agent/thinking.py — strip_thinking / strip_thinking_text /
  has_thinking_block. Handles <think>, <thinking>, <|thinking|>,
  ```thinking. 14 tests.
- src/agent/parse_retry.py — retry_parse_tool_calls, looks_like_tool_call_attempt.
  7 tests.
- src/agent/compaction_bridge.py — auto_compact_if_needed,
  should_auto_compact, estimate_history_tokens. 8 tests.
- src/agent/turn_summary.py — summarize_turn_cap with human-readable
  template + optional LLM refinement. 9 tests.
- src/coding_agent/memory/auto_inject.py — augment_system_prompt,
  extract_after_session, should_inject_memory. 11 tests.
- scripts/verify_tool_calling.py — empirical tool-calling verification
  script + tests/test_real_tool_calling.py (5 slow tests).

Lead-wired integrations:
- main.mojo: VERSION 1.2.0; /session slash command; per-turn save via
  save_turn; _resolve_or_new_session handles --session prefix; rehydrate
  count shown on REPL launch.
- loop.mojo: strip_thinking_text() on every response before
  extract_tool_calls; summarize_turn_cap() replaces the old
  "[agent: max tool iterations reached]" placeholder.

Test count: 355 Python + 12 Mojo (up from 264 at v1.1.0).
Full suite still passes in ~70 s.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Assets 2
Loading