Skip to content
Draft, pre-release documentation

These are problems we have hit and can reproduce, each with the condition that triggers it and a workaround. Several of them fail without any error message. Most are in the session around the runtime, such as Chrome, the image or the Kasm viewer.

Chrome ignores the debugging port without --user-data-dir

Section titled “Chrome ignores the debugging port without --user-data-dir”
  • Condition: Chrome 136 or later, started with --remote-debugging-port but no --user-data-dir.
  • Symptom: Chrome starts normally but opens no DevTools port, and prints nothing about it. dom.targets lists the application as unavailable, with the reason (no port file, or an endpoint that did not answer), every dom.* call on its pages fails before anything is sent, a scenario that declares browser steps ends in test-error, and the /cdp/<name>/ passthrough answers 502.
  • Workaround: add --user-data-dir=<a directory> to APP_ARGS. APP_ARGS replaces the image’s default arguments, so repeat any you need, such as --start-maximized. See Compatibility.

Firefox refuses the runtime after a lost connection

Section titled “Firefox refuses the runtime after a lost connection”
  • Condition: Firefox driven over WebDriver BiDi, when the runtime’s connection to it is lost (the runtime killed, for instance).
  • Symptom: dom.targets lists Firefox as unavailable with “session not created: Maximum number of active sessions”. Firefox keeps one BiDi session and does not end it when its connection goes.
  • Workaround: restart Firefox. The runtime ends its session itself whenever it lets go on purpose.

file:// pages are blocked in Kasm’s browser images

Section titled “file:// pages are blocked in Kasm’s browser images”
  • Condition: navigating Chrome to a file:// URL in a kasmweb browser image. The image’s managed policy (/etc/opt/chrome/policies/managed/urlblocklist.json) blocks file://*.
  • Symptom: the tab lands on chrome-error://chromewebdata/, and every selector afterwards fails to match.
  • Workaround: serve the files over HTTP on loopback inside the session and navigate to that address. Leave the policy in place if you are testing the image as shipped.

A dialog already open when the runtime first connects cannot be answered with dom.dialog

Section titled “A dialog already open when the runtime first connects cannot be answered with dom.dialog”
  • Condition: in Chrome, a page dialog that was open before the runtime first connected to the page. For example, the runtime started while an alert was up.
  • Symptom: every dom.* call on that page fails after 5 seconds, saying the page did not answer and that a dialog is the likely cause. When the browser’s accessibility tree shows the dialog, the message names its buttons. Chrome answers nothing on a new connection while a dialog is up, so the dialog cannot be reported with its message, and dom.dialog cannot answer it.
  • Workaround: answer it as a person would: input.key Escape or Return, or a11y.action on a button the message names. The page then answers.

A page dialog opened just after a call is reported by the next one

Section titled “A page dialog opened just after a call is reported by the next one”
  • Condition: a page opens an alert, confirm, prompt or “Leave site?” dialog a moment after the call that caused it has been answered, for example from a setTimeout.
  • Symptom: that call’s result does not mention the dialog. The page’s next call does: it is refused, naming the dialog and its buttons.
  • Workaround: pass handoff: {kind: dialog} to the call, which watches for the dialog up to its timeout_s and is ready when it opens; or call dom.targets, or any read of the page, to see dialog. Then answer it with dom.dialog.

Scenario browser steps attach to the first tab Chrome lists

Section titled “Scenario browser steps attach to the first tab Chrome lists”
  • Condition: more than one page is open in Chrome when a scenario’s cdp_* steps attach, for example an extension popup left open by an earlier run. The scenario’s fixed connection always takes the first page target Chrome reports. The dom.* methods are not affected: each call names its page, and dom.targets lists every page.
  • Symptom: cdp_* steps act on the wrong page. report.json’s cdp.target_url shows which tab was attached.
  • Workaround: close popups and extra tabs before the run starts; a scenario that opens a popup can end by pressing Escape. Check cdp.target_url when browser steps fail on a page that looks right.

A screenshot straight after a browser step can show the previous page

