Repository navigation
Conversation
Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
|
Fixed the CI regressions in ce92c28. The new recall gate correctly defaults legacy fixtures to disabled, so the existing attribution/vote/scope tests now explicitly enable recall in both local and team configuration before exercising recall-dependent hook behavior. This covers user scope, project scope, and dispatcher-resolved fallback scope.\n\nValidation:\n- typecheck passed\n- type-aware oxlint passed for the changed tests\n- all PR checks now pass, including Node 20/22/24 Linux, both macOS shards, Windows, coverage, and all E2E shards |
|
No confident findings in the specified PR diff. The PR description documents sufficient testing: focused tests, typecheck, lint, build, and a representative built-CLI verification showing recall-off produces no reducer log and recall-on resumes recording. This satisfies the real-CLI requirement; no additional provider/agent matrix is required. Review was read-only. I did not run, build, or install anything from the PR. |
Thanks for this. The gate code itself checks out. With a built CLI, a member who turned recall off no longer records attribution or votes (main still does), and a team with recall on behaves as before. The CI review found nothing in the code, and I agree. Two things stop me from approving it as it stands. It is a breaking change. Recall is off by default, so a team that never set
#1788 itself says this belongs in the changelog for that reason. Here it is filed under Bug Fixes, with no #1801 contains the same change. Its commit |
Closing as covered by #1801, now on main as 595c37d. Its |
Summary
Make the
recall-attribution,votes-sync, andvotes-pushhook handlers use the existing effective recall switch instead of checking onlyTEAMAI_RECALL_DISABLED. This keeps the environment kill switch highest priority, lets the member override the team setting, and prevents recall evidence or vote work while recall is off.The PR also documents the runtime behavior in the English and Chinese hook, reporting, settings, and recall guides, plus the setup skill and changelog.
Type of Change
Test Plan
npx tsc --noEmitpasses (npm run typecheck)npm run lintpasses (includingscripts/check-docs.mjs)npx vitest run src/__tests__/hook-handlers.test.ts -t "recall|votes-sync|votes-push"(20 passed)Built-CLI verification on Windows, using an isolated user config and a real git-backed team repo:
sharing.recall.enabled: true, memberrecallEnabled: false.teamai recall statusprintedRecall: disabledand identified the member override.hook-dispatch stop --tool claudeevent withTEAMAI_ADOPTION_EVAL_LOGset left no log (OFF_LOG_EXISTS=False).teamai recall enable, followed by the next identical event, wrote one reducer record:{"sessionId":"on-session","recalled":0,"adopted":0}(ON_LOG_EXISTS=True).Interleaved built-CLI timing (20 runs per state, 0.6 s pause, Windows host): enabled median 1501.5 ms; disabled median 1500.7 ms. This slice removes background work rather than foreground wait, so the result shows no hook-latency regression as expected.
I also ran the whole
hook-handlers.test.tsfile locally: 153 passed, 1 skipped, and two existing Windows/environment-sensitive assertions failed outside this change (detached-process option capture and an invalid-path contribute-check case). The focused changed tests, typecheck, lint, docs check, and build all pass.Related Issues
Slice 5 of #1788
Notes for Reviewers
hookRecallEnabledintentionally loads the team config at event time. Nothing is installed or removed, soteamai recall disable/enableaffects the next hook event. Existing handler work stays unchanged after the gate.AI disclosure: developed with Codex assistance; I reviewed the changes and ran the verification above.