multimodal/tarko/agent-ui/docs/runtime-settings-autoactive.md
The autoActive property in workspace.navItems supports dynamic evaluation based on api/v1/runtime-settings values, enabling conditional auto-activation of embedded frames.
autoActive?: boolean works as beforeautoActive?: string accepts JavaScript expressionsnew Function() with limited scope for securityapiService.getSessionRuntimeSettings(sessionId) returns current settings{ currentValues: Record<string, any> } contains user settingsruntimeSettings parameter{
"workspace": {
"navItems": [
{
"title": "Code Server",
"link": "{prefix}/code-server/",
"icon": "code",
"behavior": "embed-frame",
"autoActive": true
}
]
}
}
{
"workspace": {
"navItems": [
{
"title": "VNC",
"link": "{prefix}/vnc/index.html?autoconnect=true",
"icon": "monitor",
"behavior": "embed-frame",
"autoActive": "runtimeSettings.agentMode === 'game'"
}
]
}
}
From examples/webui-config.json:
{
"workspace": {
"navItems": [
{
"title": "Code Server",
"link": "{prefix}/code-server/",
"icon": "code",
"behavior": "embed-frame"
},
{
"title": "VNC",
"link": "{prefix}/vnc/index.html?autoconnect=true",
"icon": "monitor",
"behavior": "embed-frame",
"autoActive": "debug(runtimeSettings) && runtimeSettings.agentMode === 'game'"
}
]
}
}