Hide project/services panels when not in a docker-compose project directory#776
Draft
Hide project/services panels when not in a docker-compose project directory#776
Conversation
Co-authored-by: jesseduffield <8456633+jesseduffield@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix forced Project view in lazydocker
Hide project/services panels when not in a docker-compose project directory
Mar 15, 2026
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.
v0.25's multi-project discovery caused the Projects and Services panels to always appear, even when launched outside a compose project. Containers were also filtered to the first discovered project, making other running containers invisible.
Changes
project_panel.go: AddedHidereturning!InDockerComposeProject— Projects panel only appears when inside a compose directory.services_panel.go: SimplifiedHidefrom!InDockerComposeProject && len(services) == 0to!InDockerComposeProject. The old check caused the panel to appear whenever other compose containers were running on the system.containers_panel.go: Project-based filtering now only applies whenInDockerComposeProjectis true — outside a compose project, all containers are shown in a flat list regardless of their compose project label.arrangement.go: The compact-size treatment (Size: 3) for the first side panel was unconditional. Now it only applies whensideWindowNames[0] == "project", preventing the Containers panel from being squashed to 3 lines when the Projects panel is hidden.Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.