Section titled “A screenshot straight after a browser step can show the previous page”
  • Condition: a scenario takes a visual judgement (observe: or expect:) immediately after a cdp_* step. A navigation returns when the page is committed, before it is painted.
  • Symptom: the judgement sees the page as it was before the step.
  • Workaround: put a wait step between the browser action and the visual check. Scenarios made only of browser steps are not affected.

The framebuffer is not the size you asked for

Section titled “The framebuffer is not the size you asked for”
  • Condition: a session without a model, or an image from before the fixed-size default, with any of: a nix image with VNC_RESOLUTION unset (the default is 1280x720); a stock image, which ignores VNC_RESOLUTION; a session requested through Kasm’s API without x_res and y_res, which default to 800x600 and overwrite VNC_RESOLUTION; a viewer that resized the session mid-run.
  • Symptom: clicks by fraction, vision-grounded clicks and baseline comparisons are wrong for the size the scenario was written at, with no error. When a viewer resizes the session mid-run, the runtime’s own screenshots and clicks follow the new size, and each change is recorded in report.json as screen_resizes; a goal: run also reports it as a concern. Anything worked out before the change, such as a grounded click or a baseline, was for the old size.
  • Workaround: pin the size and refuse viewer resizes as described in Session geometry. report.json records the size at the start as screen.

A person’s clicks land in the wrong place in a scaled viewer

Section titled “A person’s clicks land in the wrong place in a scaled viewer”
  • Condition: a person watches a fixed-size session in a browser window that is not exactly the framebuffer’s size, so the viewer shows the session stretched or shrunk.
  • Symptom: the person’s clicks reach the session at the page pixel rather than the screen pixel they aimed at. A click aimed at (512, 461) on a 1024x768 session shown at 1400x1000 arrived at (700, 600). Seen with the chrome:nix image; clicks are exact at 1:1. The viewer asks the session to resize to its window, the fixed-size session refuses, and the viewer then shows the session without its own scaling. The runtime’s own clicks go straight to the X server and are not affected.
  • Fixed with the runtime’s sidebar: when the session refuses a resize, the sidebar switches the viewer to local scaling. The session then fills the window with its proportions kept, and clicks land where they are aimed, at window sizes from 800x600 to 1920x1080.
  • Workaround without the sidebar: choose local scaling in the viewer’s settings, or size the browser window so the viewer shows the session at exactly its framebuffer size. The 10-playwright-verify example in the toolkit is a test that catches this at the viewer sizes you care about.

Judgements come back empty from a thinking model

Section titled “Judgements come back empty from a thinking model”
  • Condition: a model that reasons before answering, with a reply-length cap it can reach. The server then returns HTTP 200 with empty content instead of an error.
  • Symptom: screenshot judgements and grounded clicks return nothing, and after repeated failures the runtime may stop calling the model.
  • Workaround: keep KASM_RUNTIME_MAX_TOKENS_JUDGE at its default of 2000 or raise it, and make sure no proxy in front of the model sets a lower cap. Where the server offers a non-thinking mode, use it for judging.

A hosted model’s clicks move when its settings or the screen size change

Section titled “A hosted model’s clicks move when its settings or the screen size change”
  • Condition: a hosted model reached through a proxy that turns extended thinking on or off, or a session screen large enough that the provider shrinks the screenshot before the model sees it.
  • Symptom: grounded clicks that landed on target now land elsewhere, with no error. A model can answer in pixels with thinking off and on a grid with it on, and an answer for a screenshot the provider has shrunk falls short by the shrink factor, which no grounding scale corrects.
  • Workaround: use a 1024x768 screen with square-padded capture geometry, the point answer convention and a grounding scale of 1024, then check the clicks on the path you will run, with the same proxy and thinking setting. report.json records each answer the model gave at grounding[].answer, next to the pixel the runtime clicked at x, y. See Vision models.

The runtime stops using the model for the rest of the run

