diff --git a/src/lib/feature-flags/__tests__/coach-cascade.test.tsx b/src/lib/feature-flags/__tests__/coach-cascade.test.tsx index b45b9faac..bb25037f0 100644 --- a/src/lib/feature-flags/__tests__/coach-cascade.test.tsx +++ b/src/lib/feature-flags/__tests__/coach-cascade.test.tsx @@ -284,6 +284,10 @@ describe("Coach disable cascade invariant", () => { // redirects to `/insights` when the operator master flag is off. // v1.18.0 — moved to the standalone top-level `/coach` route. "src/app/coach/page.tsx", + // v1.21.4 — the dedicated conversation-history page gates on + // `flags.coach` like the main Coach route and renders unavailable + // when the operator master flag is off. + "src/app/coach/conversations/page.tsx", // v1.15.20 — the proactive Coach-nudge cron short-circuits on // `flags.coach` (gate 1) so an operator kill-switch also silences // the nudges. Server-side cron, not a render path — the cascade diff --git a/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx b/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx index 63942e5ec..40065d3fb 100644 --- a/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx +++ b/src/lib/feature-flags/__tests__/coach-user-disable.test.tsx @@ -298,6 +298,10 @@ describe("Coach per-user disableCoach invariant", () => { // page back to `/insights` instead of painting a dead chat shell. // v1.18.0 — moved to the standalone top-level `/coach` route. "src/app/coach/page.tsx", + // v1.21.4 — the dedicated conversation-history page mirrors the + // Coach route gate: operator master flag OR per-user opt-out marks + // the page unavailable instead of painting a dead history shell. + "src/app/coach/conversations/page.tsx", // The hook itself + its `useAuth`-backed reader. "src/hooks/use-disable-coach.ts", // Cross-cut gates owned by sibling invariants / route tests.