Skip to content

refactor(agent-server): remove the VNC/desktop stack entirely - #4792

Merged
simonrosenberg merged 3 commits into
mainfrom
remove-vnc-desktop
Aug 31, 2026
Merged

simonrosenberg merged 3 commits into
mainfrom
remove-vnc-desktop

Conversation

@simonrosenberg

@simonrosenberg simonrosenberg commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

HUMAN:

Remove the VNC/desktop stack entirely — it has been off everywhere since the 2025 security fix and its opt-in never worked.


AGENT:

Why

The VNC/desktop feature was added in #515 (2025-09-29) for interactive browsing — you could watch the agent drive a real browser over noVNC. Six weeks later, #974 (2025-10-30) turned it off as a security fix: the VNC server was exposed unauthenticated by default. The PR that would re-enable it safely, #1160 (token-based auth), has been an open draft since 2025-11-13 — last touched 2026-07-29.

So for ten months we have shipped ~72 MB of desktop stack in every image, which every consumer explicitly disables and nobody can safely turn on.

Proof that it is safe to remove

1. No consumer enables it. Not one.

Every downstream repository sets it off, and none sets it on:

Consumer Setting
enterprise — remote_sandbox_spec_service.py OH_ENABLE_VNC: '0'
saas-deploy — production / staging / development "0" in all three
runtime-api — warm_runtimes.py, monitor_runtime.py, README "0"
OpenHands-Cloud — helm values, runtime-api chart, replicated "0"
benchmarks — apptainer_build.py, Dockerfile.agent-layer-commit0 false
sandbox-server — docker/remote sandbox spec services off
Agent Canvas (OpenHands/OpenHands) no VNC references at all in src
This repo's Dockerfile default OH_ENABLE_VNC=false

The one place the value flows rather than being hardcoded — runtime-api/runtimes.py — lists it under "Deployment-infrastructure keys set via ConfigMap, not by callers", and those keys are stripped when matching a warm pod to a request. It is not a customer-facing toggle either.

2. The documented opt-in never worked

#974's description says it preserved backward compatibility by "Added automatic VNC enablement when extra_ports=True".

That code is not in main. OH_ENABLE_VNC appears zero times anywhere in openhands-workspace, and git log -S 'OH_ENABLE_VNC' -- openhands-workspace/ returns nothing — it was never there and removed; it simply was not implemented. extra_ports=True only mapped host port +2 to container 8002, where nothing was listening because the image default is false.

Three call sites relied on that: benchmarks/openagentsafety/run_infer.py, and examples 03_browser_use_with_docker_sandboxed_server.py / 05_vscode_with_docker_sandboxed_server.py. All three mapped a port to a VNC server that never started. Example 03 even printed a vnc.html link that could not have worked.

So this PR removes a feature that cannot currently be enabled through any documented path.

3. The browser tool is unaffected — verified by running it

This is the only real coupling. #515 replaced playwright install chromium with the system apt chromium, and installed it in the same apt-get as the desktop stack. #4698 already split them into separate browser / desktop capability keys, so Chromium is retained here under browser and only the desktop packages go.

Verified in the built image:

$ docker run --rm --entrypoint /bin/sh local/oh-novnc-test:base -c '...'
chromium:      /usr/bin/chromium
CHROME_BIN:    /usr/bin/chromium  exists=yes
xfce4-session: ABSENT
websockify:    ABSENT
/usr/share/novnc: ABSENT
OH_ENABLE_VNC: unset
NOVNC_PORT:    unset
DISPLAY:       unset
openvscode:    PRESENT
docker:        /usr/bin/docker

And Chromium actually runs headless without the desktop:

$ /usr/bin/chromium --version
Chromium 151.0.7922.173 built on Debian GNU/Linux 13 (trixie)

$ /usr/bin/chromium --headless --no-sandbox --disable-gpu --dump-dom about:blank
<html><head></head><body></body></html>
exit=0

BrowserToolExecutor defaults to headless=True; the only thing that flipped it to non-headless was the OH_ENABLE_VNC branch removed here, so the default path is unchanged.