Section titled “The runtime stops using the model for the rest of the run”
  • Condition: judgement calls fail in a row, every retry used up, KASM_RUNTIME_MODEL_DISABLE_AFTER times (default 2). A model that is still thinking when KASM_RUNTIME_MODEL_TIMEOUT_S (default 90) runs out counts as a failure.
  • Symptom: the run finishes in deterministic-only mode and the report notes that the vision endpoint was degraded. Screenshots are still taken but nothing is judged, and a goal: scenario cannot continue. Over MCP, screen.judge, screen.ground and screen.ask return a resolution error for the rest of the session.
  • Workaround: fix the endpoint first. For a slow or shared server, raise KASM_RUNTIME_MODEL_TIMEOUT_S, KASM_RUNTIME_MODEL_ATTEMPTS or KASM_RUNTIME_MODEL_DISABLE_AFTER. See Operator file.

These concern the accessibility tools: list_elements, click_element, set_text, set_value and select_item for a model, and the a11y.* methods over MCP.

Actions on web content do nothing at the form-controls level

Section titled “Actions on web content do nothing at the form-controls level”
  • Condition: an Electron or other Chromium-based application started with KASM_RUNTIME_A11Y_LEVEL=form-controls. Seen with Chrome and with several Electron applications.
  • Symptom: every action on the page’s content is reported as performed and accepted, and the page does not change: buttons are not pressed, check boxes do not change, and a dialog’s buttons are not listed at all. Toggle buttons publish no pressed state, so expect_state cannot confirm them either.
  • Workaround: leave KASM_RUNTIME_A11Y_LEVEL at its default, complete, at which the same actions worked. Check a result with expect_state when the next step depends on it.
  • Condition: a web page in a Chromium-based application at the complete level, with a text label next to its field.
  • Symptom: asking for the field by name, such as “Password”, is refused as ambiguous, with the label and the field both listed.
  • Workaround: pass the field’s handle from list_elements, which the error lists.

wxWidgets applications are clicked where they say a control is

Section titled “wxWidgets applications are clicked where they say a control is”
  • Condition: an application built with wxWidgets, such as FileZilla, driven by a model’s click_element or a scenario. Its accessibility support stops answering while a dialog opened through an accessible action is up, so the runtime clicks the control with the mouse instead. Over MCP, a11y.action does this only with allow_pointer and a mapped window in front; otherwise it uses the accessible action, and the application may stop answering until the dialog closes.
  • Symptom: the result says the control was clicked at its position rather than through its action. If the application reports a wrong position, the click lands somewhere else: LibreOffice reports positions about 24 pixels out in some windows, though no wxWidgets application has been seen to. A control that reports no position is still pressed through its action.
  • Workaround: use expect_state, or look before acting again, when the next step depends on the click. A named action (action) is always sent through the application’s own accessibility support.
  • Condition: an application’s accessibility support stops answering while its interface keeps working, typically after an action that opened a dialog.
  • Symptom: listings and actions fail within a few seconds with “the application is on the accessibility bus but has stopped answering it”, naming the last action the runtime sent it. a11y.tree reports absent_reason: not-answering.
  • Workaround: close the dialog with the keyboard or mouse (input.* methods, type_text, press_key), then list again.

A request the application never answers takes the whole action budget

Section titled “A request the application never answers takes the whole action budget”
  • Condition: the application receives a request and never replies to it, and opens no window while the runtime waits. An action after which the application opens or activates a window, such as a Qt menu item that opens a modal dialog, is no longer waited for: the call ends 2 seconds after the window, its outcome unknown, naming the window.
  • Symptom: the call waits up to timing.atspi.action_budget_s (default 120 seconds), then reports that the outcome is unknown: the application may or may not have acted.
  • Workaround: lower action_budget_s in the operator file for short deadlines. Do not repeat an action whose outcome is unknown without listing first: a toggle pressed twice turns back off.
  • Condition: a model’s list_elements and click_element in a scenario, with a window that belongs to another process, such as a file chooser opened by the desktop on the application’s behalf.
  • Symptom: its controls are not listed, and actions on them are not found.
  • Workaround: use the input tools or a vision-grounded click for that window. Over MCP, a11y.list with the application links such a dialog under dialogs, and the dialog’s own scope or its window reads it.
  • Condition: a person wants to stop the Claude Code, Codex or OpenCode agent the runtime started in the session. The sidebar’s Stop button controls the runtime’s own loop in a scenario, and shows only while that loop runs.
  • Symptom: the Messaging tab has no Stop for the agent.
  • Workaround: choose New conversation on the agent’s status line. It stops a busy agent at once, and the message it was answering settles as stopped. Answering a question with Not done or Stop also ends the task.

