Repository navigation
Conversation
sync --force restores a drifted AIDD skill and leaves a user skill and a user named hook in .agents/hooks.json as they were. The clean case moves into the same file, renamed for both. Refs #511 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 tasks done
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.
🎯 What & why
Proves the last open criterion of #511:
restore(aidd sync) touches only what Antigravity setup wrote. Stacked on #961.🛠️ How it works
antigravity-foreign-files.e2e.test.tsgains async --forcecase: setupaidd-context, add a user named hooklintto.agents/hooks.jsonand a user skill, drift an AIDD skill, sync..agents/hooks.jsonkeepslintandaidd-contextwith the same content. The test compares parsed JSON, not bytes: restore unmerges then remerges its own key, soaidd-contextmoves afterlint.cleancase moves into the same file, renamedclean-antigravity-foreign-file→antigravity-foreign-filesto cover both.🧪 How to verify
cd cli && npx vitest run --project e2e tests/e2e/antigravity-foreign-files.e2e.test.ts: 2 passed.withoutPlugininantigravity-hooks.tsreturn{}fails the sync case on the missinglintkey; the clean case still passes.pnpm test: 6845 passed, 1 skipped.pnpm smoke: 144 passed, 0 failed, 1 skipped.The test passed on first run: it characterises existing behaviour, it does not drive a fix. Found while writing it, not fixed here (shared project-hooks route, not Antigravity-specific code):
.agents/hooks.json, makessync --forcerefuse (hook script '.agents/hooks/aidd-context/update_memory.js' was edited after install; detach refused) and exit 1 having restored nothing, including unrelated drifted skills.Nothing to restore — all files are unmodified.🔗 Linked issue
Closes #511
✅ I certify
🤖 Generated with Claude Code