Known issues
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.
Browser
Section titled “Browser”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-portbut no--user-data-dir. - Symptom: Chrome starts normally but opens no DevTools port, and prints nothing about it.
dom.targetslists the application as unavailable, with the reason (no port file, or an endpoint that did not answer), everydom.*call on its pages fails before anything is sent, a scenario that declares browser steps ends intest-error, and the/cdp/<name>/passthrough answers 502. - Workaround: add
--user-data-dir=<a directory>toAPP_ARGS.APP_ARGSreplaces 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.targetslists 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 akasmwebbrowser image. The image’s managed policy (/etc/opt/chrome/policies/managed/urlblocklist.json) blocksfile://*. - 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
alertwas 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, anddom.dialogcannot answer it. - Workaround: answer it as a person would:
input.keyEscape or Return, ora11y.actionon 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,promptor “Leave site?” dialog a moment after the call that caused it has been answered, for example from asetTimeout. - 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 itstimeout_sand isreadywhen it opens; or calldom.targets, or any read of the page, to seedialog. Then answer it withdom.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. Thedom.*methods are not affected: each call names its page, anddom.targetslists every page. - Symptom:
cdp_*steps act on the wrong page.report.json’scdp.target_urlshows 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_urlwhen 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:orexpect:) immediately after acdp_*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
waitstep between the browser action and the visual check. Scenarios made only of browser steps are not affected.
Session and viewer
Section titled “Session and viewer”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_RESOLUTIONunset (the default is 1280x720); a stock image, which ignoresVNC_RESOLUTION; a session requested through Kasm’s API withoutx_resandy_res, which default to 800x600 and overwriteVNC_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.jsonasscreen_resizes; agoal: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.jsonrecords the size at the start asscreen.
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:niximage; 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-verifyexample 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_JUDGEat 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-paddedcapture geometry, thepointanswer 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.jsonrecords each answer the model gave atgrounding[].answer, next to the pixel the runtime clicked atx,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_AFTERtimes (default 2). A model that is still thinking whenKASM_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.groundandscreen.askreturn 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_ATTEMPTSorKASM_RUNTIME_MODEL_DISABLE_AFTER. See Operator file.
Accessibility
Section titled “Accessibility”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_statecannot confirm them either. - Workaround: leave
KASM_RUNTIME_A11Y_LEVELat its default,complete, at which the same actions worked. Check a result withexpect_statewhen the next step depends on it.
A field’s label can share its name
Section titled “A field’s label can share its name”- Condition: a web page in a Chromium-based application at the
completelevel, 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_elementor 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.actiondoes this only withallow_pointerand 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.
An application can stop answering
Section titled “An application can stop answering”- 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.treereportsabsent_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_sin 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.
Only the application under test is listed
Section titled “Only the application under test is listed”- Condition: a model’s
list_elementsandclick_elementin 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.listwith the application links such a dialog underdialogs, and the dialog’s ownscopeor its window reads it.
Agent in your workspace
Section titled “Agent in your workspace”A managed agent has no Stop button
Section titled “A managed agent has no Stop button”- 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.
Your agent or script
Section titled “Your agent or script”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
shellwith 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 withproc.spawnand watch it withwait_while.
Evidence
Section titled “Evidence”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 aninput.typeorinput.keycall, or while a scenario’s typing step runs. - Symptom: those key events are recorded with
private: trueand no key or text, soinput.wait_fordoes 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: trueentries in itseventsto 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_lineslines (default 200) from the end of its log, or outside the last 512 KiB of the file. - Symptom: the scenario’s
log_fatalpatterns 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.
Kasm setup
Section titled “Kasm setup”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 hasIMAGES_MODIFYbut notIMAGES_MODIFY_RESOURCES. Kasm restricts an image’srun_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_MODIFYandIMAGES_MODIFY_RESOURCES. The SDK helper’sbootstrap-api-keycreates one with exactly those.
Accepted limits
Section titled “Accepted limits”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 thecdp_*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, soset_textrefuses them. Usecdp_fillordom.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
completelevel costs a large Electron application the most.
- Compatibility: the images, browsers and settings these issues depend on.
- Environment variables: the settings named in the workarounds.
- How an action reaches an application: why frame size matters to some clicks and not others.