fix(tui): enable tool access in fullscreen mode via NativeAgent

Fullscreen TUI was calling modelClient directly, bypassing the NativeAgent
tool loop entirely. Pass the agent through FullscreenTuiConfig → App and
use agent.process() for message handling, which enables the full tool
registry and executor.
This commit is contained in:
William Valentin
2026-02-10 13:21:22 -08:00
parent f892bbe6ca
commit e46e8740a1
3 changed files with 29 additions and 7 deletions
+2
View File
@@ -216,6 +216,7 @@ export function registerTuiCommand(program: Command): void {
modelRouter,
systemPrompt,
model: config.models.default.model,
agent,
onExit: cleanup,
});
} else {
@@ -259,6 +260,7 @@ export function registerTuiCommand(program: Command): void {
modelRouter,
systemPrompt,
model: config.models.default.model,
agent,
onExit: cleanup,
});
return;