ollie/cmd/olliesrv/internal/agent
Ollie Agent 89fbb7438a Stream assistant text incrementally to log/chat; fix stream lost-wakeup
Two fixes for the rendered text views (chat stream, log snapshot):

1. Lost wakeup: blocking stream readers captured the signal channel
   after their data check, so a write landing in that window signaled a
   now-stale channel and the reader blocked until the next event (the
   TUI's last message appeared only after the next prompt). Stream and
   BlockOnce now capture the signal channel before reading; chat.go
   swaps the channel under chatMu via signalChatLocked and RawLogStream
   captures it while holding the lock.

2. No streaming in TUI: textLog only received finalized blocks, so the
   chat text stream showed nothing until a block completed. SetPartial
   now appends the assistant partial's new suffix to textLog
   incrementally (tracking textPartialLen); AppendBlock appends only the
   trailing separator on finalization to avoid duplicating the body.
2026-10-10 16:25:14 +02:00
..
agent.go Stream assistant text incrementally to log/chat; fix stream lost-wakeup 2026-10-10 16:25:14 +02:00
agent_config.go backend: make reasoningEffort the primary knob with documented thresholds 2026-09-07 13:34:58 +02:00
agent_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
cache.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
cancellation_test.go account for stripCold in cost 2026-08-15 12:37:13 +02:00
chat.go Stream assistant text incrementally to log/chat; fix stream lost-wakeup 2026-10-10 16:25:14 +02:00
chat_test.go Stream assistant text incrementally to log/chat; fix stream lost-wakeup 2026-10-10 16:25:14 +02:00
chatlog.go Separate chat persistence from live delivery via chat.raw 2026-10-10 15:57:48 +02:00
commands.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
compact.go extract compaction logic from history.go 2026-08-27 10:11:54 +02:00
config_paths.go session: pause all sessions on shutdown, fix agent config loading 2026-10-01 13:34:33 +02:00
cost.go models: add pricing info with cache rates and static estimates 2026-09-04 13:26:48 +02:00
dispatch.go agent: clarify in system-proc-background tag that output requires idle 2026-10-08 18:48:58 +02:00
doc.go add doc.go files; decompose agent package 2026-08-27 10:03:58 +02:00
fifo.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
fifo_test.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
history.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
history_incremental_test.go incrementalize cold summaries 2026-08-15 13:13:22 +02:00
history_summary.go validate cold history summaries 2026-08-15 12:42:28 +02:00
history_summary_test.go normalize summary cache keys 2026-08-15 13:42:11 +02:00
history_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
history_trigger_test.go defer cold summaries until needed 2026-08-15 13:27:16 +02:00
local_summary.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
local_summary_test.go reduce cold results locally 2026-08-15 13:33:26 +02:00
loop.go agent: increase tool result hard limit from 32KB to 128KB 2026-10-01 09:23:38 +02:00
loop_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
peer.go implement namespace-bounded capability model 2026-10-06 17:41:27 +02:00
prompt_resolver.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
retry.go human-friendliness: self-describing ctl, structured errors, status, overview 2026-09-07 13:55:45 +02:00
runtime.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
runtime_dispatch_test.go agent: add tests for dispatch flag injection and background helpers 2026-08-11 08:28:54 +02:00
runtime_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
skill_match.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
state.go event: emit clear event when agent is cleared 2026-10-09 16:31:30 +02:00
subagent.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
summary_cache_test.go include tool semantics in summary cache 2026-08-15 13:46:29 +02:00
text_parse.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
tool_match.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
turn.go Migrate chat log to JSONL format 2026-10-09 18:52:40 +02:00
workflow.go add file-level doc comments and improve AGENTS.md navigation 2026-08-27 10:23:26 +02:00
workflow_test.go Improve workflow-aware tool ranking 2026-08-20 19:01:21 +02:00