Web console
The web console is the Vue browser interface for managing projects, resources, workflows, and task results. It combines route-based views with a shared session shell, HTTP data, user settings, localized text, and live status signals. It also gives users focused forms for task templates, task runs, agent tools, and project inventories. See Web project workflows for user workflow behavior, Web realtime updates for live event behavior, and In-product help system for the built-in help model.
Application composition
Application shell
The application shell in web/…/App.vue provides the common frame for authenticated pages. It loads the user, system data, saved options, and project list. It then selects the project that best matches the URL or the user's last choice.
The shell also owns shared UI. Routed pages receive project, permission, user, feature, authentication, and system context. Shared dialogs, notices, project switching, account actions, theme choice, language choice, and drawer state stay outside individual pages.
The shell exposes loading, ready, and error states. An unauthenticated session goes to login with a return path. A failed initial load stops live updates and gives the user a refresh or re-login action.
References: web/…/App.vue• L1-17 web/…/App.vue• L698-761 web/…/App.vue• L1947-2103 web/…/App.vue• L2146-2171
Stateful UI components
Pages own the state for their current resource or view. Shared dialogs provide a stable boundary for forms and task details, while the shell keeps state that must survive route changes. This split lets a page refresh its own data without taking ownership of session-wide controls.
The event bus connects components that do not have a direct parent-child path. It carries small UI requests such as opening the drawer, showing a task, opening a workflow run, refreshing shared context, and displaying a notice. Handlers run in subscription order, and a handler error is logged without stopping later handlers.
The workflow run panel is a shared stateful view. Its route query identifies the current workflow and run, so a link can open the panel without replacing the page underneath it. The panel can resize on wide screens and fills the window on small screens. The run view presents the graph revision used by the run, its variables and node state, and actions for approvals, stopping, and re-running when the user's permissions and the run state allow them. Workflow node cards also use the same graph state to show task, approval, delay, and note meaning in both editable and read-only views.
Task forms use the same state boundary to combine template defaults with task-specific choices. They expose survey values, inventory or workspace selection, branch and command options, and app-specific parameters only when the template and permissions allow them. Agent tasks can replace a template prompt only when that contract permits it. The task detail view then presents the task origin, parameters, commit data, runner, and workflow outputs as a readable record.
Task logs are another stateful view. They keep a live task record set, preserve the user's scroll position, and group an AI agent's text, thinking, tool calls, results, retries, and completion into readable rows. Tool arguments and results stay text so the log can show agent output without treating it as page markup.
References: web/…/App.vue• L19-136 web/…/App.vue• L1393-1416 web/…/App.vue• L1917-1945 web/…/EditDialog.vue• L1-33 web/…/TaskLogDialog.vue• L1-69 web/…/WorkflowRunPanel.vue• L1-35 web/…/WorkflowRunPanel.vue• L93-131 web/…/WorkflowRunView.vue• L365-484 web/…/WorkflowRunView.vue• L603-639 web/…/WorkflowNodeCard.vue• L135-145 web/…/WorkflowNodeCard.vue• L221-350 web/…/TaskForm.vue• L46-227 web/…/TaskParamsForm.vue• L11-87 web/…/TaskParamsAgentForm.vue• L18-67 web/…/TaskDetails.vue• L77-299 web/…/TaskLogView.vue• L318-347 web/…/TaskLogAgentRecord.vue• L1-151 web/…/event-bus.js• L1-79 web/…/agentLog.js• L206-393 web/…/workflowRunQuery.js• L1-29
Routing and navigation
Route model
The router maps browser locations to global pages and project-scoped pages. A project route carries a projectId; nested routes then select a project resource and one of its focused views. Global routes cover login, users, roles, runners, hosts, tasks, tokens, applications, cluster work, and audit records.
Parent routes redirect to useful default child views. This keeps a bare project, workflow, template, inventory, host, or resource URL usable while preserving query and hash values. Query values also address shared UI such as the task log (t) and workflow run panel (w).
The shell treats navigation as more than URL matching. It resolves drawer links through redirects so a parent menu item remains active for its nested pages. It also clears a workflow run panel when the user changes project because the panel belongs to the project where it opened.
This diagram shows how a browser location selects the shell, project context, and focused page or shared panel.
flowchart LR
URL[Browser URL] --> Router[Vue router]
Router --> Shell[Application shell]
Shell --> Context[User, project, permissions]
Router --> Page[Global or project page]
URL --> Query[Task or workflow-run query]
Query --> Shared[Shared task dialog or run panel]
Context --> Page
Context --> Shared
References: web/…/index.js• L49-53 web/…/index.js• L55-299 web/…/App.vue• L1435-1456 web/…/App.vue• L1933-2051 web/…/workflowRunQuery.js• L5-29
Project navigation
The project drawer turns the selected project, user permissions, licensed features, and saved menu preferences into visible navigation. It supports project switching and project resource access without leaving the shared shell. On small screens it becomes temporary; the workflow editor can reduce it to a rail.
Global navigation stays available for system-wide work. Pages such as hosts can work in project scope or global scope, but access to global views can return the user to the last project when the required global permission is absent.
References: web/…/App.vue• L153-696 web/…/App.vue• L1471-1602 web/…/Hosts.vue• L1-48 web/…/Hosts.vue• L397-415
Plugin services
UI and formatting plugins
Vuetify supplies the shared visual language for layout, forms, tables, menus, dialogs, themes, icons, and responsive display. The console adds product icons for supported tools and secret stores, plus defaults that keep common controls close to the product's established look.
Global filters give server values one display rule across pages. They format local dates and times, relative times, durations, and task-log text. Pages therefore focus on the meaning of a value instead of repeating display rules.
References: web/…/vuetify.js• L1-23 web/…/vuetify.js• L45-150 web/…/filters.js• L41-100 web/…/main.js• L8-24
Localization
Localization supplies translated labels and messages to every component. The console uses a saved language when one exists, then the browser language, and finally English when no matching language is available. The language menu can use the system language or a supported saved language.
The selected language is shared with the server for signed-in users and is applied again when the session loads. Built-in help follows the same interface language when a translated help document exists, then falls back to a regional or English document. The locale catalogs also carry user-facing labels and state messages for workflow runs, node cards, schedules, inventory editing, task forms, and agent logs, so these views keep the same language as the rest of the console.
References: web/…/i18.js• L1-19 web/…/index.js• L1-8 web/…/en.js• L693-847 web/…/ru.js• L377-392 web/…/App.vue• L1281-1349 web/…/App.vue• L1878-1910 web/…/TaskLogAgentRecord.vue• L47-150 web/…/index.js• L1-61
Styling and display
The visual system combines Vuetify themes, application Sass, product breakpoints, and browser display rules. The shell applies light or dark mode to both Vuetify and browser-drawn controls, and it saves the dark-mode choice locally.
The build keeps the style layers and import order stable. This allows application rules to adjust shared components while Vuetify utility classes and vendor styles keep their intended priority. The relative asset base also lets the same console run at the server's configured sub-path.
References: web/…/main.js• L1-13 web/…/App.vue• L1458-1467 web/…/main.scss• L1-71 web/…/McpInventoryForm.vue• L186-331 web/vite.config.mjs• L80-167
In-product help
Help panels
In-product help gives pages and dialogs a local guide without moving the user away from the current task. A help document has an introduction and sections tied to visible fields or controls. The panel highlights the section that matches focus or pointer position and marks the related control in the host view.
The help system loads a document on first use and chooses its language from the active interface locale. It handles fields that are hidden by the current form state by disabling their sections instead of showing a false link to a missing control. Content is rendered from a restricted document model, so help text is not treated as page HTML.
References: web/…/HelpPage.vue• L1-31 web/…/HelpDialog.vue• L1-39 web/…/HelpPanel.vue• L1-69 web/…/HelpDocsHost.js• L1-19 web/…/HelpDocsHost.js• L174-209 web/…/HelpContent.js• L1-50 web/…/index.js• L1-19
API integration
HTTP resource flow
The HTTP API is the source of truth for session data and durable changes. The app sets Axios to the document base URL, and pages use /api requests to read and change users, projects, resources, workflows, hosts, inventories, and tasks.
The initial load reads the user, system information, saved options, and project list before it activates the authenticated socket. A page then loads its own resource data and reports failures through the shell's shared notice path. Request sequence guards prevent a slower response for an old project or route from replacing newer state.
This diagram shows the normal division of work between durable HTTP state and fast interface updates.
flowchart LR
Action[User action] --> View[Route page or shared component]
View -->|read or change| API[HTTP API]
API -->|saved resource| View
API -->|server event| Socket[WebSocket service]
Socket --> Consumer[Active UI consumer]
Consumer -->|update or reload| View
References: web/…/main.js• L4-24 web/…/api.js• L1-9 web/…/App.vue• L1947-2061 web/…/Hosts.vue• L467-494 web/…/InventoryHosts.vue• L278-305 web/…/Inventory.vue• L213-330 web/…/McpInventoryForm.vue• L344-472 web/…/ScheduleForm.vue• L703-723 web/…/ScheduleForm.vue• L838-853 web/…/WorkflowRunView.vue• L549-653
Resource views
Resource views turn API records into focused user work areas. The same pattern supports list pages, detail pages, nested tabs, search, pagination, permission-gated actions, and loading or empty states. A detail view loads its parent record first, then gives child routes the identifiers and permissions they need.
The host and inventory areas show the scope boundary. Hosts can be viewed across the system or inside a project, while a managed inventory contains separate host and variable views. The project inventory list also exposes app-specific resources, including MCP inventories for AI agent tools. An MCP inventory keeps server names, URLs, enabled state, and token changes together while never displaying a stored token.
Task and template forms show the same resource pattern from the editing side. A template supplies defaults and allowed overrides; a task form loads only the related build tasks, inventories, repositories, or workspaces needed for that template. The form keeps secret values separate from ordinary survey values and keeps agent prompts aligned with the template's override rules. These pages illustrate the console's broader rule: durable edits go through HTTP, and the UI keeps enough local state to make the edit safe and clear.
Editable inventory variables protect unsaved changes during route changes and browser exit. The variable editor treats the top-level names in its YAML document as the editable variable set and can report unreadable input. Schedule forms apply the same resource pattern to one-time or recurring runs, with a template or feature-gated workflow target and a time-zone-aware next-run preview.
References: web/…/Hosts.vue• L48-265 web/…/HostView.vue• L23-104 web/…/HostTaskList.vue• L101-215 web/…/Inventory.vue• L81-192 web/…/Inventory.vue• L213-330 web/…/McpInventoryForm.vue• L344-472 web/…/mcp.js• L1-78 web/…/InventoryView.vue• L18-48 web/…/InventoryHosts.vue• L1-31 web/…/InventoryVariables.vue• L19-47 web/…/InventoryVariables.vue• L113-168 web/…/inventoryVariables.js• L1-14 web/…/TemplateForm.vue• L113-178 web/…/TemplateForm.vue• L410-810 web/…/TaskForm.vue• L46-227 web/…/TaskForm.vue• L443-540 web/…/TaskParamsForm.vue• L238-364 web/…/TaskParamsAgentForm.vue• L18-67 web/…/ScheduleForm.vue• L34-180 web/…/ScheduleForm.vue• L197-372 web/…/ScheduleForm.vue• L735-1007
Socket-driven interface
Socket lifecycle
The socket carries server events that should appear without a full page refresh. The console starts a real WebSocket only after it confirms an authenticated session. It reconnects while that session remains active and stops when the user signs out or the initial session load cannot continue.
The connection uses the document base address and the /api/ws endpoint. Before authentication, the socket can hold a harmless placeholder so callers can start the service without creating an unauthenticated network connection.
References: web/…/socket.js• L1-8 web/…/Socket.js• L4-90 web/…/App.vue• L1947-1955 web/…/App.vue• L2146-2163
Event consumers
Active views subscribe only for the time they are mounted. A consumer checks the project and resource identity in an event before it changes visible state. When an event does not carry the full record, the consumer asks the HTTP API for the current record.
Task log views accept only events for their current project and task. They merge task status changes into the task record and buffer log lines before adding them to the rendered list. The log groups agent events by tool call and result, keeps failed tools open for inspection, and marks unfinished calls as interrupted when the task ends. The Web realtime updates page describes event ownership and filtering in more detail.
Workflow run views use a short poll while a run is active and stop polling after it reaches a final state. The graph is built from the revision pinned to that run, while later refreshes update node status, approval state, delay countdowns, and carried results without replacing the user's graph view. This gives the run graph fresh status while keeping it tied to the revision that the run actually used.
References: web/…/Listenable.js• L1-31 web/…/TaskLogView.vue• L418-459 web/…/TaskLogView.vue• L520-603 web/…/agentLog.js• L206-393 web/…/TaskLogAgentRecord.vue• L339-421 web/…/Templates.vue• L457-560 web/…/WorkflowRunView.vue• L485-505 web/…/WorkflowRunView.vue• L617-639 web/…/WorkflowNodeCard.vue• L255-369
Change checklist
When these files or sections are changed, remember to consider these:
- Route changes must preserve nested default views, project selection, query-driven task dialogs, and workflow run panels.
- Changes to shell context must preserve permission and feature checks that control both navigation and page actions.
- New help fields must keep the help section anchor aligned with the visible control and with every supported help locale.
- New live consumers must filter event identity and remove listeners or timers when the view leaves the page.
- API base-path changes must keep Axios, the
/api/wssocket URL, development proxying, and sub-path hosting aligned. - New user-facing text must have locale messages and must work with the active locale's help document fallback.
- Style or Vuetify changes must preserve the layer order, theme values, responsive drawer behavior, and panel overlay order.
- Schedule target changes must keep template and workflow identifiers mutually exclusive and keep feature-gated targets aligned with server permissions.
- Workflow run display changes must keep the pinned graph revision separate from later status refreshes and preserve approval, stop, and re-run permission checks.
- Inventory variable parsing changes must keep YAML tag handling separate from the top-level variable-name contract and preserve the unsaved-change guard in the editor.
- Template and task parameter changes must keep template defaults, allowed overrides, permission-gated selectors, and server validation in agreement.
- Agent log changes must keep event grouping keyed by tool identity and must keep agent and tool values rendered as text.
- MCP inventory changes must keep stored tokens write-only and must keep server names, URLs, enabled state, and token operations aligned with the API request shape.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
Initial user or system data returns 401 | The shell can show an unauthorized state instead of login | Send the user to login with the original path as the return value. web/…/App.vue• L1604-1630 |
| A project or route changes while an old request is pending | Old data can replace the current page's data | Drop responses whose request sequence is no longer current. web/…/Hosts.vue• L467-494 |
| A live event is accepted without project or resource checks | One view can show another resource's state | Filter event identity before changing page state. web/…/Templates.vue• L525-530 web/…/TaskLogView.vue• L520-523 |
| A page keeps a listener, poll, or run timer after unmount | Dead views receive updates or duplicate work | Remove listeners and clear timers during teardown. web/…/Listenable.js• L1-31 web/…/TaskLogView.vue• L456-459 web/…/WorkflowRunView.vue• L502-505 web/…/WorkflowNodeCard.vue• L353-369 |
| Session logout leaves the socket active | Events continue after logout or use an invalid session | Mark the session inactive and stop the socket. web/…/App.vue• L2146-2163 |
| A help document names a field that is not visible | Help points to a control the user cannot use | Mark missing sections as disabled and do not make them active. web/…/HelpDocsHost.js• L323-366 |
| Unsaved inventory variables are left through navigation | User edits can be lost without a choice | Block route or browser leave until the user confirms. web/…/InventoryVariables.vue• L99-128 |
| A schedule switches targets without clearing the old identifier | The server can receive conflicting template and workflow targets | Keep only the selected target and its matching task parameters. web/…/ScheduleForm.vue• L940-957 web/…/ScheduleForm.vue• L983-1007 |
| A run graph is rebuilt from the current workflow after the run starts | The view can show a graph that differs from the executed revision | Build the graph from the run payload and refresh only its state. web/…/WorkflowRunView.vue• L617-629 |
| A task prompt remains after its template no longer permits overrides | The UI can show an invalid value or the server can reject the task | Remove task prompts that the current template does not allow. web/…/TaskForm.vue• L416-425 web/…/TaskParamsForm.vue• L284-302 |
| An MCP token is loaded into the form as stored data | A secret can be exposed in the browser or sent without an explicit change | Keep only token presence in loaded rows and send create, update, or delete operations for explicit changes. web/…/mcp.js• L26-77 web/…/McpInventoryForm.vue• L132-162 |
| An agent log event is shown as HTML or a result cannot be matched to its call | Agent output can become unsafe or lose its tool context | Parse known event kinds, join results by tool id, and render values as text. web/…/agentLog.js• L28-45 web/…/agentLog.js• L337-359 web/…/TaskLogAgentRecord.vue• L72-105 |
Key files
| File | Why to read it |
|---|---|
| web/…/App.vue | Shared shell, session load, project selection, navigation, dialogs, theme, language, and socket ownership |
| web/…/index.js | Global and project route model with nested default views |
| web/…/main.js | Vue startup and plugin registration |
| web/…/event-bus.js | Cross-component UI signals used by the shell and pages |
| web/…/EditDialog.vue | Shared form dialog boundary and overlay behavior |
| web/…/TemplateForm.vue and web/…/EditTemplateDialog.vue | Template defaults, app-specific options, permissions, and task override rules |
| web/…/TaskForm.vue and web/…/TaskParamsForm.vue | Task values derived from templates, survey inputs, inventories, and app parameters |
| web/…/TaskParamsAgentForm.vue | Agent prompt inheritance and task-level prompt overrides |
| web/…/TaskDetails.vue | Task origin, parameters, commit data, runner, and workflow output display |
| web/…/TaskLogView.vue and web/…/TaskLogViewRecord.vue | Live task log loading, buffering, virtualization, actions, and record presentation |
| web/…/agentLog.js and web/…/TaskLogAgentRecord.vue | Agent event grouping and safe display of text, tools, results, retries, and completion state |
| web/…/WorkflowRunPanel.vue and web/…/WorkflowRunView.vue | Route-addressed workflow run display and active-run refresh behavior |
| web/…/WorkflowNodeCard.vue | Shared workflow node display for editing and run status, including approval and task interactions |
| web/…/ScheduleForm.vue | Schedule targets, time modes, time-zone preview, and durable schedule validation |
| web/…/Inventory.vue and web/…/McpInventoryForm.vue | Project inventory selection and agent MCP server editing |
| web/…/mcp.js and web/…/constants.js | MCP request rules, app kinds, agent apps, and app-specific field contracts |
| web/…/vuetify.js | Shared component, icon, theme, and responsive display rules |
| web/…/i18.js and web/…/index.js | Locale selection and translation message loading |
| web/…/en.js and web/…/ru.js | User-facing workflow, schedule, resource, task, and agent-log messages in supported catalogs |
| web/…/index.js and web/…/HelpDocsHost.js | Built-in help loading, locale fallback, field anchors, and visibility rules |
| web/…/Socket.js and web/…/socket.js | Auth-aware WebSocket lifecycle and endpoint creation |
| web/…/Hosts.vue and web/…/HostView.vue | Example of system and project resource views with filters and detail navigation |
| web/…/InventoryView.vue and web/…/InventoryVariables.vue | Example of nested resource tabs and protected editable state |
| web/…/inventoryVariables.js | Shared contract for reading top-level inventory variable names from YAML |
| web/vite.config.mjs | Build, help-document compilation, style layers, API proxy, and sub-path hosting |