Summary

  • Delete desktop_service.py and the wallpaper.svg asset, and the desktop start/stop lifecycle from api.py.
  • Keep a minimal desktop_router.py stub for GET /api/desktop/url: no DesktopService behind it any more, it just always returns 503. The route is marked deprecated=True with a scheduled removal in v1.49.0 (this repo's 5-minor-release REST compatibility runway — see "Breaking changes" below for why it isn't fully deleted yet).
  • Remove the desktop capability key from INSTALL_CAPABILITIES (Dockerfile, build.py, server.yml); an explicit desktop now fails the build with Unknown capability 'desktop' … (expected one of: vscode, browser, docker).
  • Drop the tigervnc-standalone-server xfce4 dbus-x11 novnc websockify apt install; keep Chromium under browser.
  • Remove enable_vnc from Config and the NOVNC_WEB / NOVNC_PORT / DISPLAY / VNC_GEOMETRY env vars and OH_ENABLE_VNC defaults.
  • Stop exposing ${NOVNC_PORT}.
  • Remove the non-headless branch in BrowserToolExecutor (and the now-dead nonlocal headless).
  • extra_ports on DockerWorkspace / ApptainerWorkspace no longer maps or port-checks +2. Field name kept to avoid an API break; description now says "the additional VSCode port".
  • Update examples 03/05/15, the apptainer README, and the TypeScript client README.
  • Delete test_desktop_service.py, test_vnc_integration.py; rewrite test_desktop_router.py for the deprecated stub (always-503, and asserts the route is marked deprecated in the OpenAPI schema); update test_api.py (service parallelisation now 2 services, not 3), test_env_parser.py, test_docker_build.py.
  • Fix a stale cross-test assertion (test_server_workflow_contains_install_capabilities_expression) that still expected desktop in the default INSTALL_CAPABILITIES string.
  • Fix stale wallpaper.svg wording in build.py's and test_docker_build.py's "why base-image needs the real build context" comments — the builder-stage COPY is the real, still-valid reason.

REST API contract changes

