2.11.1

krahets/hello-algo2.11.1Apr 22, 2026by asvishnyakov

AI Summary

This release focuses on stabilizing the application by fixing socket reconnections, updating LangChain compatibility, and improving localization support, alongside general refactoring of development tools.

Key Highlights

  • Fixed socket reconnection logic to prevent duplicate dispatches on reconnect
  • Updated LangChain integration to check for the correct version dependency
  • Improved localization by resolving base locales to regional translation files
  • Added ability to pass `chat_profile` to the `set_starter_categories` callback
  • Refactored dev scripts and upgraded formatting tools (Prettier & Ruff)

Breaking Changes

  • Users who forked the repo or install from source via `git+` syntax may need to update their workflows due to dev script refactoring.

New Features

  • Pass `chat_profile` to `set_starter_categories` callback

Full Release Notes

## What's Changed

 🛈 You may need to update your workflows and dev tools if you forked this repo or install chainlit from source code via `git+` syntax. See #2573 for detailed changes

### Added
* feat: pass chat_profile to set_starter_categories callback by @EyalAmitay in https://github.com/Chainlit/chainlit/pull/2849

### Fixed
* fix(socket): guard on_chat_start against duplicate dispatch on reconnect by @dokterbob in https://github.com/Chainlit/chainlit/pull/2891
* fix(langchain): check langchain-core version instead of langchain by @dokterbob in https://github.com/Chainlit/chainlit/pull/2889
* fix: resolve base locale to regional translation file (e.g. "da" → "da-DK") by @mgquach in https://github.com/Chainlit/chainlit/pull/2843

### Changed
* chore(fmt): upgrade prettier & ruff and auto format missed files by @asvishnyakov in https://github.com/Chainlit/chainlit/pull/2884
* refactor: dev scripts by @asvishnyakov in https://github.com/Chainlit/chainlit/pull/2573
* chore: release by @asvishnyakov in https://github.com/Chainlit/chainlit/pull/2901


**Full Changelog**: https://github.com/Chainlit/chainlit/compare/2.11.0...2.11.1