Repository navigation
Find a session's project with LayerMap's Git runner - #9
Merged
Merged
Conversation
projectDirectory ran its own git, the one call in the server without windowsHide, which can open a console window on Windows each time a tool call names an absolute path. The runner hides the window, finds git by its full path on Windows, and leaves out the caller's Git settings, as every other Git call in the map does. Refs #6 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
projectDirectoryran its owngit, the one call in the server withoutwindowsHide. It runs once at startup, and on later tool calls for each absolute path they name. On Windows this can open a console window that closes straight away, which may be the flashing reported in #6.It now uses
GitRunner, like the map's other Git calls: the window is hidden and git is found by its full path on Windows.Refs #6. This does not close the issue, because the flashing has not been reproduced or confirmed gone on Windows, and it could also come from commands Codex runs itself.
Behaviour change
GitRunnerleaves out the user's Git configuration and uses/usr/bin/giton Linux and macOS. These two cases are now reported as not being in a Git repository:safe.directory/usr/bin/gitBuilding the map already failed in both, because it uses the same runner. Only the message changes, and it is now less precise.
setup,allowandremovecallprojectDirectorytoo.Testing
test/mcp.test.tsandtest/cleanup.test.ts: 15 tests pass.tscpasses, and biome passes on the changed files.GitRunner, not that the window no longer flashes.🤖 Generated with Claude Code