Repository navigation
Conversation
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
预览构建与预览
clippy不再各自落到 worktree 内的apps/tray/target/preview,而是统一复用$HOME/.cache/cargo-target-preview(与常规~/.cache/cargo-target保持隔离),同时忽略本地.claude/目录避免主仓git status变脏。Evidence
clippy的 worktree 都会生成一份独立的apps/tray/target/preview(约 3.5~3.7 GB),且主仓git status持续出现?? .claude/。/bin/sh scripts/preview_tray.sh与AGENTNAVE_PREVIEW=1 CARGO_TARGET_DIR="$HOME/.cache/cargo-target-preview" cargo clippy --manifest-path apps/tray/Cargo.toml --all-targets -- -D warnings均通过,产物全部写入~/.cache/cargo-target-preview(3.4 GB),worktree 内无apps/tray/target,整个 worktree 仅占 141 MB;git check-ignore -v .claude/worktrees/demo命中.gitignore:14:/.claude/;sh -n scripts/preview_tray.sh、uv run ruff format --check .、uv run ruff check .、uv run pyright、uv run python scripts/review_checks.py --base origin/main、uv run pytest tests/test_review_checks.py tests/test_isolated_dirs.py(85 passed)全绿。Merge Danger
Door: two-way(双向门,仅涉及本地预览脚本、文档命令与
.gitignore,随时可回退)。Blast Radius: minimal(仅影响本机 macOS 预览构建路径、本地预览 clippy 命令与 git 未追踪列表,不影响 CI
.github/workflows/tray.yml与正式发版构建)。