feat: show model in working indicator and fix streaming bottom jitter

- Working indicator shows provider icon and model name with the live
  status (e.g. 'Fable 5 is reading file'), localized via
  chat.statusRow.modelStatus
- Pin auto-follow to the exact fractional scroll maximum and re-pin on
  every passive follow instead of skipping within tolerance
- Round message text line-height to whole pixels so streamed content
  grows on the pixel grid; kills the 1px vertical jitter of
  bottom-anchored rows during streaming
This commit is contained in:
Bohdan Triapitsyn
2026-07-19 22:58:28 +03:00
parent 8e718ee58c
commit 4be6854ba5
15 changed files with 84 additions and 11 deletions
@@ -3,6 +3,7 @@ import React from 'react';
import { useAssistantStatus } from '@/hooks/useAssistantStatus';
import { useConfigStore } from '@/stores/useConfigStore';
import { useSessionUIStore } from '@/sync/session-ui-store';
import { getProviderModelDisplayName } from '@/lib/modelDisplay';
import { StatusRow } from './StatusRow';
/**
@@ -22,6 +23,19 @@ export const StatusRowContainer: React.FC = React.memo(() => {
);
const { working } = useAssistantStatus();
const currentAgentName = useConfigStore((state) => state.currentAgentName);
const currentProviderId = useConfigStore((state) => state.currentProviderId);
const currentModelId = useConfigStore((state) => state.currentModelId);
const providers = useConfigStore((state) => state.providers);
const modelDisplayName = React.useMemo(() => {
if (!currentModelId) {
return null;
}
const provider = currentProviderId && providers.length > 0
? providers.find((candidate) => candidate.id === currentProviderId)
: undefined;
return getProviderModelDisplayName(provider, currentModelId) || null;
}, [currentProviderId, currentModelId, providers]);
const wasAborted = Boolean(abortRecord && !abortRecord.acknowledged);
@@ -37,6 +51,8 @@ export const StatusRowContainer: React.FC = React.memo(() => {
showAssistantStatus
showTodos={false}
agentName={currentAgentName}
modelName={modelDisplayName}
providerId={currentProviderId ?? null}
/>
);
});