| 1 | # Desktop Plugin DOX |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | - Own the Agent Zero Linux desktop runtime, Xpra/Xfce session integration, and live desktop surface. |
| 6 | |
| 7 | ## Ownership |
| 8 | |
| 9 | - `helpers/` owns desktop routes, session lifecycle, state, and prompt context. |
| 10 | - `api/desktop_session.py` owns desktop session API behavior. |
| 11 | - `hooks.py` owns route registration and plugin lifecycle hooks. |
| 12 | - `prompts/`, `assets/`, `skills/`, `extensions/`, and `webui/` own desktop context, assets, skill guidance, hooks, and panel UI. |
| 13 | |
| 14 | ## Local Contracts |
| 15 | |
| 16 | - Preserve session startup, cleanup, and route protection for desktop access. |
| 17 | - Keep the Xpra server, client modules, and GTK introspection runtime present as one compatible stack; Xpra shadow sessions import all three even when users connect only through HTML5. |
| 18 | - Keep desktop state injected into prompts accurate and bounded. |
| 19 | - Do not expose desktop routes without the expected auth protections. |
| 20 | - Keep Desktop host visibility tied to an attached modal or canvas host; modal cleanup may preserve the iframe in keepalive, but must not leave stale modal mode behind. |
| 21 | - Keep LibreOffice Writer as the default handler for Markdown and plain text files; keep Agent Zero Editor available as a secondary Open With target through the desktop intent bridge. |
| 22 | |
| 23 | ## Work Guidance |
| 24 | |
| 25 | - Coordinate runtime and panel changes so live UI reflects actual desktop session state. |
| 26 | |
| 27 | ## Verification |
| 28 | |
| 29 | - Smoke-test desktop startup, panel connection, route access, and session cleanup after changes. |
| 30 | |
| 31 | ## Child DOX Index |
| 32 | |
| 33 | No child DOX files. |