Skip to content

feat: add windows launch service - #1441

Merged
Teingi merged 8 commits into
oceanbase:masterfrom
Alanxtl:add_windows
Sep 3, 2026
Merged

Teingi merged 8 commits into
oceanbase:masterfrom
Alanxtl:add_windows

Conversation

@Alanxtl

@Alanxtl Alanxtl commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Which issue or RFC does this PR close?

Closes #1298

Implements RFC 1299.

Rationale for this change

Complete the Windows implementation of the personal Server service lifecycle defined by RFC 1299. Windows users can run PowerContext as a persistent current-user service without administrator privileges or a visible console window.

What changes are included in this PR?

  • Add the Windows Task Scheduler adapter for the current user.
  • Add ownership validation, lifecycle operations, restart policy, and foreign-task protection.
  • Use pythonw.exe to avoid opening a visible CMD window.
  • Redirect Server stdout and stderr to PowerContext-owned log files.
  • Support enabling or disabling automatic startup when the current user logs in.
  • Add Windows-native lifecycle tests and Windows CI coverage.
  • Update README and deployment documentation for Windows.

Are there any user-facing changes?

Windows is now supported by powercontext service install, status, and uninstall.

The service runs as the current user through Task Scheduler and does not install a Windows Service or require administrator privileges. Existing service definitions remain compatible.

How was this change tested?

  • make check
  • make docs-test
  • uv run pytest -q tests/test_service.py tests/test_service_environment.py tests/test_system_cli.py
  • Windows Task Scheduler native lifecycle tests on an isolated Windows environment:
    4 passed, 1 skipped
  • Verified powercontext service install --help
  • tested on my windows

AI usage statement

OpenAI Codex

@Teingi
Teingi merged commit 4e0f78a into oceanbase:master Sep 3, 2026
17 checks passed
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.

Tracking Issue: local Server availability and service installation

1 participant