While a multi-step agent turn is "thinking between tool steps", the assistant identity name (e.g. the role name) was rendered twice, stacked: once by the assistant message row (MessageItem) and once by the standalone TypingIndicator below it. The indicator's name label only makes sense when it stands in for a not-yet-started assistant row; between steps the row above already shows the same name. Render the indicator's dimmed name label only when it is standalone (no assistant row at the tail yet); otherwise show just the "Thinking…" dots. - typing-indicator.tsx: optional showName prop (default true); the name label renders only when showName !== false - message-list.tsx: exported typingIndicatorShowsName(messages) helper; pass showName to the indicator at the render site - typing-indicator-shows-name.test.ts: unit-cover the four cases Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@typescript-eslint/strict-type-checked - Optionally add
plugin:@typescript-eslint/stylistic-type-checked - Install eslint-plugin-react and add
plugin:react/recommended&plugin:react/jsx-runtimeto theextendslist