d32cbd0b0e
`build.rs` only declared `rerun-if-env-changed` for `DEEPSEEK_BUILD_SHA` and `GITHUB_SHA`. With no `rerun-if-changed` directives, Cargo cached the build-script output across commits and the embedded short-SHA in `DEEPSEEK_BUILD_VERSION` (visible in `--version`) went stale until the next `cargo clean`. Add a `cargo:rerun-if-changed=<workspace>/.git/HEAD` directive in both the `cli` and `tui` build scripts. Handle both layouts: a regular checkout (`.git` is a directory) and a worktree (`.git` is a pointer file containing `gitdir: <path>`), so the SHA stays current in either case. Verified: touching `.git/HEAD` now triggers a recompile of the affected crate; `--version` reflects the current commit on the next build. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>