Commit Graph

2 Commits

Author SHA1 Message Date
mcfn.feng fd2ed699e6 [packages/cli-v2]fix: resolve git HEAD path for monorepo and check version on delayed connect
- build.rs now uses `git rev-parse --git-dir` to find the actual .git/HEAD
  path, fixing stale BUILD_VERSION in monorepo layouts
- Add check_version on the delayed connect path (auto-start loop) so
  connecting to an outdated daemon after transient failure also triggers
  VERSION_MISMATCH

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 20:28:11 +08:00
mcfn.feng 0b5f94769e [packages/cli-v2]feat: CLI-daemon version mismatch detection
Add build-time version stamping (CARGO_VERSION-git_hash) via build.rs.
Daemon writes BUILD_VERSION to ready file on startup. CLI checks version
on connect and returns VERSION_MISMATCH error with hint if mismatched.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 20:28:11 +08:00