Skip to content

The console ​

The Veya app opens three windows:

  • Human product — the page under development, in the default profile. This is the page a person uses.
  • Agent product — the same page in a separate persistent profile (persist:veya-agent). Agent actions default here.
  • Console — a read-only view of one session.

The console is for a human watching the loop. It is not a control surface: actions belong to the agent through MCP or to the HTTP command API. The Session picker at the top chooses which session the panels follow; it defaults to the human session and can switch to the agent session.

Panels ​

PanelShows
SessionMode, route, runtime and CDP channel status, viewport and event count for the selected session.
TimelineThe last 12 events, newest first, with event type and trace id.
ComponentsThe root components reported by the runtime, with name or type and source:line. no source means the build did not annotate that component.
Agent contextThe same ContextDocument veya_context returns: cursor, byte budget, omitted counts, failing signals, components, state, diagnostics and events.
SignalsThe current failing signals from that brief, with severity, rule, summary and fix hint.

The console polls the hub once per second. It follows the selected session, defaulting to the newest human session; the picker can switch to the agent session. It is normal for the console to lag the product by up to a second. Polling the brief does not consume or invalidate an agent's context cursor.

Reading a session ​

  1. Session tells you the mode and whether the white-box channel is on. In v0.1 a page without the runtime does not create a session, so the console has nothing to show for it.
  2. Timeline tells you what happened. Click a control in the selected product window and watch interaction.started arrive, followed by requests or state.changed in the same trace.
  3. Components tells you what the page says it is. The source location is the file and line the build annotated. If it says no source, start with R008 rather than guessing.
  4. Agent context is the same document veya_context returns, not a separate summary. It is the best place to confirm what the agent will read, how many bytes it used and what was left out.
  5. Signals comes from that brief. A panel that says no deterministic finding is a pass, not a guarantee that the product is good. Call veya_signals with a viewport for a fresh probe; it resizes the window that owns the selected session.

Sessions and reloads ​

Every page load creates a session. When a newer session arrives for the same URL and mode, the hub marks the old one with replacedBy and emits session.replaced into the new session. Human and agent windows can show the same URL without replacing each other. The console follows the selected session, defaulting to the human one.

A reload in one window therefore starts a new timeline for that window; the other window's session remains. If you need the old evidence, query it by session id before the reload or keep the JSONL store under .veya/.

CDP and DevTools ​

The product windows are also driven through Chrome DevTools Protocol: screenshots, input dispatch, geometry, accessibility names and viewport probes. Opening DevTools on a product window can take that window's debugger session away from the app. Screenshots and probes use the window that owns the selected session.

When that happens, page evidence from the runtime keeps flowing, but CDP-backed operations may fail. The client reattaches on the next command; if a screenshot or viewport probe fails, close DevTools and retry. v0.1 does not surface a separate cdp.detached event in the console, so treat a CDP failure as an operational hint rather than a timeline entry.

Where to act instead ​

  • Use MCP tools to inspect, trace, evaluate, screenshot, perform and navigate. Without a sessionId, they act on the newest agent session, so navigation does not touch the human window.
  • Use the HTTP command endpoint when a client cannot speak MCP:
bash
curl -s http://127.0.0.1:7317/v1/sessions/<sessionId>/commands \
  -H 'content-type: application/json' \
  -d '{"command":{"kind":"click","target":"project.create"}}'

The console shows the result of those actions on its next poll.

Next ​

Released under the Apache-2.0 License.