Skip to content

fix(tray): remove Docker dependency and always launch core - #128

Merged
Dumbris merged 1 commit into
mainfrom
bugfix/remove-docker-detect-tray
Nov 4, 2025
Merged

Dumbris merged 1 commit into
mainfrom
bugfix/remove-docker-detect-tray

Conversation

@Dumbris

@Dumbris Dumbris commented Nov 4, 2025

Copy link
Copy Markdown
Member

Remove Docker availability checking from tray application to fix architectural separation of concerns issue. The tray was blocking core launch when Docker was unavailable, preventing users from using non-Docker upstream servers.

Changes:

  • Remove ensureDockerAvailable() function that checked Docker before core launch
  • Remove handleDockerUnavailable() and Docker retry logic
  • Remove Docker error variables (errDockerPaused, errDockerUnavailable)
  • Remove Docker state management (dockerRetryMu, dockerRetryCancel, dockerReconnectPending)
  • Keep monitorDockerStatus() for user notifications via core API
  • Tray now always launches core regardless of Docker status

Architecture:

  • Tray: Launches core, monitors status, shows notifications
  • Core: Checks Docker, uses isolation if available, falls back gracefully
  • Core already has proper fallback logic (internal/upstream/core/connection.go:533)

Benefits:

  • Separation of concerns: Tray manages UI, core manages Docker
  • No blocking: Users can use HTTP/SSE servers without Docker
  • Graceful degradation: Core handles Docker unavailability internally
  • PATH issue irrelevant: Tray no longer needs Docker in PATH

Fixes the issue where tray launched from GUI couldn't find docker in PATH and blocked core launch, even though core handles Docker gracefully.

Pull Request

Description

Brief description of the changes in this PR.

Testing

  • I have tested these changes locally
  • I have added/updated tests that prove my fix is effective or my feature works
  • All existing tests pass

Remove Docker availability checking from tray application to fix
architectural separation of concerns issue. The tray was blocking
core launch when Docker was unavailable, preventing users from
using non-Docker upstream servers.

Changes:
- Remove ensureDockerAvailable() function that checked Docker before core launch
- Remove handleDockerUnavailable() and Docker retry logic
- Remove Docker error variables (errDockerPaused, errDockerUnavailable)
- Remove Docker state management (dockerRetryMu, dockerRetryCancel, dockerReconnectPending)
- Keep monitorDockerStatus() for user notifications via core API
- Tray now always launches core regardless of Docker status

Architecture:
- Tray: Launches core, monitors status, shows notifications
- Core: Checks Docker, uses isolation if available, falls back gracefully
- Core already has proper fallback logic (internal/upstream/core/connection.go:533)

Benefits:
- Separation of concerns: Tray manages UI, core manages Docker
- No blocking: Users can use HTTP/SSE servers without Docker
- Graceful degradation: Core handles Docker unavailability internally
- PATH issue irrelevant: Tray no longer needs Docker in PATH

Fixes the issue where tray launched from GUI couldn't find docker in PATH
and blocked core launch, even though core handles Docker gracefully.
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

📦 Build Artifacts for PR #128

Version: v0.9.24-dev-981943d-pr128
Latest tag: v0.9.24

Available Artifacts

  • frontend-dist-pr (177 KB)
  • archive-linux-amd64 (9.7 MB)
  • archive-linux-arm64 (8.8 MB)
  • archive-darwin-arm64 (16 MB)
  • installer-dmg-darwin-arm64 (18 MB)
  • archive-darwin-amd64 (18 MB)
  • installer-dmg-darwin-amd64 (20 MB)
  • archive-windows-amd64 (18 MB)
  • archive-windows-arm64 (16 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 19060883361 --repo smart-mcp-proxy/mcpproxy-go

# Or download a specific artifact:
gh run download 19060883361 --name dmg-darwin-arm64

Note: Artifacts expire in 14 days.

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.

2 participants