Conversation
AmrDab
added a commit
that referenced
this pull request
Mar 2, 2026
BREAKING: Make native desktop automation gracefully degrade on unsupported platforms Core fixes: - src/native-desktop.ts: Lazy-load @nut-tree-fork/nut-js to avoid ERR_DLOPEN_FAILED crashes - src/native-desktop.ts: All methods throw clear 'not available on this platform' errors when disconnected - src/agent.ts: Handle desktop connection failures gracefully, continue in CDP-only mode - src/index.ts: Don't exit(1) on agent connect failure, allow server to start for browser automation Merged PR #33 changes: - src/accessibility.ts: Add SUPPORTED_PLATFORMS set, early return for unsupported platforms - src/doctor.ts: Add Linux GPU detection via nvidia-smi + lspci fallback (~35 lines) Merged PR #32 changes: - README.md: Add cross-platform CI automation note (.github/workflows/cross-platform.yml to be added separately) ESLint fixes: - eslint.config.js: Add missing Node.js globals (console, process, etc.) - eslint.config.js: Convert no-unused-vars and no-explicit-any to warnings Result: Universal fix that works on ANY Linux system. Native desktop unavailable = CDP-only mode. Build passes: npm run build ✓
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
SUPPORTED_PLATFORMSset forwin32anddarwinand early-return logging inisShellAvailable()when the current platform is not supported.runScript()for unsupported platforms and removed the fallback mapping to Windows scripts so only the platform's script map is used.detectGpuInfo()which prefersnvidia-smioutput and falls back to parsinglspcifor VGA/3D devices, returning formatted GPU names and memory when available.Testing
tsc --noEmitwhich completed successfully.npm testand the automated tests passed.Codex Task