文件助手 is a permanent pinned entry that redirects into a real conversation on the slf topic (see PINNED_ENTRIES's own doc comment -- there's no dedicated file-browser API to back a real one). Once that topic has any message history it also comes back from useChatList() as an ordinary contact, so it rendered a second time as its own chronologically-sorted row further down -- confirmed live: navigating to /messages/slf via either row satisfied both rows' own "am I active" check at once, highlighting both simultaneously. Filters the slf topic out of the ordinary contacts list; 文件助手 stays the one and only way it's represented there. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the Oxlint configuration
If you are developing a production application, we recommend enabling type-aware lint rules by installing oxlint-tsgolint and editing .oxlintrc.json:
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc"],
"options": {
"typeAware": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
See the Oxlint rules documentation for the full list of rules and categories.