Skip to content

Commit bfc0a3d

Browse files
committed
fix(CyberNews): remove noisy FILTER_NEWS and VIEW_ARTICLE action reports
These browsing actions (tab switch, category filter, view/close article) fired too frequently and interrupted Agent conversations. Agent-dispatched handlers for these actions are preserved.
1 parent cfcb3c2 commit bfc0a3d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

apps/webuiapps/src/pages/CyberNews/index.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
createAppFileApi,
1111
batchConcurrent,
1212
type CharacterAppAction,
13-
ActionTriggerBy,
1413
} from '@/lib';
1514
import './i18n';
1615
import { Newspaper, ArrowLeft, AlertTriangle } from 'lucide-react';
@@ -754,26 +753,20 @@ const CyberNews: React.FC = () => {
754753
setCurrentView(tab);
755754
setSelectedArticleId(null);
756755
saveState({ currentView: tab, selectedArticleId: null });
757-
reportAction(APP_ID, 'FILTER_NEWS', { view: tab });
758756
},
759757
[saveState],
760758
);
761759

762760
const handleFilterNews = useCallback((cat: ArticleCategory | null) => {
763761
setNewsFilter(cat);
764-
reportAction(APP_ID, 'FILTER_NEWS', { category: cat || 'all' });
765762
}, []);
766763

767-
const handleViewArticle = useCallback((articleId: string, fromAgent = false) => {
764+
const handleViewArticle = useCallback((articleId: string, _fromAgent = false) => {
768765
setSelectedArticleId(articleId);
769-
if (!fromAgent) {
770-
reportAction(APP_ID, 'VIEW_ARTICLE', { articleId });
771-
}
772766
}, []);
773767

774768
const handleBackToFeed = useCallback(() => {
775769
setSelectedArticleId(null);
776-
reportAction(APP_ID, 'VIEW_ARTICLE', { articleId: '' }, ActionTriggerBy.User);
777770
}, []);
778771

779772
const handleSelectCase = useCallback(

0 commit comments

Comments
 (0)