Skip to content

feat(desktop): foreground headless mode with bilingual guides - #594

Merged
huichen merged 4 commits into
mainfrom
claude/desktop-headless
Sep 13, 2026
Merged

huichen merged 4 commits into
mainfrom
claude/desktop-headless

Conversation

@huichen

@huichen huichen commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add an explicitly selected, foreground futureos --headless mode to the existing Desktop executable, reusing Desktop persistence, Agent integration and the Remote protocol without constructing a window or WebView.
  • Guide platform device authorization and mobile pairing with terminal QR codes and complete links by default. Reuse valid credentials/pairings; provide --no-qr and explicit --re-pair options.
  • Handle Ctrl+C (and Unix SIGTERM/SIGHUP), close remote ingress before cleanup, and stop only the Agent owned by this Desktop. Reject non-interactive first-time setup and protect one backend per data directory.
  • Add a GUI-free --no-default-features server build and CI checks for both configurations.
  • Publish standalone English and Chinese guides at docs/desktop-headless.md and docs/desktop-headless.zh-CN.md; index them in docs/README.md and link from both Remote wiki pages and the design documentation.

Validation

  • cargo fmt --check: passed.
  • cargo clippy --all-targets -- -D warnings: passed with default features and with --no-default-features.
  • Full Windows default-feature suite: 1134 passed, 26 failed.
  • Full Windows GUI-free suite: 927 passed, 26 failed.
  • The 26 failures are the existing Windows path/time-setting/git and simulated connection test families, with representative failures reproduced on the unchanged baseline. They are not reported as a green local suite. Linux CI remains the merge gate.
  • CLI subprocess tests: 3/3 default and 4/4 GUI-free passed. Documentation test targets completed (the existing example is ignored).
  • python scripts/check-docs.py: 98 documents passed link, fence and bilingual checks.
  • Checked the Linux GUI-free dependency graph: no Tauri, GTK, WebKit, Wry or Tao dependencies.

Live phone scanning and production platform authorization were not exercised. The local WSL installation cannot start because its disk image is missing; Linux signal/integration coverage is included in CI rather than claimed as locally executed.

Reuse Desktop business and pairing logic without a WebView. Guide browser authorization and phone pairing with terminal QR codes and links, preserve valid pairings, and shut down owned resources on terminal signals. Add a GUI-free server build, shared instance lock, lifecycle tests and usage documentation.
@huichen
huichen enabled auto-merge (squash) September 13, 2026 10:21
@huichen
huichen merged commit d8cafdd into main Sep 13, 2026
12 checks passed
@huichen
huichen deleted the claude/desktop-headless branch September 13, 2026 10:29
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