Repository navigation
fix(webui): prevent Scan Now tooltip clipping at right edge - #407
Merged
Merged
Conversation
…pping The DaisyUI tooltip extends past the viewport and is cut off by the global `overflow-x: hidden` on `#app` and `.drawer-content`. `tooltip-left` makes it open inward instead. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Deploying mcpproxy-docs with
|
| Latest commit: |
776c755
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b5826d55.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-scan-now-tooltip-clippin.mcpproxy-docs.pages.dev |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 24931402606 --repo smart-mcp-proxy/mcpproxy-go
|
4 of 6 tasks
Dumbris
added a commit
that referenced
this pull request
Apr 26, 2026
#420) The PKG postinstall script ran `open -a /Applications/MCPProxy.app` which propagated the entire PKInstallSandbox environment (PATH=/bin:/sbin:/usr/bin: /usr/sbin:/usr/libexec, SHELL=/bin/sh, INSTALLER_*) into the launched tray and every child process it spawned, including the long-running mcpproxy core. With no Docker locations on PATH, the core's docker probe failed; sync.Once then permanently cached that failure for the lifetime of the daemon — so the Web UI's "Scan Now" button stayed disabled, the security scan CLI returned "all scanners failed" with "Docker image is not available locally" even when every image was present, and `docker_status.error` showed `exec: "docker": executable file not found in $PATH`. Apple's recommended fix (per launchctl docs and packaging guidelines) is to launch the app in the user's GUI bootstrap context with a clean env. Both postinstall scripts now use: /bin/launchctl asuser <uid> /usr/bin/env -i \ HOME=... USER=... LOGNAME=... \ PATH=/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin \ /usr/bin/open -a "$APP" --env MCPPROXY_LAUNCHED_BY=installer This mirrors what users get when they double-click the app from Finder. Defense-in-depth in shellwrap.ResolveDockerPath: - Replace sync.Once with a TTL'd cache. Successful resolutions still cache forever; failures cache only 60s so a transient install-time failure self-heals instead of poisoning the daemon. - Add well-known-paths probe between the exec.LookPath fast path and the login-shell slow path. Probes the canonical Docker Desktop bundle binary first (always present when Docker Desktop is installed), /usr/local/bin/docker, ~/.docker/bin/docker (Docker's documented fallback when /usr/local/bin is not writable), Apple Silicon Homebrew, OrbStack, snap. Cheap (just os.Stat) and bypasses the fragile login-shell dance entirely for the common case. Web UI: revert the tooltip-left fix from #407 to tooltip-bottom. The Scan Now button sits on the LEFT of the security tab content (`flex sm:justify- between`) inside drawer-content with `lg:pl-64`, so tooltip-left pushed the long tooltip text under the sidebar. Bottom orientation has plenty of vertical room and is free of horizontal viewport edges. Tests: TestResolveDockerPath_NegativeTTLRetry covers the self-heal path, TestResolveDockerPath_WellKnownPathFallback covers the new probe. Co-authored-by: Claude Code <[email protected]>
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.
Summary
tooltip-leftto the Scan Now button so the tooltip extends inward instead of outwardoverflow-x: hiddenon#appand.drawer-contentclipping the tooltip when the button sits near the right edge of the viewportTest plan
npm run buildclean (134 modules, 1.71s)🤖 Generated with Claude Code