Skip to content

Commit 87cadef

Browse files
chore(smart-composer): default the internal force toggle to ON
So testers and reviewers see the new composer immediately on staging without flipping the dev toggle. The persistent override is still respected, so explicit OFF stays OFF. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 23a757c commit 87cadef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/shared/src/components/post/SmartComposerDevToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { useAuthContext } from '../../contexts/AuthContext';
1818
export const SmartComposerDevToggle = (): ReactElement | null => {
1919
const { user } = useAuthContext();
2020
const [forceEnabled, setForceEnabled, isFetched] =
21-
usePersistentContext<boolean>(FORCE_SMART_COMPOSER_KEY, false);
21+
usePersistentContext<boolean>(FORCE_SMART_COMPOSER_KEY, true);
2222

2323
if (isProductionAPI || !user || !isFetched) {
2424
return null;

packages/shared/src/hooks/post/useSmartComposerEnabled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const useSmartComposerEnabled = ({
2626
}: UseSmartComposerEnabledProps): UseSmartComposerEnabled => {
2727
const [forceOverride] = usePersistentContext<boolean>(
2828
FORCE_SMART_COMPOSER_KEY,
29-
false,
29+
true,
3030
);
3131
const { value: flagValue } = useConditionalFeature({
3232
feature: featureSmartComposer,

0 commit comments

Comments
 (0)