Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: honor model override on TUI dispatch in runs router
[._.]/ Adam Eivy4d7e885f61d7
diff --git a/server/lib/aiToolkit/routes/runs.js b/server/lib/aiToolkit/routes/runs.jsindex 2e82b5dba4..7b8f425d33 100644--- a/server/lib/aiToolkit/routes/runs.js+++ b/server/lib/aiToolkit/routes/runs.js@@ -77,9 +77,17 @@ export function createRunsRoutes(runnerService, options = {}) {});} else if (provider.type === 'tui' && typeof runnerService.executeTuiRun === 'function') {+ // Honor the user-picked model from the Runs UI — `executeTuiRun` reads+ // `provider.defaultModel` for its `--model` injection, so without the+ // clone every TUI run would silently fall back to the provider's saved+ // default even when the user picked something else. Matches the API+ // branch's `model` parameter being passed through.+ const effectiveProvider = model+ ? { ...provider, defaultModel: model }+ : provider;runnerService.executeTuiRun(runId,- provider,+ effectiveProvider,prompt,workspacePath,(data) => {