This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/pkg/agent
Levi Neely 8d4e265b60 tests: fill critical-path coverage gaps
- loop.go: rate-limit retry (retryCountdown 100%), pre-tool cancellation,
  ChatStream+ctx-cancel (recordInterruption "request"), exec-cancel with
  pending inject
- executeTurn: startup messages, backend error event, auto-compact with
  preCompact/postCompact hook context injection
- session: compact backend error, empty summary, tool-message flattening
- handleCommand: /compact while running/nil-session/preHook-blocks,
  /clear while running, /agents with files
- hooks: non-zero exit code (non-blocking), context cancellation
- accessors: AgentName, BackendName, ModelName, SystemPrompt,
  GenerationParams (get+set), ListModels, CtxSz, Usage
- SetSessionID rename and same-ID no-op
- autoCompactLimit with zero ctxLen, agentSpawn with context output,
  hooksRan plural branch

55.2% → 73.7% total; executeTurn 87.7%→98.6%, run 62.7%→93.1%,
retryCountdown 0%→100%, compact 84.2%→94.7%

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 11:05:30 +02:00
..
core.go agent: /clear keeps session ID to avoid 9P desync 2026-04-21 10:45:40 +02:00
core_test.go tests: fill critical-path coverage gaps 2026-04-21 11:05:30 +02:00
fifo_test.go agent: add PromptFIFO unit tests 2026-04-11 10:03:47 +02:00
hooks.go agent: rename userPromptSubmit→preTurn, stop→postTurn 2026-04-19 15:47:42 +02:00
loop.go usage: track responses, estimate tokens when backend doesn't report 2026-04-13 11:03:39 +02:00
session.go usage: drop TotalResponses, accumulate requests only 2026-04-13 11:06:29 +02:00
signals.go Make pkg/agent internals private; move app-level utils to cmd/ollie 2026-04-09 21:31:02 +02:00
signals_unix.go Make pkg/agent internals private; move app-level utils to cmd/ollie 2026-04-09 21:31:02 +02:00
signals_windows.go Make pkg/agent internals private; move app-level utils to cmd/ollie 2026-04-09 21:31:02 +02:00
state.go refactor: promote backend/config to pkg/, extract TUI to ollie-tui 2026-04-09 22:05:35 +02:00
types.go agent: add WaitChange for blocking reads on state/usage/ctxsz/cwd 2026-04-19 16:09:03 +02:00
waitchange_test.go agent: fix AfterFunc broadcast missing lock; add WaitChange tests 2026-04-19 16:55:57 +02:00