Repository navigation
feat(linux): bring desktop support up to date - #71
Conversation
update .papercuts/troubleshooting.md as part of the reviewed Aiden On The Go and Remote Access update.
update docs/aiden-remote-api-v1.md as part of the reviewed Aiden On The Go and Remote Access update.
update docs/plans/README.md as part of the reviewed Aiden On The Go and Remote Access update.
remove docs/plans/aiden-remote-multi-instance-hardening-plan.md as part of the reviewed Aiden On The Go and Remote Access update.
update docs/security/aiden-remote-threat-model.md as part of the reviewed Aiden On The Go and Remote Access update.
update docs/testing/aiden-on-the-go/phase-12.md as part of the reviewed Aiden On The Go and Remote Access update.
update docs/testing/aiden-on-the-go/phase-6.md as part of the reviewed Aiden On The Go and Remote Access update.
update ios/ASC_CLI.md as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo.xcodeproj/project.pbxproj as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/ContentView.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Features/Remote/AidenChatFeature.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Features/Remote/AidenPairingView.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Features/Remote/AidenRemoteCoordinator.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Features/Remote/AidenScheduledTasksView.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Features/Remote/AidenWorkspaceEnvironmentView.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Features/Remote/AidenWorkspaceShellView.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/LiveActivities/AidenRemoteLiveActivityManager.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Models/AidenInstallation.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Networking/AidenRemoteClient.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Networking/AidenRemoteContract.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Networking/AidenServerTrust.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGo/Persistence/AidenChatCache.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGoTests/AidenChatTests.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGoTests/AidenNativeIntegrationTests.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGoTests/AidenRemoteClientTests.swift as part of the reviewed Aiden On The Go and Remote Access update.
update ios/AidenOnTheGoTests/AidenRemotePhase0Tests.swift as part of the reviewed Aiden On The Go and Remote Access update.
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
clock_gettime/kill/setsid have no declarations under strict -std=c17 on glibc, which failed the Linux x64 native-helper build on CI. Define the same platform feature-test macros main.c uses. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…into feature/linux-desktop-support Reconcile the parallel linux-parity worktree merge with this worktree's reviewed merge of the same parents. The remote resolutions were a subset of this tree's; conflicts resolved toward the review-gated versions while keeping the remote's plan/papercuts documentation. Notably this keeps linux/linux-rpm advisory in required.needs (their placement there broke the shard policy test) and retains the .worktreeinclude darwin gate. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Linux x64 E2E gate: Electron spawned by crash fixtures and browser specs FATALs without a setuid chrome-sandbox (the GUI smoke step only worked because it passes --no-sandbox). chown/chmod the helper to root:root 4755 before the shard run, matching the RPM verification contract. - linux-payload-inventory "detects metadata changes" test mutated a fixed path, so on filesystems whose readdir order reaches resources/app.asar first the chmod landed before aiden-agent's baseline stat and the mutation went undetected (arm64 CI failure). Mutate through the FileHandle under read instead — order-independent. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Command-palette and settings specs from main hardcode Meta+key presses; on Linux the shortcuts are Control-based, so the palette never opened and every palette spec timed out. Use the file's PRIMARY_MODIFIER convention (and add it to environment-focus). - browser-initial-crash spawns Electron with a minimal env that drops DISPLAY/XAUTHORITY; forward the display session on Linux so the platform initializes under xvfb. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Run failed. View the logs →
|
|
Run failed. View the logs →
|
There was a problem hiding this comment.
Caution
This PR introduces a privilege-escalation path in the Linux pull-request CI job.
Reviewed changes
The two commits after 7846f8cb were reviewed against the full PR context, with focus on the Linux CI setup and the E2E and inventory test changes.
- Prepared the Linux E2E sandbox — the x64 CI lane now sets Electron's
chrome-sandboxownership and mode before running the deterministic Playwright suite. - Hardened the inventory race test — the metadata mutation now uses the active
FileHandle, making the test independent of directory traversal order. - Forwarded Linux display state — the standalone browser-crash fixture now passes the relevant X11, Wayland, and session environment into Electron on Linux.
- Ported E2E keyboard shortcuts — Linux E2E cases now use
Controlwhile retainingMetaon macOS.
GPT Luna | 𝕏
The Linux x64 E2E gate made node_modules/electron/dist/chrome-sandbox setuid-root after npm ci had run PR-controlled lifecycle scripts, so a pull request could swap the target and gain a root helper. Re-enable Electron's user-namespace sandbox at the runner level instead (kernel.apparmor_restrict_unprivileged_userns=0), pin the job to contents: read, and stop persisting the checkout token. A CI policy test now rejects privileged transitions on checkout content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes The delta since 325c7016 removes the privileged sandbox-helper setup from the Linux PR job and pins the replacement CI contract.
- Kept setuid privileges out of the checkout — Replaced
chownandchmod 4755on PR-controllednode_moduleswith the runner's user-namespace setting before x64 E2E, without disabling Electron's sandbox. - Pinned the CI security boundary — Added policy assertions for read-only job permissions, non-persisted checkout credentials, the absence of privilege-changing commands against
node_modules, and the sandboxed E2E invocation. - Recorded the workaround rationale — Documented why Ubuntu 24.04 requires the runner-level AppArmor setting for this E2E lane.
GPT Luna | 𝕏
The standalone native crash fixture launched Electron without the --disable-gpu switch every other E2E launch uses, and under the Linux namespace sandbox it stalled until execFile's timeout. Chromium turns the default SIGTERM into exit 0, so the hang surfaced only as a missing result.json. Pass --disable-gpu, kill with SIGKILL, report the fixture's output when it leaves no result, and log fixture progress. The terminal spec pressed Control+C before the shell had drawn its prompt; on Linux that is a real SIGINT and it dropped the first typed characters. Wait for the prompt first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes The delta since the prior Pullfrog review hardens the standalone browser-crash fixture and Linux terminal smoke against startup races.
- Improved browser-crash fixture diagnostics — The fixture now disables GPU acceleration, uses
SIGKILLon timeout, reports output when no result file is produced, and logs lifecycle progress; the troubleshooting note records the timeout behavior. - Waited for terminal readiness — The terminal smoke waits for accessible shell output before sending Linux
Control+C, preventing the startup-time SIGINT from racing the test command.
GPT Luna | 𝕏
Moving the Linux E2E gate to Chromium's user-namespace sandbox made renderers dumpable: /proc/<pid>/mem is user-owned under the namespace sandbox but root-owned under the setuid sandbox. The native crash spec's forcefullyCrashRenderer() therefore piped a core to the runner's apport handler, the renderer was not reaped until the dump drained, and render-process-gone never arrived before the 30 s timeout. Set a plain core_pattern and a zero core limit for the E2E step on the ephemeral runner. Keep the sandbox enabled and the checkout unprivileged. Correct the spec comment that blamed the GPU process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
There was a problem hiding this comment.
ℹ️ No new issues found in this delta.
Reviewed changes The incremental delta since the prior Pullfrog review prevents intentional renderer crashes from stalling Linux x64 E2E.
- Prevented renderer core-dump stalls — Configured the ephemeral runner to bypass apport's piped core handler and set a zero core limit, while preserving Chromium's namespace sandbox and the unprivileged checkout.
- Pinned the workaround — Added CI policy assertions for both dump controls before E2E, recorded the diagnosis in the troubleshooting log, and corrected the stale fixture comment.
GPT Luna | 𝕏
Combine main's Simulator devices capability, implementer subagents and settings changes with the Linux host capability gates. Settings and the command palette share availableSettingsDestinations for both the Computer Use and Simulator gates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
…des the tab devicesEnabled() is false off darwin, so the Simulator tab never appears on Linux even with AIDEN_EXPERIMENTAL_DEVICES=1. Skip the macOS stream and agent specs there and assert the tab stays hidden instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes The incremental delta since the prior Pullfrog review merges the current main feature line into the Linux branch.
- Integrated the experimental Simulator capability — Added the macOS-only, explicitly flagged Devices surface and projected its capability through Settings, the command palette, agent tools, and Remote sharing; Linux remains fail-closed for local simulator access.
- Adopted implementer run grants — Merged the per-run write and shell approval surfaces, uses
/bin/sh -cfor Linux shell execution, and keeps host-only grant approvals unavailable to paired mobile clients. - Updated shared runtime and test wiring — Routed development launch through the platform-aware launcher and added the device suite to
npm test.
GPT Luna | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes The follow-up delta since the fada428 review limits simulator-host E2E coverage to macOS and adds a non-macOS capability check.
- Gated Xcode-dependent E2E specs — The agent-tool and stream tests now skip off macOS, where local iOS Simulator/Xcode access is unavailable.
- Exercised the Linux feature gate — The Environment-tab test sets
AIDEN_EXPERIMENTAL_DEVICES=1and verifies Linux still exposes neither the Simulator tab nor its panel. - Checked test discovery —
npm run type-check:e2epasses, and Playwright lists 114 tests across 24 files; Electron tests were not run in this review.
GPT Luna | 𝕏
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
Resolve appearance-settings.tsx after #71: the PR removes the Preferences block (including the Dock icon row #71 gated on capabilities), so keep the tile picker and carry over #71's platform-neutral "system appearance" wording. Union-merge .papercuts/troubleshooting.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
…ndalone Both branches had ported the native helpers to Linux, so main's port is kept. That covers the C sources, the shared aiden-platform.h with its own SHA-256, and the native-c-build-core build scripts. The CLI's OpenSSL/renameat2 shims are dropped. The zsh-only -f shell flag survives, and the Linux glob regression test is re-added in main's guard style. The speech wrapper stays thin, and the portable core now uses main's "desktop" wording. nativeHelperSourceHash now also hashes native/shared/*.h, so a shared-header edit marks prebuilt helpers stale. A behavioral test covers this. The darwin and linux prebuilts are rebuilt, and the Docker helper build no longer installs libssl-dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D

Summary
Linux now carries the current desktop surface, native helpers, package/update contracts, and x64/arm64 AppImage, DEB, and RPM delivery. The branch adds Fedora GNOME/SELinux evidence and staged security prerequisites for future Computer Use admission while keeping that capability disabled until the remaining production boundary is proven.
The release path now attests verified Linux packages and update feeds. A manual Linux-installer workflow builds and verifies both architectures without publishing a release. The checked-in POSIX installer selects the matching macOS or Linux artifact, verifies checksums and platform identity/provenance, preserves package-manager ownership, and uses rollback-safe private staging. The accepted release publisher includes the installer and its checksum.
Current capability boundary
mainafter merge and needs a subsequent accepted release for Linux assets. Intel macOS also needs a signed/notarized x64 DMG.Validation
npm run test— complete repository suite passednpm run test:branding— 43 TypeScript tests and 41 Node tests passednpm run test:linux-contracts— 152 passed, 2 expected platform skipsgit diff --checkpassedExact-head hosted validation is tracked by the current PR checks.