Skip to content

fix: hermit serve works when binary is installed globally (#75)#77

Merged
ytnobody merged 2 commits into
mainfrom
develop
May 18, 2026
Merged

fix: hermit serve works when binary is installed globally (#75)#77
ytnobody merged 2 commits into
mainfrom
develop

Conversation

@ytnobody

Copy link
Copy Markdown
Owner

Summary

  • hermit serve がグローバルインストール時に harness.toml not found になるバグを修正 (hermit serve does not work #75)
  • CWD に harness.toml があればそれを優先し、なければバイナリディレクトリへフォールバック
  • 新テスト TestServeFromProjectCwd を追加

Test plan

  • curl -sSL https://raw.githubusercontent.com/ytnobody/HERMIT/refs/heads/main/install.sh | sh でインストール後、プロジェクトルートで hermit serve が正常起動することを確認

🤖 Generated with Claude Code

ytnobody and others added 2 commits May 18, 2026 21:45
…globally (closes #75)

When hermit is installed to a global path (e.g. ~/.local/bin/hermit),
cmdServe was unconditionally chdir-ing to the binary's directory, causing
"harness.toml not found" even when the user ran hermit serve from their
project root.

Now harness.toml in the CWD is checked first; the binary-dir fallback is
only applied when the CWD has no harness.toml (the Claude Code MCP server
spawn case where cwd may not be honoured).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
#75)

fix: hermit serve finds harness.toml when binary is installed globally (#75)
@ytnobody ytnobody merged commit 84041c0 into main May 18, 2026
4 checks passed
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