Skip to content

Conversation

@aw338WoWmUI
Copy link

Summary

Enable Chrome for Testing installation and detection on Linux systems, plus a UTF-8 session ID fix.

Changes

scripts/setup-chrome-for-testing.sh

  • Detect OS (Darwin/Linux) and architecture (arm64/x86_64)
  • Download appropriate platform binaries:
    • macOS: chrome-mac-arm64, chrome-mac-x64
    • Linux: chrome-linux64, chrome-linux-arm64
  • Create platform-aware wrapper script

crates/g3-computer-control/src/webdriver/diagnostics.rs

  • Add platform-specific Chrome search paths with #[cfg(target_os)]
  • Prioritize current platform's paths for faster detection
  • Support Linux Chrome for Testing locations

crates/g3-cli/src/interactive.rs

  • Fix UTF-8 session_id truncation: use character-based truncation
    instead of byte-based to properly handle non-ASCII characters

Motivation

The Chrome installation script and diagnostics only supported macOS,
preventing Linux users from using g3's computer control features.

Testing

Tested on Linux x86_64 with Chrome for Testing 144.0.7559.96:

  • Script correctly detects Linux and downloads linux64 binaries
  • Chrome and ChromeDriver work correctly
  • Diagnostic report shows Linux Chrome path

gitadmin and others added 2 commits January 27, 2026 07:11
Enable Chrome for Testing installation and detection on Linux systems.

Changes:
- scripts/setup-chrome-for-testing.sh: Detect OS and architecture, download
  appropriate platform binaries (linux64, linux-arm64)
- diagnostics.rs: Add platform-specific Chrome search paths with current
  platform prioritized, support Linux Chrome for Testing locations

Tested on Linux x86_64 with Chrome for Testing 144.0.7559.96

Co-Authored-By: Claude <noreply@anthropic.com>
Use character-based truncation instead of byte-based to properly
handle non-ASCII characters in session IDs.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant