fix(ui): handle review feedback

This commit is contained in:
DhanushSantosh
2026-01-20 19:50:15 +05:30
parent cf60f84f89
commit a863dcc11d
2 changed files with 15 additions and 6 deletions

View File

@@ -44,8 +44,13 @@ export function RunningAgentsView() {
const isBacklogPlan = agent.featureId.startsWith('backlog-plan:');
if (isBacklogPlan && api.backlogPlan) {
logger.debug('Stopping backlog plan agent', { featureId: agent.featureId });
try {
await api.backlogPlan.stop();
} catch (error) {
logger.error('Failed to stop backlog plan', { featureId: agent.featureId, error });
} finally {
refetch();
}
return;
}
// Use mutation for regular features

View File

@@ -27,10 +27,10 @@ export function useProjectSettingsLoader() {
);
const setCurrentProject = useAppStore((state) => state.setCurrentProject);
const appliedProjectRef = useRef<string | null>(null);
const appliedProjectRef = useRef<{ path: string; dataUpdatedAt: number } | null>(null);
// Fetch project settings with React Query
const { data: settings } = useProjectSettings(currentProject?.path);
const { data: settings, dataUpdatedAt } = useProjectSettings(currentProject?.path);
// Apply settings when data changes
useEffect(() => {
@@ -39,11 +39,14 @@ export function useProjectSettingsLoader() {
}
// Prevent applying the same settings multiple times
if (appliedProjectRef.current === currentProject.path) {
if (
appliedProjectRef.current?.path === currentProject.path &&
appliedProjectRef.current?.dataUpdatedAt === dataUpdatedAt
) {
return;
}
appliedProjectRef.current = currentProject.path;
appliedProjectRef.current = { path: currentProject.path, dataUpdatedAt };
const projectPath = currentProject.path;
const bg = settings.boardBackground;
@@ -109,6 +112,7 @@ export function useProjectSettingsLoader() {
}, [
currentProject?.path,
settings,
dataUpdatedAt,
setBoardBackground,
setCardOpacity,
setColumnOpacity,