Skip to content

Find a session's project with LayerMap's Git runner - #9

Merged
coffeecoproject merged 1 commit into
mainfrom
fix/windows-git-window
Nov 9, 2026
Merged

coffeecoproject merged 1 commit into
mainfrom
fix/windows-git-window

Conversation

@coffeecoproject

Copy link
Copy Markdown
Owner

Summary

projectDirectory ran its own git, the one call in the server without windowsHide. 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

GitRunner leaves out the user's Git configuration and uses /usr/bin/git on Linux and macOS. These two cases are now reported as not being in a Git repository:

  • a repository allowed only by a global safe.directory
  • a machine with no /usr/bin/git

Building the map already failed in both, because it uses the same runner. Only the message changes, and it is now less precise. setup, allow and remove call projectDirectory too.

Testing

  • test/mcp.test.ts and test/cleanup.test.ts: 15 tests pass. tsc passes, and biome passes on the changed files.
  • The new test fails on the old code. It shows the call goes through GitRunner, not that the window no longer flashes.
  • The full test suite was not run locally, and nothing was run on Windows.

🤖 Generated with Claude Code

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>
@coffeecoproject
coffeecoproject merged commit 76909a3 into main Nov 9, 2026
3 checks passed
@coffeecoproject
coffeecoproject deleted the fix/windows-git-window branch November 10, 2026 06:37
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.

1 participant