Repository navigation
Description
Summary
This issue tracks upgrade-path findings discovered while validating the merged Ubuntu Desktop work from #29 on a real Ubuntu installation.
The validation upgraded an existing OpenMausBot 0.1.7 DEB installation to a locally built and fully verified 0.1.27 package on Ubuntu 24.04 x86_64 with GNOME/X11. Clean-package verification passed, but the real in-place upgrade exposed behavior that extraction-only checks cannot detect.
This is an accumulating validation issue. We will keep adding confirmed findings here and implement them after the verification pass is complete.
Product contract
An Ubuntu user should be able to:
- Download OpenMausBot.
- Install or upgrade it through the normal desktop/package flow.
- Open it and use the supported features without a terminal, manual
chmod, path configuration, or separate CUA Driver installation.
Only consent that must belong to the user should remain interactive: administrator authorization, OS screen/control permission, OAuth login, and credentials for optional paid services.
Confirmed findings
1. A DEB upgrade can retain unsafe legacy directory modes
- Make an in-place DEB upgrade repair the exact app-owned executable path automatically.
The new 0.1.27 DEB contains these directories as root:root 0755, but upgrading over the existing 0.1.7 installation retained legacy 0775 modes for:
/opt/OpenMausBot
/opt/OpenMausBot/resources
The bundled CUA Driver correctly refuses a group-writable parent path, so local computer control remained unavailable after an otherwise successful upgrade. Applying 0755 to those two directories and rerunning the installed-package smoke made the real bundled CUA runtime pass.
The permanent fix should be an idempotent DEB install/upgrade hook that repairs and verifies only the exact app-owned directories. Users must never be asked to run chmod themselves, and the runtime validator must not be weakened.
2. CI does not currently prove the real in-place upgrade path
- Add a DEB upgrade regression lane, not only clean extraction/install checks.
The package verifier correctly validated the modes stored in the newly built archive, but that could not reveal modes preserved from an older installed package.
The regression lane should:
- Install the oldest supported Ubuntu DEB fixture.
- Upgrade it with the newly built DEB.
- Assert
root:root 0755on every parent of the bundled driver. - Launch
/opt/OpenMausBot/openmausbotwithCUA_DRIVER_PATHunset. - Prove the bundled driver is selected and ready after the explicit in-app opt-in.
- Prove normal quit and hard-death cleanup leave no daemon, socket, PID file, stale descriptor, or private AppImage stage.
- Prove bots, messages, configuration, and encrypted credentials survive the upgrade.
3. Optional managed-service latency can delay desktop readiness
- Ensure an unavailable or slow managed Composio service cannot prevent the desktop window from becoming usable.
The first packaged smoke timed out while startup waited for the managed Composio installation request in a restricted-network environment. The complete Linux smoke passed once the optional broker dependency was made deterministic, and the normal online launch also succeeded.
This is cross-platform startup behavior discovered during Ubuntu validation. The product contract should be explicit: chat and local engines must open promptly when an optional hosted integration is offline, slow, or blocked. CI should not depend on the public broker for desktop-readiness assertions.
4. Managed Connected Apps inventory endpoint is out of sync
- Restore the complete Connected Apps inventory contract or split this into a dedicated broker issue once ownership is confirmed.
On the installed app:
- managed Composio registration succeeded;
/api/connectors/catalogreturned the live API catalog;/api/connectors?services=gmail,githubreturned200with correct per-service states;/api/connectors/connectedreturned404 {"error":"not found"}because the hosted broker did not expose the expected/v1/connectors/connectedroute.
The UI catches that error, but the Connected tab can appear empty even when the rest of managed Composio is healthy. This is not Ubuntu-specific, but it was found in the Ubuntu end-user validation and belongs here until it is assigned to the correct app or broker fix.
Confirmed working in the same validation
-
0.1.27DEB installed over0.1.7without losing the two existing bots or their messages. - Credential migration created
credentials.binwith mode0600. - The real installed Electron window rendered with native Ubuntu window chrome.
- The embedded server answered
/api/healthwith the expected app identity and static UI enabled. - The bundled CUA Driver
0.19.3passed the installed-package smoke after repairing the inherited directory modes. - A real Codex turn returned the expected response; the temporary validation bot was deleted afterward.
- Grok, Claude, Codex, Antigravity, and OpenCode Go were detected as available on the host.
- The updater correctly reported
0.1.27as current. - Unit, type, packaged-server, Linux package, AppImage, X11, guarded Wayland, lifecycle, and hard-death smoke suites passed.
Final acceptance criteria
- A supported old Ubuntu DEB upgrades to the current version through the normal package flow with no terminal steps.
- Clean install and upgrade produce the same secure runtime modes and ownership.
- The first launch works online, offline, and with a slow optional broker.
- Supported local engines and ordinary chat remain usable without Box or self-hosted Composio credentials.
- Local computer control needs only the explicit in-app consent required by the security model; driver installation and filesystem repair are automatic.
- GNOME/X11 and GNOME/Wayland show truthful capability states and never ask users to configure implementation details.
- Existing bots, messages, settings, and encrypted credentials survive the upgrade.
- CI installs and runs the actual upgraded DEB payload, rather than validating only an extracted archive.
Related umbrella: #29
Activity
KesleyDavid commentedon Aug 21, 2026
Additional confirmed finding: first Linux local-control opt-in can become non-recoverable in the UI
Real installed-app validation on Ubuntu 24.04 x86_64, GNOME/Xorg, OpenMausBot
0.1.27:Post-close evidence:
cua-driverprocess was orphaned;status: stopped,reasonCode: app-stopped.The driver installation and desktop prerequisites are healthy:
cua-driver --version: success in less than 0.01s;cua-driver manifest: success in less than 0.01s;cua-driver doctor --json: success in 0.02s, with X11, six visible windows, and AT-SPI all reported healthy;createLinuxCuaRuntimepath started the bundled daemon, reachedready, and shut down cleanly in 0.013s in the same real desktop session;readyand started the supervised bundled daemon successfully.This currently looks like an intermittent first-opt-in/UI-IPC state problem rather than a driver installation failure. Regardless of the underlying race, a user must never be trapped behind a pending setup action.
Required work
readyorerroreven if the original enable IPC response is delayed or lost.inspection,spawn,handshake) so a future stall identifies its exact boundary.Additional UX finding:
This computersetup is difficult to discoverThe tester initially could not find how to enable This computer. The opt-in is inside each bot's Computer panel, while App Settings exposes a separate section named Local VM. Those are different products, but their placement/naming makes the setup path easy to misunderstand.
KesleyDavid commentedon Aug 21, 2026
Severity correction: blocker — starting Linux local control captures the real X11 seat
The earlier first-opt-in comment treated this primarily as a stuck UI/IPC state. A second real-user reproduction shows that diagnosis was incomplete and the impact is critical.
Reproduction
Environment: installed OpenMausBot
0.1.27, Ubuntu 24.04 x86_64, GNOME/Xorg, bundled Cua Driver0.19.3.linuxLocalControlEnabled: falsewith mode0600; no OpenMausBot or Cua process is active.This is reproducible across the first enable and the following persisted-enabled launch. The direct runtime diagnostic reaching
readydoes not prove safety because it checked handshake/lifecycle but did not assert that a human could still use the real seat. The Xvfb smoke also cannot detect a physical-session input grab.Release safety requirement
Linux This computer control must fail closed until this is understood and fixed. A daemon becoming healthy must never seize the user's pointer or keyboard merely by starting; only an approved, bounded action may synthesize input.
User recovery performed
The application was closed, no app/driver process remained, and the private preference was changed back to disabled. The installed app should now open without starting Cua. We will not re-enable the driver on this host during validation until a safe fix is available.
KesleyDavid commentedon Aug 21, 2026
Safe Ubuntu validation round — installed DEB and AppImage
I completed the remaining tests that do not require starting Cua again. Linux local control remained explicitly disabled throughout this round.
Environment: Ubuntu 24.04 x86_64, GNOME/Xorg, OpenMausBot
0.1.27.Passed
/api/healthreturned{ app: "openmausbot", static: true }and one native application window was present.desktop-file-validateand has the expected executable, icon,StartupWMClass, and categories.Confirmed startup finding
With a disposable first-launch profile and a managed Composio broker that accepted the TCP connection but never replied, the application window and health endpoint did not become ready until 17.826 s. After the broker timeout, the app rendered and cleaned up correctly. Optional integration discovery therefore remains on the critical startup path and should be moved behind first paint or given a much shorter non-blocking deadline.
The same AppImage reached a usable window in 3.569 s when the configured broker endpoint failed immediately, which further isolates the delay to the slow optional-broker path rather than Electron packaging.
Excluded/inconclusive evidence
Launching the desktop entry through
gtk-launchfrom the automation shell was killed with the tool-owned process scope before application readiness. Since this does not reproduce a normal click from GNOME Activities, it is not classified as an application failure.Final safe state
8799,18799, and28799are closed.cua-local-control.jsonstill haslinuxLocalControlEnabled: falseand mode0600.No additional blocker was found in this safe round. The previously reported X11 seat-capture defect remains a release blocker, and Linux This computer must not be enabled on this host until that boundary is fixed and validated on a real seat.
KesleyDavid commentedon Aug 21, 2026
Implementation started in #346
The first corrective PR is now open with four reviewable commits and remains linked with Addresses #345 so this issue will not close prematurely.
Implemented in the PR:
Local validation completed:
Still intentionally open:
PR: #346
KesleyDavid commentedon Aug 21, 2026
#346 validation complete and ready for review
The repository CI exposed one more end-user upgrade defect after the first implementation pass: the configured DEB left
/opt/OpenMausBot/chrome-sandboxwithout the requiredroot:root 4755state, so Electron aborted before opening the installed application.This is now fixed in the package-owned post-install hook. The hook validates the exact regular file, refuses symlinks, applies
root:root 4755, verifies the result, and remains idempotent. A dedicated regression test covers the mode repair and symlink refusal, and the privileged upgrade lane asserts the installed sandbox before launching the application.Final evidence from GitHub Actions:
aptupgraded it to the new 0.1.27 DEB and configured declared dependencies;/opt/OpenMausBot/openmausbotlaunched successfully with the sandbox enabled;PR #346 now contains six focused commits, is synchronized with the current
main, and is ready for maintainer review. This issue intentionally remains open: deploying the current Connected Apps worker and proving the underlying Cua real-seat safety on GNOME/Xorg and GNOME/Wayland are still pending.KesleyDavid commentedon Aug 21, 2026
Final #346 validation after rebase — 2026-08-21
PR #346 is rebased onto current
mainand now fixes both the zero-configuration upgrade path and the Xorg seat-safety regression found during real use.Completed and verified:
chrome-sandboxis installed as root:root 4755 through an idempotent package hook;--no-overlay;Final head
2628702apassed Ubuntu, macOS, Windows, Swift/iOS, and the Ubuntu package+smoke job. The package job installed a 0.1.7 fixture, upgraded it to 0.1.27, verified package modes, launched the installed DEB, and completed bundled-CUA lifecycle cleanup.This issue remains open only because deployment of the current hosted Connected Apps worker is external to this repository change. The code and Ubuntu artifact work in #346 is ready for maintainer review.
OWConnoi commentedon Aug 23, 2026
Real-user confirmation of finding 4's exact user-visible shape (0.1.32, macOS, managed broker mode): bots kept using previously linked apps through the MCP path while the Connected tab rendered "No connected apps yet", because
/api/connectors/connectedfailing is swallowed client-side and renders as empty rather than as an error. Opened #414 to make that failure state honest and to avoid registering a fresh installation over an unreadable credential store.One more observation worth a decision while this issue is open — mode precedence:
connectionModereturnsmanagedwhenever a broker token exists (server/composio.ts), so a user's own project key sits dormant while a managed installation is registered, and clearing the key in Settings doesn't change the mode either. That makes "paste your own key to use your own project" a no-op for packaged users until the broker identity disappears, which is surprising given the Settings copy implies the key is what's being used. If self-hosted-is-explicit is the intended semantics, a line in the key row ("managed mode is active; this key will be used if the managed service is unavailable") would remove the trap.tall27 commentedon Aug 23, 2026
• Still reproduces on Windows v0.1.32 today, so not Ubuntu-specific
• The 401-vs-404 probe proving it’s an unrouted path, not auth
• That the 404 body text distinguishes an upstream 404 from a local one, useful for future triage
chore: reconcile resolved issue tracker