No description
Find a file
Snider 3012703763 feat(gui): ToolCallHandler + manifest injection in chat
New pkg/chat/tool_handler.go: ToolCallHandler interface + ToolCall
type + BuildToolManifest helper + Core-action dispatch adapter +
inline {"tool_call": ...} JSON parser. Service.Send now detects
inline tool calls during stream, invokes OnToolCall, persists a
'tool' result message, and continues the completion loop. Manifest
is prepended to system prompt when a handler is registered
(no-op when unregistered — back-compat).

Good/Bad/Ugly coverage in tool_handler_test.go: valid tool_call
dispatches through mock executor and lands in history; unknown
tool name surfaces error into conversation (not a silent drop);
malformed inline JSON does NOT dispatch — stream continues, no
executor call, assistant message preserves the raw tool_call
fragment for audit.

go vet + go test ./pkg/chat/... clean (codex 0.124.0, gpt-5.5,
LEK AGENTS.md loaded).

Closes tasks.lthn.sh/view.php?id=22

Co-authored-by: Codex <noreply@openai.com>
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-24 07:47:54 +01:00
.core feat(gui): gpt-5.4-mini/mature pass 4 2026-04-23 13:12:12 +01:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:13 +00:00
docs Add chat vision capability metadata 2026-04-15 21:04:09 +01:00
internal feat(wails): pin Wails v3 source as submodule at alpha 74 2026-03-31 14:42:22 +01:00
pkg feat(gui): ToolCallHandler + manifest injection in chat 2026-04-24 07:47:54 +01:00
stubs/wails feat(gui): expand Wails stub App with 11-manager surface 2026-04-24 07:26:22 +01:00
ui Fix GUI image bridge wiring 2026-04-15 23:22:04 +01:00
.gitignore feat(gui): gpt-5.4-mini/mature pass 1 2026-04-17 17:33:28 +01:00
.gitmodules feat(wails): pin Wails v3 source as submodule at alpha 74 2026-03-31 14:42:22 +01:00
CLAUDE.md fix(dx): use coreerr.E() and go-io, update CLAUDE.md, add tests 2026-03-17 09:05:35 +00:00
go.mod Add chat vision capability metadata 2026-04-15 21:04:09 +01:00
go.sum Add chat vision capability metadata 2026-04-15 21:04:09 +01:00
go.work Add repo-local Go workspace 2026-04-17 18:26:55 +01:00
go.work.sum Harden display API return semantics 2026-04-17 19:21:53 +01:00
LICENSE.txt Add European Union Public Licence v. 1.2 2026-01-30 08:47:01 +00:00