fix: scope session assist to session directory

This commit is contained in:
Bohdan Triapitsyn
2026-07-06 20:00:53 +03:00
parent 18d1c9111a
commit 1824b51155
6 changed files with 52 additions and 12 deletions
@@ -4,14 +4,15 @@ import { useI18n } from '@/lib/i18n';
interface SessionRecapNoteProps {
sessionId: string;
directory?: string;
isMobile: boolean;
}
// Quiet one-paragraph recap of the agent's last reply, rendered right under
// the last message (above the reserved bottom gap). Appears only after the
// 5-minute quiet window, so the layout shift happens off-screen in practice.
export const SessionRecapNote: React.FC<SessionRecapNoteProps> = React.memo(({ sessionId, isMobile }) => {
const { visibleRecap } = useSessionAssistState(sessionId);
export const SessionRecapNote: React.FC<SessionRecapNoteProps> = React.memo(({ sessionId, directory, isMobile }) => {
const { visibleRecap } = useSessionAssistState(sessionId, directory);
const { t } = useI18n();
if (!visibleRecap) {