Compared with base OpenAPI 600c81596aa6 for public /api/** paths.

--- base public OpenAPI
+++ head public OpenAPI
@@ -33 +33 @@
-operation GET /api/desktop/url operationId=get_desktop_url_api_desktop_url_get
+operation GET /api/desktop/url operationId=get_desktop_url_api_desktop_url_get deprecated=true

Measured effect

--target base-image, linux/arm64 native, compressed layer totals summed from an --output type=oci export — the same methodology as #4698:

Build Compressed Layers
origin/main (with desktop) 1205.6 MB 21
this branch 1133.6 MB 21
saved 72.0 MB (6.0%)

That independently reproduces #4645's arm64 attribution for the desktop block, which measured 72.0 MB. The amd64 figure there was 76.1 MB.

Breaking changes — deliberate

  1. REST API — not actually breaking. The first version of this PR deleted GET /api/desktop/url outright, which the REST-breakage check correctly failed ("api path removed without deprecation"): this repo's AGENTS.md policy requires a 5-minor-release runway for public /api/** removals, and this endpoint was never previously marked deprecated. A maintainer review caught the same issue independently, plus a second one — the hand-written TypeScript desktop client (DesktopClient.getUrl(), manager.desktop) still calls the route, and an integration test asserts it 503s. Rather than get a sign-off to skip the runway, this PR now keeps GET /api/desktop/url registered, marks it deprecated=True with removal scheduled for v1.49.0, and has it always return 503 — the exact response every deployment already gets today with VNC off by default. Net effect: no client-visible change at all, and the TypeScript client needs no update. The endpoint (and its stub router) can be deleted for real once v1.49.0 ships.
  2. Config: enable_vnc / OH_ENABLE_VNC is no longer a recognised field. Downstream repos currently passing OH_ENABLE_VNC: "0" become harmless no-ops — no coordinated change required, and cleaning them up can happen at leisure.
  3. INSTALL_CAPABILITIES: desktop is rejected rather than ignored. Anyone passing it explicitly gets a clear build failure rather than a silently smaller image.
  4. extra_ports: no longer reserves or maps host port +2.

#1160 should be closed — it implements auth for a feature this removes.

How to Test

# Lint + format
uv run --frozen ruff check openhands-agent-server openhands-tools openhands-workspace tests examples
# All checks passed!
uv run --frozen ruff format --check openhands-agent-server openhands-tools openhands-workspace tests examples
# 947 files already formatted

# Full agent-server suite
uv run --frozen pytest tests/agent_server -q -x -p no:randomly --timeout=60
# 2065 passed, 13 deselected in 209.36s

# Build the real image (not just a base stage)
docker buildx build --file openhands-agent-server/openhands/agent_server/docker/Dockerfile \
  --target base-image \
  --build-arg BASE_IMAGE=nikolaik/python-nodejs:python3.13-nodejs22-slim \
  --load -t local/oh-novnc-test:base .
# succeeds

# `desktop` is now rejected
docker buildx build ... --build-arg INSTALL_CAPABILITIES=vscode,desktop ...
# Unknown capability 'desktop' in INSTALL_CAPABILITIES (expected one of: vscode, browser, docker)

# REST API breakage + deprecation-runway checks, run locally against this PR's baseline
AGENT_SERVER_REST_API_BASE_REF=600c81596aa6277810e23a3fa0c1546dc83001bb \
  uv run --with packaging python .github/scripts/check_agent_server_rest_api_breakage.py
# No breaking changes detected.
uv run --with packaging python .github/scripts/check_deprecations.py
# openhands-agent-server: checked 1 deprecation metadata entries against version 1.44.1.

Image-content and headless-Chromium verification output is quoted under Proof above.

Not in this PR

  • Removing the now-inert OH_ENABLE_VNC: "0" lines from enterprise, saas-deploy, runtime-api, OpenHands-Cloud, and benchmarks — separate repos, and they are no-ops either way.
  • The extra_ports=True in benchmarks/openagentsafety/run_infer.py, which was already only mapping a dead port.

Issue Number

Relates to #4643 (image reorganisation). Supersedes #1160.


🐳 Agent Server images for this PR — GHCR package, pull/run commands, and all pushed tags (click to expand)

• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server

Variants & Base Images

Variant Architectures Base Image Docs / Tags
java amd64, arm64 eclipse-temurin:17-jdk Link
python amd64, arm64 nikolaik/python-nodejs:python3.13-nodejs22-slim Link
golang amd64, arm64 golang:1.21-bookworm Link

Pull (multi-arch manifest)

# Each variant is a multi-arch manifest supporting both amd64 and arm64
docker pull ghcr.io/openhands/agent-server:525a7cf-python

Run

docker run -it --rm \
  -p 8000:8000 \
  --name agent-server-525a7cf-python \
  ghcr.io/openhands/agent-server:525a7cf-python

All tags pushed for this build

ghcr.io/openhands/agent-server:525a7cf-golang-amd64
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-golang-amd64
ghcr.io/openhands/agent-server:remove-vnc-desktop-golang-amd64
ghcr.io/openhands/agent-server:525a7cf-golang_tag_1.21-bookworm-amd64
ghcr.io/openhands/agent-server:525a7cf-golang-arm64
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-golang-arm64
ghcr.io/openhands/agent-server:remove-vnc-desktop-golang-arm64
ghcr.io/openhands/agent-server:525a7cf-golang_tag_1.21-bookworm-arm64
ghcr.io/openhands/agent-server:525a7cf-java-amd64
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-java-amd64
ghcr.io/openhands/agent-server:remove-vnc-desktop-java-amd64
ghcr.io/openhands/agent-server:525a7cf-eclipse-temurin_tag_17-jdk-amd64
ghcr.io/openhands/agent-server:525a7cf-java-arm64
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-java-arm64
ghcr.io/openhands/agent-server:remove-vnc-desktop-java-arm64
ghcr.io/openhands/agent-server:525a7cf-eclipse-temurin_tag_17-jdk-arm64
ghcr.io/openhands/agent-server:525a7cf-python-amd64
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-python-amd64
ghcr.io/openhands/agent-server:remove-vnc-desktop-python-amd64
ghcr.io/openhands/agent-server:525a7cf-nikolaik_s_python-nodejs_tag_python3.13-nodejs22-slim-amd64
ghcr.io/openhands/agent-server:525a7cf-python-arm64
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-python-arm64
ghcr.io/openhands/agent-server:remove-vnc-desktop-python-arm64
ghcr.io/openhands/agent-server:525a7cf-nikolaik_s_python-nodejs_tag_python3.13-nodejs22-slim-arm64
ghcr.io/openhands/agent-server:525a7cf-golang
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-golang
ghcr.io/openhands/agent-server:remove-vnc-desktop-golang
ghcr.io/openhands/agent-server:525a7cf-golang_tag_1.21-bookworm
ghcr.io/openhands/agent-server:525a7cf-java
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-java
ghcr.io/openhands/agent-server:remove-vnc-desktop-java
ghcr.io/openhands/agent-server:525a7cf-eclipse-temurin_tag_17-jdk
ghcr.io/openhands/agent-server:525a7cf-python
ghcr.io/openhands/agent-server:525a7cfbd000996d6f9c31931de2fee680225af4-python
ghcr.io/openhands/agent-server:remove-vnc-desktop-python
ghcr.io/openhands/agent-server:525a7cf-nikolaik_s_python-nodejs_tag_python3.13-nodejs22-slim

About Multi-Architecture Support

  • Each variant tag (e.g., 525a7cf-python) is a multi-arch manifest supporting both amd64 and arm64
  • Docker automatically pulls the correct architecture for your platform
  • Individual architecture tags (e.g., 525a7cf-python-amd64) are also available if needed

The desktop feature has been disabled by every consumer since the
2025-10-30 security fix (#974) defaulted OH_ENABLE_VNC=false, and the
token-auth PR meant to re-enable it safely (#1160) has been an open draft
since 2025-11-13. Its documented opt-in never worked: extra_ports=True
only mapped port 8002, and nothing in openhands-workspace ever set
OH_ENABLE_VNC.

Removes the DesktopService, its router and endpoints, the enable_vnc
config field, the tigervnc/xfce4/dbus-x11/novnc/websockify apt install,
the desktop capability key, and the browser tool's non-headless branch.
Chromium is retained under the browser capability.

Measured on linux/arm64: base-image 1205.6 MB -> 1133.6 MB compressed
(-72.0 MB), matching #4645's independent 72.0 MB arm64 attribution.
@github-actions

Copy link
Copy Markdown
Contributor

Endpoint audit

⚠️ 18 actionable Agent Server contract divergence(s) · report-only

Contract: pinned release artifact

Category Count
Actionable client-only calls 0
Actionable server-only operations 18
Documented non-divergences 13
Agent Server contract operations 129
Audited handwritten client endpoints 119

Actionable client-only calls (0)

none

Actionable server-only operations (18)

  • DELETE /api/canvas-extensions/installed/{}
  • DELETE /api/llm/provider-connections/{}
  • GET /api/canvas-extensions/installed
  • GET /api/canvas-extensions/installed/{}
  • GET /api/canvas-extensions/installed/{}/bundle
  • GET /api/conversations/{}/events
  • GET /api/file/archive
  • GET /api/git/commits
  • GET /api/git/commits/{}/changes
  • GET /api/init
  • GET /api/llm/provider-connections
  • PATCH /api/canvas-extensions/installed/{}
  • PATCH /api/llm/provider-connections/{}
  • POST /api/canvas-extensions/install
  • POST /api/conversations/{}/load_plugin
  • POST /api/file/create_directory
  • POST /api/init
  • POST /api/llm/provider-connections
Documented non-divergences (13)

Client calls intentionally absent from the filtered contract (11)

  • GET /
  • GET /alive
  • GET /health
  • GET /ready
  • GET /server_info

Reason: Operational Agent Server endpoints intentionally excluded from the filtered public release artifact.
Owner: OpenHands runtime maintainers

  • DELETE /api/meta-profiles/{}
  • GET /api/meta-profiles
  • GET /api/meta-profiles/{}
  • POST /api/meta-profiles/{}
  • POST /api/meta-profiles/{}/activate

Reason: Client-ahead API stacked on the pending Agent Server meta-profiles implementation.
Owner: OpenHands SDK maintainers
Tracking: #3744

  • POST /api/profiles/{}/validate

Reason: Client-ahead API stacked on the pending Agent Server pre-flight LLM validation endpoint.
Owner: OpenHands TypeScript client maintainers
Tracking: #4422

Server operations covered by an exposed browser URL (2)

  • GET /api/conversations/{}/workspace
  • GET /api/conversations/{}/workspace/{}

Reason: RemoteWorkspace.startWorkspaceSession exposes these authenticated URLs for browser iframe and file requests; they are not HttpClient method calls.
Owner: OpenHands TypeScript client maintainers

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Python API breakage checks — ✅ PASSED

Result: ✅ PASSED

Action log

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

REST API breakage checks (OpenAPI) — ✅ PASSED

Result: ✅ PASSED

Action log

@all-hands-bot

Copy link
Copy Markdown
Collaborator

🤖 OpenHands is reviewing this PR.

Head commit: e8742c93d8e718fc0e597a6c3d29da8f6c8ebc83
View the conversation: https://oss-agent-canvas.ngrok.dev/conversations/83d8aebf-d2b5-47c0-9e9e-dff4d4046a7e

This comment was posted by an AI agent (OpenHands).

@simonrosenberg simonrosenberg self-assigned this Aug 31, 2026
@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Coverage

Coverage Report •
FileStmtsMissCoverMissing
openhands-agent-server/openhands/agent_server
   api.py3022691%136, 138–143, 145, 147, 149, 190, 204, 210, 261, 266, 275–277, 307, 313, 317, 338–339, 587, 590, 596
   config.py124199%440
openhands-agent-server/openhands/agent_server/docker
   build.py57613077%90, 93–94, 108, 113, 117–119, 123, 128, 145–150, 153, 176, 178, 186, 188–189, 191–195, 197, 201, 204, 207–210, 212–214, 216, 218, 220, 222, 239, 338–339, 343–344, 348–349, 353–354, 367, 369–377, 501, 515, 521–522, 540, 546, 562–563, 565, 638, 652, 655, 659–660, 664–665, 669, 685–687, 690, 696–699, 709, 724, 745, 775, 794–795, 799–801, 855, 959, 969–970, 1145–1147, 1151–1152, 1155, 1171–1176, 1178–1179, 1181–1183, 1186–1187, 1192, 1196, 1241–1243, 1245–1246, 1248–1252, 1265
openhands-tools/openhands/tools/browser_use
   impl.py33619941%58–62, 64–65, 67, 69, 71–74, 76–77, 79, 81, 88, 108, 113, 119–125, 131, 137, 150–158, 165–167, 187–188, 192–193, 200–202, 214–217, 223–224, 229, 269–275, 278–280, 282, 295, 334, 345, 363–364, 369, 386, 392–393, 398, 403, 409–410, 414–415, 421–422, 430–433, 438–440, 447, 455, 473–474, 476–489, 492–505, 507–508, 514, 519–522, 530, 532, 535–536, 542–543, 548–549, 555–556, 560–561, 565–566, 570, 572–573, 575–578, 581–582, 588, 590, 592, 600–601, 605–606, 611–612, 616–617, 621–622, 627–628, 640–641, 652–653, 657–661, 675–677, 684–686, 691–692, 700–701, 707, 717–721, 723–724, 728, 730, 741–743
openhands-workspace/openhands/workspace/apptainer
   workspace.py1757259%162, 171, 174–175, 182, 195, 221–222, 224, 227–229, 231–233, 235, 238, 244–246, 250–251, 259, 264–266, 324–325, 329–339, 341–344, 348–349, 351–357, 360, 362, 367–368, 372, 376, 390, 394–406
openhands-workspace/openhands/workspace/docker
   workspace.py1914875%30–32, 50, 148, 168, 189, 192, 195–196, 203, 212, 215–216, 220, 228, 255, 284, 293, 300–301, 305–306, 310, 313–314, 316–322, 325–326, 335–337, 341–343, 347, 351, 357–358, 381, 401, 418
TOTAL421621739359% 

@all-hands-bot all-hands-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This review was created by an AI agent (OpenHands) on behalf of the repository maintainers.

The removal itself is clean and well-evidenced: the diffs are surgical, the image-size math is independently reproduced, and Chromium-under-browser/headless behavior is verified end-to-end. Two things need a human eye before this lands.

1. REST contract removal without a deprecation runway

GET /api/desktop/url (operationId get_desktop_url_api_desktop_url_get) is being deleted outright, with no prior deprecated=true marker. This is a public /api/** endpoint — it is not in the breakage checker's "previously-deprecated removal" allowlist (unlike /api/cloud-proxy or the accepted /api/vscode/url default change), so the REST-breakage check will flag it as a hard break.

This repo's own API-compatibility policy (root AGENTS.md, and openhands-agent-server/AGENTS.md) requires a deprecation notice and a ~5-minor-release runway before removing a public REST contract. The PR's Breaking changes section explicitly acknowledges the endpoint is being dropped cold. The argument that "nobody enables it / it always 503s in practice" is reasonable and likely correct — but a reachable, documented /api/desktop/url returning 503 to any caller is still a public contract, and any third-party client that calls it today would (post-merge) start getting 404 instead of the documented 503. This needs an explicit maintainer sign-off on skipping the runway, rather than being treated as routine cleanup.

2. The hand-written TypeScript client still points at the removed endpoint

The PR notes that the generated schema (clients/typescript/src/generated/agent-server-schema.ts, pinned to 1.44.0) will drop DesktopUrlResponse on the next regeneration. But the hand-written client surface still ships a live desktop API that calls the now-dead route:

  • clients/typescript/src/client/desktop-client.ts:26 — DesktopClient.getUrl() does GET /api/desktop/url.
  • clients/typescript/src/models/api.ts:282 — hand-written DesktopUrlResponse (this file is not generated; header reads "Models for auxiliary Agent Server APIs").
  • clients/typescript/src/conversation/conversation-manager.ts:93,126 — public readonly desktop: DesktopClient is still constructed and exposed.
  • clients/typescript/src/clients.ts:17,74 / index.ts:372 — DesktopClient / DesktopClientOptions / DesktopUrlResponse are still publicly exported.

So after this merges and the next image ships, manager.desktop.getUrl() will throw a 404 (route gone), not the previously-tolerated 503. There is also a concrete test that will fail on this: clients/typescript/src/__tests__/integration/deterministic-api.integration.test.ts:90-94 calls manager.desktop.getUrl() and asserts HttpError.status === 503; once run against a rebuilt image, the error is 404 and the assertion breaks.

These files are not in this PR's diff, which is why this is surfaced here rather than as an inline comment. Recommend either removing/deprecating the hand-written DesktopClient/manager.desktop surface in a coordinated follow-up (with the same 5-minor-release runway as the REST endpoint), or at minimum updating the deterministic integration test so it doesn't hard-assert against a route this PR deletes. If the TS client is owned by a separate regeneration/release cadence, calling that out explicitly would prevent a broken client on the next release.

Minor (non-blocking)

openhands-agent-server/openhands/agent_server/docker/build.py:867 and tests/agent_server/test_docker_build.py:822 still cite the now-removed wallpaper.svg bind mount as a reason base-image needs the real build context. The unconditional builder-stage COPY is still a valid reason, so the fast-path conclusion stays correct — just stale wording.

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk Assessment: 🟡 MEDIUM
    • Well-isolated deleted code with a strong "nobody enables it and it can't be enabled" evidence trail, and the browser-tool default path (headless=True) is genuinely unchanged — low runtime risk.
    • Raised to MEDIUM because it is a deliberate removal of a public REST endpoint (no deprecation runway) and it leaves the in-repo TypeScript desktop client pointing at a route that no longer exists. The image-size/headless-Chromium verification is solid; the remaining risk is API-contract policy and client/server consistency, which a maintainer should confirm.

VERDICT: ✅ Worth merging (with maintainer sign-off on the deliberate REST removal and a follow-up to unship or deprecate the TS desktop client).

KEY INSIGHT: The deletion is clean, but it stops one layer before the browser-compatible TypeScript client — leaving a hand-written manager.desktop surface calling a route this PR removes, and a test that will 404 once the image ships.

The REST-breakage check correctly failed the outright deletion: this repo
requires a 5-minor-release deprecation runway before removing a public
/api/** operation, and this endpoint was never previously marked
deprecated. The bot review flagged the same gap plus a second one — the
hand-written TypeScript desktop client still calls the route and an
integration test asserts it 503s.

Keep a minimal desktop_router.py stub (no DesktopService behind it) that
always 503s — the same response every deployment already gets today with
VNC off by default — marked deprecated=True with removal scheduled for
v1.49.0. No client-visible change, so the TypeScript client needs no
follow-up. Also fixes a stale cross-test assertion still expecting
`desktop` in the default INSTALL_CAPABILITIES string, and stale
wallpaper.svg wording in two build-context comments.
@simonrosenberg

Copy link
Copy Markdown
Member Author

Addressed the REST-breakage check failure and both review points in e5829d9: GET /api/desktop/url is no longer deleted — it's kept as a deprecated=True stub (removal scheduled for v1.49.0, per the 5-minor-release runway) that always returns 503, the same response every deployment already gets today. That also means the hand-written TypeScript desktop client needs no changes. Also fixed the stale cross-test assertion and stale wallpaper.svg wording flagged as a nit. Ready for another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants