ollie/agent
Levi Neely f9becce7cc fix(agent): refresh outputFormat lookup on each turn
The OutputFormat function was set once at runtime build time and stored
in ag.runtime.OutputFormat. When tools were dynamically loaded via
tool_load, the tool definitions were refreshed but the OutputFormat
lookup still used the stale runtime version that didn't know about
newly loaded tools.

Build the outputFormats map from the fresh tool list on each turn,
just like we already do for the tool definitions. This ensures
outputFormat (e.g., 'diff' for file_edit) is available immediately
after loading a tool.
2026-08-03 16:26:08 +02:00
..
agent.go agent: persist uname separately, fix OLLIE_UNAME != OLLIE_SESSION_ID 2026-08-03 10:55:50 +02:00
agent_config.go multiplex toolsrv, wip zero-tool server 2026-08-02 19:18:39 +02:00
build_runtime.go agent: inject tool documentation + schemas into preamble 2026-08-03 13:07:26 +02:00
commands.go Persist renamed sessions and profiles 2026-08-02 22:34:35 +02:00
compaction.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
complete.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
config_paths.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
cost.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
fifo.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
fifo_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
history.go agent: persist uname separately, fix OLLIE_UNAME != OLLIE_SESSION_ID 2026-08-03 10:55:50 +02:00
hooks.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
loop.go Revert "wrap system-user-interruption in its own fence block" 2026-08-03 00:39:29 +02:00
new.go fix naming problems 2026-08-02 22:10:00 +02:00
new.go.bak fix naming problems 2026-08-02 22:10:00 +02:00
prompt_resolver.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
runtime.go Add formatted tool output fences 2026-08-02 22:57:17 +02:00
state.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
turn.go fix(agent): refresh outputFormat lookup on each turn 2026-08-03 16:26:08 +02:00
usage_log.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00