Codex approvals and a failed OpenCode turn wait in the terminal

Section titled “Codex approvals and a failed OpenCode turn wait in the terminal”
  • Condition: the Codex agent asks to run something that needs approval, or an OpenCode turn fails.
  • Symptom: nothing shows in Messaging for a Codex approval, which waits in the agent’s terminal window. After a failed OpenCode turn, a message from the sidebar waits until someone types in OpenCode’s terminal. Claude Code’s approvals do reach Messaging, as “Allow the assistant to …?”.
  • Workaround: open the agent’s terminal window on the desktop and answer there.

A shell call that never ends blocks every other call

Section titled “A shell call that never ends blocks every other call”
  • Condition: an outside agent or script calls shell with a command that does not exit, and the operator set no maximum session lifetime.
  • Symptom: the call returns nothing, and every other call on the session waits, because calls run one at a time.
  • Workaround: start the command with timeout <seconds>, or run a long job detached with proc.spawn and watch it with wait_while.

A person’s keystrokes are hidden while the runtime types

Section titled “A person’s keystrokes are hidden while the runtime types”
  • Condition: KASM_RUNTIME_OBSERVE_INPUT=true, and a person types in the viewer during an input.type or input.key call, or while a scenario’s typing step runs.
  • Symptom: those key events are recorded with private: true and no key or text, so input.wait_for does not match them. The input still reaches the session. The runtime hides them because what it types may be a credential.
  • Workaround: keep people and the runtime from typing at the same time. When a wait misses, look for private: true entries in its events to see why.

A fatal log line far back in a chatty log is missed

Section titled “A fatal log line far back in a chatty log is missed”
  • Condition: the line that shows the application failed is more than evidence.log_tail_lines lines (default 200) from the end of its log, or outside the last 512 KiB of the file.
  • Symptom: the scenario’s log_fatal patterns do not fire, and the line does not appear in the report’s log excerpts.
  • Workaround: raise KASM_RUNTIME_EVIDENCE_LOG_TAIL_LINES. The 512 KiB window is fixed.

Registering the port map does nothing with too few permissions

Section titled “Registering the port map does nothing with too few permissions”
  • Condition: registering the runtime’s port map on an image (the SDK helper’s ensure-port-map) with an API key that has IMAGES_MODIFY but not IMAGES_MODIFY_RESOURCES. Kasm restricts an image’s run_config, where the port map lives.
  • Symptom: the call succeeds but the port map is not saved, so the session’s MCP endpoint cannot be reached through Kasm.
  • Workaround: use a key with IMAGES_VIEW, IMAGES_MODIFY and IMAGES_MODIFY_RESOURCES. The SDK helper’s bootstrap-api-key creates one with exactly those.

These limits follow from how the runtime works.

  • Browsers are driven through CDP, not their accessibility tree. In a runtime-driven session, browsers are not started with their page tree, because a tree the runtime does not use costs the browser work on every change. Web pages are reached with the dom.* methods and the cdp_* tools. The browser’s own window still shows in a listing.
  • Web form fields cannot be filled with set_text. Chromium-based applications do not offer their page fields for editing through accessibility at any level, so set_text refuses them. Use cdp_fill or dom.fill, or type into the field.
  • A long session keeps a record of every control it has seen. Handles are never reused for a different control, so the record grows by a few hundred bytes for each control a session sees, and is released when the session ends.
  • Accessibility costs the application some work. With accessibility on, an application keeps its tree up to date as it changes, and the complete level costs a large Electron application the most.