🙌 OpenHands: AI-Driven Development
F08 — Workspace drawer: files and changes
Next to the chat, a conversation has a right-hand drawer with tabs. This family covers the drawer itself (toggle, tab bar, overflow menu with pinning, the phone panel page) and its two workspace tabs. Files is a read-only browser of the conversation's working directory: a path row with copy, a strip of open files, a collapsible tree, and a Rich/Plain viewer for code, Markdown, HTML, images and binaries. Commits lists an "Uncommitted" row and the git history, newest first. Each expands into per-file Monaco diffs with old/diff/new modes. The Terminal, Browser, Planner, Task list and Usage tab bodies belong to F27. The Files tab has no upload, download or edit.
Source: src/components/features/conversation/conversation-tabs/, src/components/features/conversation/right-panel-toggle.tsx, src/components/features/conversation/conversation-main/, src/routes/conversation.tsx, src/hooks/use-conversation-panel-route.ts, src/routes/conversation-panel.tsx, src/routes/files-tab.tsx, src/components/features/files-tab/, src/hooks/query/use-workspace-files.ts, src/hooks/query/use-workspace-file-content.ts, src/hooks/use-auto-refresh-files-on-edit.ts, src/routes/commits-tab.tsx, src/components/features/diff-viewer/, src/services/canvas-ui.ts.
Sub-features
F08.panel-toggle: the chat-header toggle (Show panel/Hide panel,aria-pressed) opens and closes the drawer; the first open shows Files.F08.tab-bar: the tab bar (Files, Commits, Planner, Terminal, Browser, Usage; Task list only when the agent has one) switches the drawer body, and only the active tab shows its label. Clicking the active tab closes the drawer.F08.drawer-state-reload: after a reload the drawer starts closed, and reopening it restores the last selected tab for that conversation.F08.tabs-menu: the ellipsis menu at the end of the tab bar lists every tab. Choosing a row opens that tab and closes the menu, and so does clicking outside.F08.tabs-pin: the pill on each menu row pins or unpins a tab. Unpinning the active tab selects another pinned one, and the choice persists across reloads.F08.drawer-resize: dragging the chat/drawer divider resizes both panes (chat 30–80 %, default 50 %, stored indesktop-layout-panel-width).F08.vscode-link: aVSCodebutton at the right of the tab bar opens the editor in a new window; it is hidden when the runtime has no editor.F08.archived-disabled: on an archived conversation the toggle is disabled with the tooltipUnavailable for Archives.F08.phone-panel-page: at 1024 px or narrower the toggle navigates to/conversations/<id>/panel, a full-screen page with a Back chevron, the same tab bar and the tab body.F08.panel-direct-url: opening/conversations/<id>/paneldirectly renders the panel page at 1024 px or narrower, and Back returns to the chat; wider, the URL is replaced with/conversations/<id>and the drawer opens beside the chat.F08.files-workspace-path:Workspace: <working_dir>with the full path in its tooltip; the copy button turns intoCopied to clipboardfor about 2 s.F08.files-tree: a tree of folders, collapsed at first, and files. Clicking a file selects it and adds it to the open-file strip.F08.files-empty-workspace: a workspace with no files showsNo files in workspace.F08.files-tree-toggle: the list-tree button hides or shows the tree, and the choice persists per conversation. The tree is 224 px wide by default.F08.files-tree-resize: dragging the divider between the tree and the preview resizes the tree (160–480 px, default 224) and the width persists across reloads (files-tab-tree-widthin localStorage).F08.files-discovery-settings: the Files toolbar'sFile discoverybutton opens a dialog (excluded directory patterns, maximum files, symbolic links) whose Save applies to every conversation on that workspace and backend; an excluded directory leaves the tree, Restore defaults brings the default patterns back, an invalid limit disables Save.F08.files-open-tabs: the open-file strip, each tab with a close X. Closing the selected file selects a neighbour. Open files and the selection survive a reload and do not leak into other conversations.F08.files-no-selection: with no file selected the pane readsSelect a file to view its contentsand the Rich/Plain toggle is absent.F08.files-rich-plain: Rich highlights code, renders Markdown and shows HTML in an iframe sandboxed without scripts. Plain shows highlighted source. The mode persists across reloads.F08.files-fallbacks: images render as<img>in Rich mode. Files with NUL bytes showBinary file – preview not available, and Office files showPreview isn't available for Word files.(or PowerPoint/Excel).F08.files-load-error: a selected file that can no longer be read shows the error (Failed to read <path>: 404).F08.files-open-new-window: the external-link icon opens the file from the workspace fileserver in a new browser tab.F08.files-refresh:Refresh filesre-reads the file list and the selected file's content.F08.files-auto-refresh: files the agent writes appear without a manual refresh.F08.files-open-from-chat: clicking a workspace path in an agent (or user) message opens the drawer on Files with that file selected.F08.files-open-from-tool-chip: the path chip on a file-editor tool card (absolute path) opens the drawer on Files with that file selected.F08.commits-states: with no commits and no changes the Commits tab showsNo commits yet. While the runtime is inactive it showsWaiting for runtime to start..., and while loadingLoading changes....F08.uncommitted-changes: the top row reads-,Uncommittedand a file count; expanding it lists the changed paths.F08.commit-rows: each commit row shows the short SHA, subject, author (only when there are several authors) and relative time. Rows are single-open accordions, and new agent commits appear without a reload.F08.commits-cap: the history loads the latest 50 commits; a longer history ends withShowing the latest 50 commits.F08.diff-view-modes: expanding a changed file shows its diff; the view-mode buttons (Old version,Diff,New version) switch between old, diff and new without page errors.F08.diff-markdown-preview: a Markdown file in new (or old) mode renders as a prose preview; a long file scrolls inside a preview at most 600 px high.F08.diff-deleted-file: a deleted working-tree file readsThis file was deleted. Its previous contents are no longer available for preview.F08.changes-from-overview: the overview's Changes row opens the drawer on Commits with Uncommitted expanded and closes the overview.
How to get to it (user POV)
- Chat header: the panel toggle (
right-panel-toggle, block-drawer icon, right of the overviewibutton). At desktop width it shows or hides the drawer; at 1024 px or narrower it navigates to the panel page. - Drawer tab bar (
tabs-pane-header):conversation-tab-files,conversation-tab-commits. The ellipsis (tabs-pane-header >> testid=ellipsis-button) opens the menu withconversation-tabs-menu-open-<tab>andconversation-tabs-menu-pin-<tab>. - Direct URL
/conversations/<id>/panel(the phone panel page at 1024 px or narrower; wider, it redirects to/conversations/<id>with the drawer open). - Overview (
conversation-overview-toggle) → Changes row (conversation-overview-diffs) → Commits tab with Uncommitted expanded. - Files toolbar:
File discovery(file-discovery-settings, left offiles-tab-refresh) opens the File discovery dialog. - Workspace paths in agent messages written as inline code (
markdown-file-path-link), plus path chips in file-editor tool cards (file-path-chip) → Files tab with that file selected. - There is no command-menu entry or keyboard shortcut for the drawer or these tabs.
Driving it with control-openhands
Preconditions:
Baseline state (launched, doctored,
onboard --skipdone) andcontrol-openhands llm preset deepseek(three short model turns, deepseek-flash).A git fixture:
control-openhands fixture git-repo(creates<run>/workspace/qa-repowithREADME.md,src/calc.py,src/test_calc.pyand one commit byQA Fixture).The conversation runs in that repo. From
/runcontrol-openhands browser click 'testid=open-workspace-button',control-openhands browser click 'testid=workspace-dropdown',control-openhands browser click 'role=button[name="+ Add Workspace"]'. The folder browser opens at<run>/private/home, so then runcontrol-openhands browser click 'testid=folder-browser-up'twice,control-openhands browser dblclick 'testid=folder-browser-entry-workspace',control-openhands browser dblclick 'testid=folder-browser-entry-qa-repo',control-openhands browser click 'testid=folder-browser-use'andcontrol-openhands browser click 'testid=workspace-launch-button'. The composer now shows aqa-repochip. Start with--stay, which keeps that chip; a plainconversation startnavigates home and loses it.Seed changes with a prompt file, because the command contains quotes. Write
qa-f08-1.txt(anywhere outside the workspace) containing:In the current workspace directory run exactly this one bash command and then reply only "done": printf '# QA notes\n\nHello **world**\n' > qa-notes.md && printf '<h1>QA page</h1>\n' > qa-page.html && printf 'def sub(a, b):\n return a - b\n' >> src/calc.py && rm src/test_calc.py && printf 'PK\003\004' > qa-deck.pptx && head -c 64 /dev/urandom > qa-blob.bin && git status --short. Then runcontrol-openhands conversation start --stay --prompt "$(cat qa-f08-1.txt)" --wait --timeout 240. Read<id>from itsid(orcontrol-openhands browser url); the browser stays on/conversations/<id>.Viewport desktop (1440×1000) unless a bullet says phone.
Open the drawer (
F08.panel-toggle). Runcontrol-openhands browser attr 'testid=right-panel-toggle' aria-pressed(false) andcontrol-openhands browser tooltip 'testid=right-panel-toggle'(Show panel). Then runcontrol-openhands browser click 'testid=right-panel-toggle', followed bycontrol-openhands browser attr 'testid=right-panel-toggle' aria-labelandcontrol-openhands browser visible 'testid=files-tab'. The label isHide panel,aria-pressedistrue, and Files is visible with the workspace path and tree (browser screenshot --feature F08.panel-toggle --name drawer-open-files).Switch and close by tab (
F08.tab-bar). Runcontrol-openhands browser click 'testid=conversation-tab-commits'andcontrol-openhands browser wait 'testid=commit-list' --state visible --timeout 10000(the first open showsLoading changes...for a moment, so an immediatebrowser visiblecan readfalse). Clicktestid=conversation-tab-commitsagain.right-panel-togglearia-pressedbecomesfalseandcontrol-openhands browser visible 'testid=tabs-pane-header'isfalse. Reopen withright-panel-toggle.Reload (
F08.drawer-state-reload). With Commits selected, runcontrol-openhands browser reload, thencontrol-openhands browser attr 'testid=right-panel-toggle' aria-pressed(false; the drawer is closed). Clicktestid=right-panel-toggle;control-openhands browser visible 'testid=commit-list'istrue.Overflow menu (
F08.tabs-menu). Runcontrol-openhands browser click 'testid=tabs-pane-header >> testid=ellipsis-button'andcontrol-openhands browser testids --filter conversation-tabs-menu; there is one open row and one pin row per tab. Runcontrol-openhands browser click 'testid=conversation-tabs-menu-open-usage'; thencontrol-openhands browser count 'testid=conversation-tabs-menu-open-usage'is0(menu closed) and the bar's active label isUsage. Reopen the menu and runcontrol-openhands browser mouse-click 560 600(over the chat); the menu count is0.Pin/unpin (
F08.tabs-pin). With Usage active, open the menu and runcontrol-openhands browser click 'testid=conversation-tabs-menu-pin-usage', thencontrol-openhands browser attr 'testid=conversation-tabs-menu-pin-usage' aria-label(Pin tab to bar;aria-pressedisfalse). Close the menu withbrowser mouse-click 560 600, then runcontrol-openhands browser count 'testid=tabs-pane-header >> testid=conversation-tab-usage'. The count is0and Planner is now active. Runcontrol-openhands browser reloadand reopen the drawer; the count is still0. To restore, open the menu, clicktestid=conversation-tabs-menu-pin-usage(labelUnpin tab from bar), thencontrol-openhands browser click 'testid=conversation-tabs-menu-open-files'. The usage tab count is1again.Resize (
F08.drawer-resize). The divider has no test id; its grip is the first.cursor-ew-resizeon the page (the second is the Files tree divider). With the drawer open,control-openhands browser bbox 'testid=chat-interface'andcontrol-openhands browser bbox 'testid=tabs-pane-header'are about 570 px wide each andcontrol-openhands browser eval "localStorage.getItem('desktop-layout-panel-width')"is"50". Runcontrol-openhands browser drag '.cursor-ew-resize >> nth=0' --by 200,0: the chat is 770 px, the drawer about 369 px and the key about67.5.--by 900,0clamps at"80",--by -1200,0at"30"(chat 342 px), and afterbrowser reloadplus the toggle the chat is still 342 px. Restore withcontrol-openhands browser drag '.cursor-ew-resize >> nth=0' --by 228,0(chat 570 px, key"50").VS Code link (
F08.vscode-link). Blocked in a runtime without a running VS Code server:control-openhands browser count 'testid=drawer-vscode-link'is0(hidden, as designed), andcontrol-openhands api GET /api/vscode/statusexplains why (enabled: false, orrunning: falsewhen the agent-server has no editor binary, as in these stacks; see F26 Gotchas). It needs a runtime withenable_vscodeand a running editor, on an origin that serves/vscode/.Archived (
F08.archived-disabled). Blocked locally: archived status comes from a Cloud sandbox (sandbox_status). On such a conversation,browser enabled 'testid=right-panel-toggle'should befalseandbrowser tooltip 'testid=right-panel-toggle'should readUnavailable for Archives.Workspace path (
F08.files-workspace-path). Runcontrol-openhands browser attr 'testid=files-tab-workspace-path-value' title(ends in/workspace/qa-repo). Clicktestid=files-tab-workspace-path >> testid=copy-to-clipboard. Immediately afterwards,control-openhands browser attr 'testid=files-tab-workspace-path >> testid=copy-to-clipboard' aria-labelisCopied to clipboardandbrowser enabledon the same button isfalse.control-openhands browser clipboardreturns the full path. About 3 s later the label isCopy to clipboardagain.Tree (
F08.files-tree). Runcontrol-openhands browser click 'testid=files-tab-refresh'first (see Gotchas: files the agent made with bash are missing until a refresh). Thencontrol-openhands browser attr 'testid=file-tree-dir-src' aria-expanded(false),control-openhands browser click 'testid=file-tree-dir-src'(nowtrue) andcontrol-openhands browser click 'testid=file-tree-file-src/calc.py'.control-openhands browser text 'testid=file-content-viewer-highlighted'shows the 4 linesdef add…return a - b, andtestid=file-quick-row-item-src/calc.pyexists.Tree toggle (
F08.files-tree-toggle). Runcontrol-openhands browser bbox 'testid=files-tab-tree'(width224). Thencontrol-openhands browser click 'testid=file-quick-row-tree-toggle',control-openhands browser attr 'testid=file-quick-row-tree-toggle' aria-label(Show file tree) andcontrol-openhands browser count 'testid=files-tab-tree'(0). Reload and reopen the drawer: the count is still0. Click the toggle again to restore (count1).Tree resize (
F08.files-tree-resize). Runcontrol-openhands browser drag 'testid=files-tab-tree-resize-handle >> .cursor-ew-resize' --by 100,0;browser bbox 'testid=files-tab-tree'is324wide andcontrol-openhands browser eval "localStorage.getItem('files-tab-tree-width')"is"324".--by 500,0clamps at480,--by -600,0at160, and the width survivesbrowser reloadplus the toggle. Restore with--by 64,0(224).File discovery (
F08.files-discovery-settings). With the drawer open on Files (open it withright-panel-toggleand clicktestid=conversation-tab-filesonly if Files is not already the active tab: clicking the active tab closes the drawer), runcontrol-openhands browser click 'testid=file-discovery-settings'andcontrol-openhands browser snapshot 'role=dialog[name="File discovery"]':Applies to this workspace on this backend, including other conversations using it., textboxExcluded directories(.git,node_modules,.venv, …target), spinbuttonMaximum files (0 for unlimited)2000, checkboxInclude symbolic links to files, buttonsRestore defaults,Cancel,Save. WithD='role=dialog[name="File discovery"]':control-openhands browser fill "$D >> role=spinbutton" '-1'makescontrol-openhands browser enabled "$D >> role=button[name=\"Save\"]"false;2000makes ittrue. Runcontrol-openhands browser fill "$D >> role=textbox" "$(printf '.git\nnode_modules\nsrc')"and click Save: the dialog closes,control-openhands api GET /api/settingsholdsworkspace_file_discoverykeyed by the workspace path withexcludedPatterns.git,node_modules,src, and aftercontrol-openhands browser click 'testid=files-tab-refresh'control-openhands browser count 'testid=file-tree-dir-src'is0, also afterbrowser reloadand reopening the drawer (browser screenshot --feature F08.files-discovery-settings --name dialogbefore saving). Restore: reopen the dialog, clickRestore defaults(the textbox returns to the default list; the dialog stays open), thenSave; after Refresh thefile-tree-dir-srccount is1.control-openhands browser press Escapecloses the dialog without saving. At phone width the dialog fits the viewport: on the 390 px/panelpage (control-openhands browser viewport phone,browser goto /conversations/<id>/panel,browser click 'testid=conversation-tab-files', thenfile-discovery-settings)control-openhands browser bbox 'testid=file-discovery-settings-modal'is about 351 px wide at x about 20 withinsideViewporttrue(520 px at desktop), andbrowser screenshot --feature F08.files-discovery-settings --name phone-fitsshows the title, the textbox andRestore defaults,Cancel,Savewhole. Measure thefile-discovery-settings-modaltest id:role=dialogis the full-screen backdrop. Focus starts in the dialog (the Excluded directories textbox) and Tab cycles its fields and buttons without leaving it.Rich/Plain (
F08.files-rich-plain). Clicktestid=file-tree-file-qa-notes.md;testid=file-content-viewer-markdownexists. Clicktestid=file-tree-file-qa-page.html, then runcontrol-openhands browser attr 'testid=file-content-viewer-iframe' sandbox(allow-same-origin) andcontrol-openhands browser eval "document.querySelector('[data-testid=file-content-viewer-iframe]').contentDocument.body.innerText"(QA page). Runcontrol-openhands browser click 'testid=files-tab-content-mode-toggle-option-plain';control-openhands browser text 'testid=files-tab-content >> testid=file-content-viewer-highlighted'reads1<h1>QA page</h1>. Afterbrowser reloadand reopening,control-openhands browser attr 'testid=files-tab-content-mode-toggle-option-plain' aria-checkedistrue. Switch back withtestid=files-tab-content-mode-toggle-option-rich. Highlighted code keeps its tokens inline: a.tomlfile's section headers ([build-system],[project]) each stay on one line in Rich mode (control-openhands browser eval "[...document.querySelectorAll('[data-testid=files-tab] .token.table')].map(e=>getComputedStyle(e).display)"listsinlinefor each).Open in new window (
F08.files-open-new-window). Withqa-page.htmlselected, runcontrol-openhands browser click 'testid=files-tab-open-in-new-window'andcontrol-openhands browser tabs. Page 1's URL is/api/conversations/<id>/workspace/qa-page.html?v=<n>. Runcontrol-openhands browser tab 1,control-openhands browser text 'body'(QA page) andcontrol-openhands browser close-tab 1.Open-file strip (
F08.files-open-tabs). With several files opened, runcontrol-openhands browser attr 'testid=file-quick-row-item-qa-page.html' title(the path). Selectqa-notes.mdwithcontrol-openhands browser click 'testid=file-quick-row-item-qa-notes.md', then close it withcontrol-openhands browser click 'testid=file-quick-row-close-qa-notes.md'.control-openhands browser eval "[...document.querySelectorAll('[data-testid^=file-quick-row-item-]')].filter(e=>e.getAttribute('aria-selected')==='true').map(e=>e.dataset.testid)"names the neighbour. Runbrowser reload, reopen the drawer andcontrol-openhands browser text 'testid=file-quick-row': the same files remain. Opening a different conversation (see Commits empty state) shows no quick-row items:browser text 'testid=file-quick-row'is empty.browser testidsomits strip tabs scrolled out of view; count them withbrowser eval "[...document.querySelectorAll('[data-testid^=file-quick-row-item-]')].length".No selection (
F08.files-no-selection). Close every open file with itsfile-quick-row-close-<path>button.control-openhands browser text 'testid=files-tab-content'readsSelect a file to view its contents, andcontrol-openhands browser count 'testid=files-tab-content-mode-toggle'is0.Second agent turn: commit, binaries, auto-refresh (
F08.files-auto-refresh,F08.files-refresh). Keep Files open withqa-notes.mdselected in Rich mode. Writeqa-f08-2.txtwith:In the current workspace directory run exactly this one bash command and then reply only "done": printf 'BIN\000\001' > qa-nul.bin && printf 'PK\003\004\000\000' > qa-real.docx && python3 -c "import base64;open('qa-dot.png','wb').write(base64.b64decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=='))" && printf '\n- edited by agent\n' >> qa-notes.md && git add qa-notes.md && git -c user.name=QA-Agent -c [email protected] commit -qm 'QA agent commit' && git log --oneline. Runcontrol-openhands conversation start --stay --prompt "$(cat qa-f08-2.txt)" --wait --timeout 240, thencontrol-openhands browser testids 'testid=files-tab-tree'andcontrol-openhands browser text 'testid=file-content-viewer-markdown'. Expected:qa-nul.bin,qa-real.docxandqa-dot.pngare listed, and the preview ends withedited by agent. Known failure (reproduced 2026-10-06): neither changes until Refresh, because the auto-refresh hook skips the file queries for shell commands on purpose (see Gotchas). Repro candidate, not yet filed; a report would ask to revisit that choice. Clicktestid=files-tab-refreshonce: the list gains the three files and the open preview ends withedited by agent.Fallbacks (
F08.files-fallbacks). After a refresh, clicktestid=file-tree-file-qa-nul.bin(testid=file-content-viewer-binary-fallback, textBinary file – preview not available). Then clicktestid=file-tree-file-qa-real.docx(testid=file-content-viewer-unsupported-document,Preview isn't available for Word files.). Then clicktestid=file-tree-file-qa-dot.pngand runcontrol-openhands browser eval "document.querySelector('[data-testid=file-content-viewer-image] img').naturalWidth"(1). In Plain mode the PNG shows the binary fallback.qa-deck.pptxandqa-blob.binfrom the first prompt have no NUL byte and render as text (see Gotchas).File-editor edits auto-refresh; deleted file errors (
F08.files-auto-refresh,F08.files-load-error). Keep Files open withtestid=file-tree-file-qa-blob.binselected. Runcontrol-openhands conversation start --stay --prompt 'Do two steps, then reply only "done". Step 1: run the bash command: rm qa-blob.bin. Step 2: use your file editor tool (not bash) to create the file qa-editor.txt in the current workspace directory with the single line: created by file editor' --wait --timeout 240. Without clicking Refresh,control-openhands browser count 'testid=file-tree-file-qa-editor.txt'is1andbrowser count 'testid=file-tree-file-qa-blob.bin'is0(the editor observation refetches the whole list).qa-blob.binstays in the open-file strip, and the same observation re-reads the open file:control-openhands browser text 'testid=file-content-viewer-error'readsFailed to read qa-blob.bin: 404andcontrol-openhands browser network --filter qa-blobshows the 404 (browser screenshot --feature F08.files-load-error --name deleted-open-file).Open from chat (
F08.files-open-from-chat). Runcontrol-openhands conversation start --stay --prompt 'Without running any tool, reply with exactly this text and nothing else: Seesrc/calc.pyfor the code.' --wait --timeout 180. Close the drawer, then runcontrol-openhands browser click 'testid=agent-message >> nth=-1 >> testid=markdown-file-path-link'.right-panel-togglearia-pressedturnstrue,testid=files-tabis visible andfile-quick-row-item-src/calc.pyis the selected tab. The same path in the prompt bubble works too: close the drawer and click'testid=user-message >> testid=markdown-file-path-link'. Phone: select another file (control-openhands browser click 'testid=file-quick-row-item-qa-notes.md'), runcontrol-openhands browser viewport phone, then the same agent-message click with--expect-url '/panel$': the URL becomes/conversations/<id>/panel,browser visible 'testid=files-tab'istrueandcontrol-openhands browser attr 'testid=file-quick-row-item-src/calc.py' aria-selectedistrue(browser screenshot --feature F08.files-open-from-chat --name phone-after-click). Return withcontrol-openhands browser viewport desktop: the app replaces/panelwith/conversations/<id>(control-openhands browser wait-url '/conversations/[^/]+$') and shows the drawer beside the chat.Tool-card path chip (
F08.files-open-from-tool-chip). After the file-editor turn above, close the drawer and expand its tool group and card:control-openhands browser click 'text=2 actions completed', thencontrol-openhands browser click 'role=region[name="Collapse actions"] >> role=button[name="Expand"] >> nth=-1'(theCreate qa-editor.txtcard).control-openhands browser text 'testid=file-path-chip'is the absolute<run>/workspace/qa-repo/qa-editor.txt. Runcontrol-openhands browser click 'testid=file-path-chip':right-panel-togglearia-pressedturnstrue, the selected strip tab isfile-quick-row-item-qa-editor.txt(relative) andbrowser text 'testid=files-tab-content'ends withcreated by file editor.Commits list (
F08.uncommitted-changes,F08.commit-rows). Clicktestid=conversation-tab-commitsand runcontrol-openhands browser text 'testid=commit-list'. After the first prompt it reads-,Uncommitted,6 files, then4bf8272-style SHA,Initial fixture commitand… ago; after the second promptQA agent commitappears above it, with author namesQA-AgentandQA Fixtureshown because there are now two authors. Runcontrol-openhands browser click 'testid=uncommitted-changes-row-toggle'andcontrol-openhands browser text 'testid=uncommitted-changes-row-content'(the changed paths;aria-expandedistrue). Runcontrol-openhands browser click 'testid=commit-row >> has-text=Initial fixture commit >> testid=commit-row-toggle'; Uncommitted'saria-expandedturnsfalse, andcontrol-openhands browser text 'testid=commit-row-content'listsREADME.md,src/calc.py,src/test_calc.py. After the third prompt the Uncommitted count is8 files.Diff modes (
F08.diff-view-modes). In the expanded Uncommitted row, runcontrol-openhands browser click 'testid=uncommitted-changes-row-content >> testid=file-diff-viewer-outer >> has-text=src/calc.py >> testid=collapse'.control-openhands browser text 'testid=uncommitted-changes-row-content >> testid=file-diff-viewer-outer >> has-text=src/calc.py >> testid=editor-container'shows the addeddef sublines, andview-mode-diffhasaria-pressedtrue. The row's buttons are named:control-openhands browser snapshot 'testid=uncommitted-changes-row-content >> testid=file-diff-viewer-outer >> has-text=src/calc.py'listsbutton "Old version",button "Diff" [pressed],button "New version"andbutton "Collapse"(the samecollapsebutton readsExpandwhile the row is collapsed), so… >> role=button[name="Old version"]works as well as the test id. Click… >> testid=view-mode-old(2 lines), then… >> testid=view-mode-new(4 lines), thenview-mode-diff. Runcontrol-openhands browser errors --app-onlybefore and after: each collapse and each diff→old switch addsTextModel got disposed before DiffEditorWidget model got reset(fail, #17567).Markdown preview (
F08.diff-markdown-preview). In this orderqa-notes.mdis already committed, so check it in theQA agent commitrow:control-openhands browser click 'testid=commit-row >> has-text=QA agent commit >> testid=commit-row-toggle', then withF='testid=commit-row >> has-text=QA agent commit >> testid=file-diff-viewer-outer >> has-text=qa-notes.md'click"$F >> testid=collapse"and"$F >> testid=view-mode-new".control-openhands browser count "$F >> testid=markdown-preview"is1, rendering<h1>QA notes</h1>, world in bold and theedited by agentlist item. (Before the second prompt the same check works undertestid=uncommitted-changes-row-content.) A long file stays capped: arrange one in the workspace with(printf '# QA long\n\n'; for i in $(seq 1 80); do echo "- item $i"; done) > <run>/workspace/qa-repo/qa-long.md, expand its row undertestid=uncommitted-changes-row-content(L='testid=uncommitted-changes-row-content >> testid=file-diff-viewer-outer >> has-text=qa-long.md', then"$L >> testid=collapse"and"$L >> testid=view-mode-new"), andcontrol-openhands browser eval "(()=>{const o=[...document.querySelectorAll('[data-testid=file-diff-viewer-outer]')].find(x=>x.textContent.includes('qa-long.md'));const e=o.querySelector('[data-testid=markdown-preview]');return [getComputedStyle(e).maxHeight,e.offsetHeight,e.scrollHeight].join(' | ')})()"reads600px | 600 | <more than 600>(shorter files such as qa-notes.md are shorter than 600), andbrowser scroll "$L >> testid=markdown-preview" --by 400scrolls inside it; deleteqa-long.mdafterwards; the same cap holds at phone width. The preview loads a moment after the file row expands:browser wait "$F >> testid=markdown-preview"before measuring. Re-expand Uncommitted withuncommitted-changes-row-togglefor the next bullet.Deleted file (
F08.diff-deleted-file). Expandsrc/test_calc.pyin Uncommitted.control-openhands browser text 'testid=uncommitted-changes-row-content >> testid=file-diff-viewer-outer >> has-text=src/test_calc.py >> testid=file-deleted-message'readsThis file was deleted. Its previous contents are no longer available for preview.From the overview (
F08.changes-from-overview). With the drawer closed, runcontrol-openhands browser click 'testid=conversation-overview-toggle'andcontrol-openhands browser click 'testid=conversation-overview-diffs'(its siblingsconversation-overview-diffs-additions/-deletionsshow+N/-Nin the theme's status success and error colors, for examplergb(31, 189, 83)/rgb(255, 104, 78)in the default theme andrgb(22, 130, 93)/rgb(209, 52, 56)in Light+; deleted files are not counted).right-panel-togglearia-pressedistrue,testid=commit-listis visible,uncommitted-changes-row-togglehasaria-expandedtrueandtestid=conversation-overview-panelis hidden. Afterbrowser reloadand the toggle, Commits is still selected.Empty states (
F08.commits-states,F08.files-empty-workspace). Runcontrol-openhands fixture folder, which makes<run>/workspace/qa-folder, a plain folder (no.git) withnotes.md; by the time the conversation has run it holds an empty.git(seen live; not created by the prompt), so it ends up a repo with no commits. Runcontrol-openhands browser goto /(the browser is on the qa-repo conversation) and pick it with the workspace picker as in Preconditions (folder-browser-entry-qa-folder). Then runcontrol-openhands conversation start --stay --prompt 'Run exactly this bash command, then reply only "done": rm notes.md && git status --short' --wait --timeout 180. Open the drawer and clicktestid=conversation-tab-commits;control-openhands browser count 'text="No commits yet"'is1(browser screenshot --feature F08.commits-states --name no-commits). On Files, clicktestid=files-tab-refresh;control-openhands browser text 'testid=files-tab-tree'readsNo files in workspace.Loading changes...(testid=commits-tab-status) shows briefly on the first Commits open after a load: on/conversations/<id>with Files selected,browser reload, open the drawer, thencontrol-openhands browser click 'testid=conversation-tab-commits' --observe 'testid=commits-tab-status' --observe-ms 4000recordsLoading changes...for a few ms.Waiting for runtime to start...(agent state init/loading/error) was not reached:service stop agent-serverandrestartboth leftNo commits yeton screen.Commit cap (
F08.commits-cap). Arrange more than 50 commits in the fixture (read-only for the UI):for i in $(seq 1 50); do git -C "$OH_VERIFY_RUN/workspace/qa-repo" -c user.name=QA-Bulk -c [email protected] commit -q --allow-empty -m "QA bulk $i"; done. On the qa-repo conversation (control-openhands browser goto /conversations/<id>; Empty states left the qa-folder conversation) runbrowser reload, open the drawer on Commits and wait fortestid=commit-list.control-openhands browser text 'testid=commit-list-cap-notice'readsShowing the latest 50 commitsandbrowser count 'testid=commit-row'is50. Do this last: it changes the commit list the other bullets read.Phone panel page (
F08.phone-panel-page). Runcontrol-openhands browser viewport phoneon/conversations/<id>, thencontrol-openhands browser click 'testid=right-panel-toggle' --expect-url '/panel$'.control-openhands browser bbox 'testid=files-tab'givesinsideViewporttrueandpageHorizontalOverflowfalse, with Commits diffs usable at 390 px (browser screenshot --feature F08.phone-panel-page --name panel).control-openhands browser attr 'testid=conversation-mobile-panel-back' aria-labelisBack. Runcontrol-openhands browser click 'testid=conversation-mobile-panel-back' --expect-url '/conversations/[^/]+$'; the chat is visible. Return withcontrol-openhands browser viewport desktop.Direct panel URL (
F08.panel-direct-url). At desktop runcontrol-openhands browser goto /conversations/<id>/panel. The app replaces the URL with/conversations/<id>(thegotoresult already shows it;control-openhands browser urlconfirms),control-openhands browser count 'testid=conversation-mobile-panel-back'is0,browser visible 'testid=chat-interface'istrueandright-panel-togglearia-pressedistrue(the drawer opens beside the chat;browser screenshot --feature F08.panel-direct-url --name desktop-redirect). Then runcontrol-openhands browser viewport phoneand the samegoto: the URL keeps/panel, theconversation-mobile-panel-backcount is1andchat-interfaceis not visible.control-openhands browser click 'testid=conversation-mobile-panel-back' --expect-url '/conversations/[^/]+$'returns to the chat. Return withcontrol-openhands browser viewport desktop.Errors. After each group run
control-openhands browser errors --app-only. The Monaco disposal error above belongs to this family. 404s on/api/llm/balanceand.agents_tmp/downloads come from the Usage and Planner tabs (F27).Rich fenced code (
F08.files-rich-plain). Arrange a Markdown file in the selected workspace containing a heading and a fenced Pythonprint("qa")block. Open it from Files in Rich mode and takebrowser screenshot --feature F08.files-rich-plain --name fenced-code. Known failure (reproduced 2026-10-12, #16802): the code renders in nested dark/gray containers with repeated padding. This is a layout-only observation; the measuredpreand prose ancestor had zero border width, so it is not a claim of visible CSS borders.Git filename with a space (
F08.uncommitted-changes). In a disposable workspace Git fixture, create and commitmy notes.md, then modify it (plain shell Git/file commands are fixture setup, not UI proof). Open its empty Local conversation's Commits tab and readbrowser network --filter '/git/'. Expected: the modified path and other changes stay listed. Known failure (reproduced 2026-10-12, OpenHands/software-agent-sdk#5642): the scoped changes call returns 400 and hides the Uncommitted changes. Only the space-name case was tested; the same issue's non-ASCII and rename cases still require their own checks.File listing above one MiB (
F08.files-tree). In a disposable fixture, arrange 1800 tiny files beneath three 220-character directory segments so the sorted relative-path listing exceeds one MiB while remaining below the 2000-file cap. Keep a normal tracked README at the root. Open Files, clicktestid=files-tab-refresh, then countrole=button[name="README.md"][exact]and inspect the tree. Known failure (reproduced 2026-10-12, OpenHands/software-agent-sdk#5638): the README disappears and a spurious partial-path folder appears because the command API returns the tail output chunk only. The greater-than-100-chunk/null-exit case was not driven.Subdirectory Git paths (
F08.uncommitted-changes,F08.diff-view-modes). Expected: a workspace atrepo/srclists changes beneath that folder relative to it, and its diffs open. Known failure (reproduced 2026-10-19, SDK 1.55.1, OpenHands/software-agent-sdk#5843): tracked paths retain the repository prefix while untracked paths are relative tosrc; opening displayedsrc/app.pyrequestsrepo/src/src/app.pyand returns 400. The ordinary repository-root control lists correct paths. The recipe creates only disposable, idle offline conversations.control-openhands browser viewport desktop QA_ID="$(python3 - <<'PY' import json, os, pathlib, subprocess, tempfile base = pathlib.Path(os.environ["OH_VERIFY_RUN"]) / "workspace" base.mkdir(exist_ok=True) fixture = pathlib.Path(tempfile.mkdtemp(prefix="qa-surface-", dir=base)) llm = {"model":"openai/gpt-4o", "base_url":"http://127.0.0.1:1/v1", "api_key":"qa-not-real", "num_retries":0, "timeout":2} def create(workspace, parent=None, tags=None): payload = {"agent":{"kind":"Agent", "llm":llm, "tools":[]}, "workspace":{"working_dir":str(workspace)}, "autotitle":False} if parent: payload["parent_conversation_id"] = parent if tags: payload["tags"] = tags request = fixture / "request.json" request.write_text(json.dumps(payload)) result = subprocess.run(["control-openhands", "api", "POST", "/api/conversations", "--write", "--data", "@"+str(request), "--pick", "id"], check=True, capture_output=True, text=True) return json.loads(result.stdout)["value"] def git(directory, *args): subprocess.run(["git", "-C", str(directory), *args], check=True, capture_output=True) repo = fixture / "repo" (repo / "src").mkdir(parents=True) git(repo, "init", "-q", "-b", "main") (repo / "README.md").write_text("root before\n") (repo / "src/app.py").write_text("x = 1\n") git(repo, "add", ".") git(repo, "-c", "user.name=QA", "-c", "[email protected]", "commit", "-qm", "Owned fixture") (repo / "README.md").write_text("root after\n") (repo / "src/app.py").write_text("x = 2\n") (repo / "src/new.py").write_text("new\n") print(create(repo / "src")) PY )" control-openhands browser goto "/conversations/$QA_ID" control-openhands browser click 'testid=right-panel-toggle' control-openhands browser click 'testid=conversation-tab-commits' control-openhands browser wait-text Uncommitted --timeout 10000 control-openhands browser click 'testid=uncommitted-changes-row-toggle' control-openhands browser network --clear control-openhands browser click 'testid=file-diff-viewer-outer >> has-text=src/app.py >> testid=collapse' --observe 'testid=uncommitted-changes-row-content' --observe-ms 1000 control-openhands browser screenshot --feature F08.diff-view-modes --name subdir-mixed-paths control-openhands assert --field recent.0.status --equals 200 --bug-shows 400 -- browser network --filter '/git/diff' # bugPlain parent containing a repository (
F08.uncommitted-changes). Expected: a plain workspace holding one dirty repository exposes that repository's changes. Commits shows one Uncommitted row listing the child repository's paths (proj/README.md,proj/notes.txt), and their diffs open. The recipe removes only its own verified empty parent.git; never remove a user's repository.control-openhands browser viewport desktop QA_ID="$(python3 - <<'PY' import json, os, pathlib, subprocess, tempfile base = pathlib.Path(os.environ["OH_VERIFY_RUN"]) / "workspace" base.mkdir(exist_ok=True) fixture = pathlib.Path(tempfile.mkdtemp(prefix="qa-surface-", dir=base)) llm = {"model":"openai/gpt-4o", "base_url":"http://127.0.0.1:1/v1", "api_key":"qa-not-real", "num_retries":0, "timeout":2} def create(workspace, parent=None, tags=None): payload = {"agent":{"kind":"Agent", "llm":llm, "tools":[]}, "workspace":{"working_dir":str(workspace)}, "autotitle":False} if parent: payload["parent_conversation_id"] = parent if tags: payload["tags"] = tags request = fixture / "request.json" request.write_text(json.dumps(payload)) result = subprocess.run(["control-openhands", "api", "POST", "/api/conversations", "--write", "--data", "@"+str(request), "--pick", "id"], check=True, capture_output=True, text=True) return json.loads(result.stdout)["value"] def git(directory, *args): subprocess.run(["git", "-C", str(directory), *args], check=True, capture_output=True) import shutil parent = fixture / "parent" child = parent / "proj" child.mkdir(parents=True) git(child, "init", "-q", "-b", "main") (child / "README.md").write_text("before\n") git(child, "add", ".") git(child, "-c", "user.name=QA", "-c", "[email protected]", "commit", "-qm", "Owned nested fixture") (child / "README.md").write_text("after\n") (child / "notes.txt").write_text("untracked\n") conversation_id = create(parent) empty_git = parent / ".git" if empty_git.exists(): assert empty_git.is_dir() and not empty_git.is_symlink() top = pathlib.Path(subprocess.check_output(["git", "-C", str(parent), "rev-parse", "--show-toplevel"], text=True).strip()) assert top.resolve() == parent.resolve() assert not subprocess.check_output(["git", "-C", str(parent), "ls-files"], text=True).strip() shutil.rmtree(empty_git) print(conversation_id) PY )" control-openhands browser goto "/conversations/$QA_ID" control-openhands browser click 'testid=right-panel-toggle' control-openhands browser click 'testid=conversation-tab-commits' control-openhands browser wait '#conversation-tab-panel main' control-openhands browser wait 'testid=commits-tab-status' --state detached --timeout 10000 control-openhands assert --field recent.0.status --equals 200 -- browser network --filter '/git/changes' control-openhands browser screenshot --feature F08.uncommitted-changes --name nested-repository control-openhands assert --field count --equals 1 -- browser count 'testid=uncommitted-changes-row'
Regression check (F08.files-rich-plain, toml-file):
control-openhands browser viewport desktop
control-openhands fixture git-repo --name qa-toml-proof
control-openhands conversation start --workspace qa-toml-proof --prompt 'Use only file_editor to create or replace qa.toml inside this workspace containing exactly four lines: [build-system], requires = [], [project], name = "qa". Put each on its own line; do not include commas between lines. Then reply DONE. Do nothing else.' --wait --timeout 180
QA_PANEL_OPEN=$(control-openhands browser attr 'testid=right-panel-toggle' aria-pressed | jq -r '."aria-pressed"')
if [ "$QA_PANEL_OPEN" != true ]; then
control-openhands browser click 'testid=right-panel-toggle'
fi
QA_FILES_SELECTED=$(control-openhands browser attr 'testid=conversation-tab-files' aria-selected | jq -r '."aria-selected"')
if [ "$QA_FILES_SELECTED" != true ]; then
control-openhands browser click 'testid=conversation-tab-files'
fi
control-openhands browser click 'testid=files-tab-refresh'
control-openhands browser click 'testid=file-tree-file-qa.toml'
control-openhands browser wait 'testid=file-content-viewer-highlighted >> .token.table'
control-openhands browser screenshot --feature F08.files-rich-plain --name toml-file-proof
control-openhands assert --field value --equals inline -- browser eval 'getComputedStyle(document.querySelector("[data-testid=file-content-viewer-highlighted] .token.table")).display'
Gotchas
- When the drawer is closed, its tabs stay mounted at width 0.
browser count 'testid=files-tab'is1even then, so assert withbrowser visibleorright-panel-togglearia-pressed. - The tab row is a
tablist "Conversation panels"ofrole=tabcontrols, each named after its tab even when inactive (#17612), sorole=tab[name="Commits"]finds the Commits tab whether or not it is active;role=button[name="Commits"]finds nothing.aria-selectedmarks the selected tab. Theconversation-tab-*test ids still work. - The tab row ends with the ellipsis menu (
Customize tabs), then theVSCodebutton (drawer-vscode-link, namedOpen in VS Code) when the runtime reports a running editor. #17660 removed that button and #18048 restored it, so on a checkout between the two the drawer has no editor control at all. - The overflow menu is not a
role=menu. Escape closes it and returns focus to the tab bar'sellipsis-button, both in the desktop drawer and on the phone/panelpage; choosing a row or an outside click (browser mouse-click) closes it too. - The Files list and the open preview do not follow bash edits:
use-auto-refresh-files-on-edit.tsrefreshes the file queries only for file-editor observations, and its comment says shell observations skip them on purpose (so that every shell command does not reload canvas iframes). This map still expects files the agent writes to appear (F08.files-auto-refresh), so the bash case stays a fail row. Clickfiles-tab-refreshonce before asserting on files the agent made with the shell. Since #18032 that one click also re-reads the open file (the content fetch revalidates instead of using the browser HTTP cache, and the rich preview gets a new?v=), and a page reload shows the current body without a click. - The chat also fetches the file list (to linkify paths). A conversation page left open while the agent works can therefore show a stale tree the moment the drawer first opens.
- Binary detection is a NUL-byte sniff of the first 8 KB, and the Office message also needs that sniff to trip. A 4-byte
PK\003\004"pptx" or random bytes without a NUL render as text in the plain viewer. Fixtures must contain a NUL. control-openhands fixture folderwrites a plain folder withnotes.md, but by the time the conversation has run the folder holds an empty.git, so a conversation that leavesnotes.mdin place showsUncommitted 1 filerather than the empty state. Delete it first (as in the recipe).- Diff views are Monaco.
testid=file-diff-viewerandfile-single-viewerare not on the DOM; read text throughtestid=editor-container. The narrow drawer falls back to an inline (not side-by-side) diff. The view-mode buttons are namedOld version,DiffandNew version, andcollapseis namedExpandorCollapseafter its state (#18033). browser eval "navigator.clipboard.readText()"hangs for about 2 minutes (no clipboard permission). Usecontrol-openhands browser clipboardto read what Copy wrote.browser click ... --observeaccepts the usual selector syntax (testid=...).- Two
.cursor-ew-resizegrips sit in the conversation page (chat/drawer, then the Files tree); scope the tree one withtestid=files-tab-tree-resize-handle. - At phone width, chat path links (and the agent's
canvas_ui_controltab and file requests, throughsrc/services/canvas-ui.ts) navigate to/conversations/<id>/panel(#18045); at desktop width they open the side drawer and the URL does not change. A/panelURL above 1024 px redirects to/conversations/<id>, so a bullet that leaves the phone viewport on/panelends on the chat route. - If the agent's terminal resets mid-command ("terminal session was reset", for example after a
restart), the agent reruns the command. Check the workspace withgit statusthrough a second prompt rather than trusting the first observation. Each instance's agent server keeps its tmux sockets in its ownTMUX_TMPDIR(see F06 Gotchas), so only this run's own agent server going away can reset its terminal; a command after this run'srestartran normally on 2026-10-17. - Known issue: #17567 (Monaco disposed-model page error on diff unmount; it also fires on collapse and on a diff→old switch).
- Known issue #18108 (
F08.files-tree): Files tab shows "No files in workspace" on cloud when the agent writes outside /workspace/project. Live prerequisite: An authenticated Enterprise Cloud sandbox, no repository selected, with files outside its default working directory. - Known issue #17773 (
F08.files-tree): Files tab always shows "No files in workspace" on Windows local backend. Live prerequisite: A Windows local Agent Server using cmd.exe; this run is macOS. - Known issue #16949 (
F08.files-refresh): Keep Files and Changes views source-driven after refresh. Live prerequisite: An authenticated Cloud repository for the refresh-query mismatch, or real file-editor observations causing an in-place M-to-D Git refetch. - Known issue #16716 (
F08.uncommitted-changes): Diff view is regularly out of sync. Live prerequisite: The original simultaneous-agent/shared-repository state or a deterministic stale-diff trigger; the report only suggests that timing. - Known issue #16689 (
F08.files-load-error): Whenworkspace/paths throw a 401, call the workspace-session endpoint. Live prerequisite: The original fresh-VM URL, auth/cookie state and exact request sequence; the report says the trigger is unclear. - Known issue #16454 (
F08.uncommitted-changes): Diff list is showing duplicate entries. Live prerequisite: The original Git changes response and update sequence producing duplicate rows; the report provides no trigger. - Known issue #16331 (
F08.files-tree): file preview panel stops working during streaming. Live prerequisite: A real streaming/tool-running conversation while selecting a second workspace file. - Known issue #15692 (
F08.uncommitted-changes): Diff still shows after agent has committed and pushed. Live prerequisite: A real agent commit/push terminal observation while the diff remains mounted, plus a disposable Git remote. - Known issue #15567 (
F08.files-load-error): Workspace file preview returns 401 Unauthorized on non-HTTPS non-loopback hosts. Live prerequisite: A plain-HTTP non-loopback deployment and browser accessing that origin, with workspace-cookie observation. - Known issue #15519 (
F08.files-load-error): "files" tab in Files side panel throws 401 Unauthorized. Live prerequisite: The reported Linux Docker deployment/auth topology; this isolated run uses the macOS source launcher. - Known issue #15501 (
F08.files-rich-plain): Generated-page JavaScript was blocked by an iframe sandbox. Files Rich intentionally disables scripts; the report does not identify whether Files or Browser was used. Live prerequisite: The original preview panel and file URL or minimal page identifying the intended surface; Files Rich deliberately blocks scripts, while Browser is separate. - Known issue OpenHands/software-agent-sdk#4562 (
F08.files-load-error): Plain-HTTP non-loopback workspace previews can return 401 after the browser rejects the workspace-session cookie. Live prerequisite: A plain-HTTP non-loopback same-origin browser deployment with real workspace-cookie observation. - Known issue #16871 (
F08.vscode-link): the sharedtransformVSCodeUrlstill accepts arbitrary schemes, and the current Clouduse-unified-vscode-url.tsbranch passes sandboxexposed_urlseditor values through it without the Local origin gate. Live prerequisite: an authorized Cloud account/sandbox whose editorexposed_urlsvalue can be controlled for safe URL-scheme rejection checks. Local inspection on 2026-10-12 atfa1f724ab573found no Download via VS Code action in the real card menu: its only production caller does not supply the requiredshowOptionsprop. The current drawer opens withnoopener,noreferrer. Neither the old opener exploit nor the remaining Cloud scheme scenario was reproduced. Evidence:backfill-18309-surface-rechecks/F04.download/vscode-card-action-absent-16871.pngand its ARIA snapshot. Keep this linked to the live editor-link consumer; do not infer the whole issue resolved from the removed card action. - Known issue OpenHands/software-agent-sdk#5845 (
F08.vscode-link): reserved characters in the workspace path can split the editor URL's unencodedfolderparameter and open the wrong folder. Live prerequisite: a supported origin serving a genuinely enabled/running editor and an owned conversation in a path containing&or#. A direct URL-constructor call does not exercise the link; Cloudexposed_urlstakes another path. - Known issue OpenHands/software-agent-sdk#5784 (
F08.files-rich-plain,F08.files-fallbacks,F08.files-open-new-window): a path-prefixed Agent Server can set a workspace cookie whose Path omits the prefix, leaving HTML/image/file previews unauthorized. Live prerequisite: an authenticated path-prefixed owned Local server withOH_WEB_URLand a real cookie-authenticated preview; the ordinary root-path launch cannot exercise that cookie Path.