DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
release: v1.4.2 β Gemini 2.5+ unblocked, auth ContextVar fix, smooth streaming everywhere
Bingxi Zhao (Frank)c4d47668b7d4
diff --git a/README.md b/README.mdindex 3d2826386..b6bb78322 100644--- a/README.md+++ b/README.md@@ -44,17 +44,19 @@### π¦ Releases+> **[2026.5.28]** [v1.4.2](https://github.com/HKUDS/DeepTutor/releases/tag/v1.4.2) β Stability + polish on v1.4.1: Gemini 2.5+ unblocked across Visualize and Chat, ContextVar auth-routing fix (#485), reasoning + native-tools label protocol hardened, smooth-streaming UX on every chat surface, new collapsible Recents sidebar, and Lemonade local-provider support.+> **[2026.5.27]** [v1.4.1](https://github.com/HKUDS/DeepTutor/releases/tag/v1.4.1) β Security + stability patch: TutorBot tool sandbox locked down, per-user resource isolation, multimodal image fallback for vision-capable providers, an HTTP/SSE API for talking to a TutorBot, and a v1.4.0 chat regression fix.> **[2026.5.22]** [v1.4.0](https://github.com/HKUDS/DeepTutor/releases/tag/v1.4.0) β GA cut of v1.4: Auto Mode, three-layer Memory, agentic Deep Research / Solve / Question, LlamaIndex RAG refactor, Visualize/Animator merge, plus reasoning-effort normalization, tool-schema fallback, and restart-safe turn runtime.> **[2026.5.21]** [v1.4.0-beta](https://github.com/HKUDS/DeepTutor/releases/tag/v1.4.0-beta) β Three-layer Memory workbench (L1/L2/L3), every chat capability rebuilt on a single agentic engine, LlamaIndex-only RAG, and a unified Settings + Capabilities surface.-> **[2026.5.10]** [v1.3.10](https://github.com/HKUDS/DeepTutor/releases/tag/v1.3.10) β Remote Docker CORS recovery, `DISABLE_SSL_VERIFY` across SDK providers, safer code-block citations, and optional Matrix E2EE add-on.-<details><summary><b>Past releases (more than 2 weeks ago)</b></summary>+> **[2026.5.10]** [v1.3.10](https://github.com/HKUDS/DeepTutor/releases/tag/v1.3.10) β Remote Docker CORS recovery, `DISABLE_SSL_VERIFY` across SDK providers, safer code-block citations, and optional Matrix E2EE add-on.+> **[2026.5.9]** [v1.3.9](https://github.com/HKUDS/DeepTutor/releases/tag/v1.3.9) β TutorBot Zulip and NVIDIA NIM support, safer thinking-model routing, `deeptutor start`, sidebar tooltips, and session-store parity.> **[2026.5.8]** [v1.3.8](https://github.com/HKUDS/DeepTutor/releases/tag/v1.3.8) β Optional multi-user deployments with isolated user workspaces, admin grants, auth routes, and scoped runtime access.@@ -168,7 +170,7 @@DeepTutor ships four installation paths. They all share one workspace layout: settings live in `data/user/settings/` under the directory you launch from (or under `DEEPTUTOR_HOME` / `deeptutor start --home` if you set one explicitly). For the full app, the recommended flow is **pick a workspace directory β install β `deeptutor init` β `deeptutor start`**.-> β¨ **v1.4.1 is live.** `pip install -U deeptutor` picks up the latest stable. Pre-releases (when available) opt in with `pip install --pre -U deeptutor`.+> β¨ **v1.4.2 is live.** `pip install -U deeptutor` picks up the latest stable. Pre-releases (when available) opt in with `pip install --pre -U deeptutor`.### Option 1 β Install From PyPIdiff --git a/assets/releases/ver1-4-2.md b/assets/releases/ver1-4-2.mdnew file mode 100644index 000000000..e21fb8ca9--- /dev/null+++ b/assets/releases/ver1-4-2.md@@ -0,0 +1,175 @@+# DeepTutor v1.4.2 Release Notes++**Release Date:** 2026.05.28++v1.4.2 is a stability and polish release on top of [v1.4.1](ver1-4-1.md).+It unblocks Gemini 2.5+ across Visualize and the chat agent, fixes a+ContextVar regression that silently routed authenticated requests to the+admin workspace, hardens the chat protocol for reasoning models with+native tool calling, ships smooth-streaming UX across every chat+surface, and adds support for the Lemonade local provider.++## What's New++### Gemini 2.5+ Reasoning Default-Off++Gemini 2.5 / 3 ship with thinking enabled by default and burn the entire+`max_tokens` budget on reasoning unless `reasoning_effort: "none"` is+sent on the request. v1.4.2 centralizes that logic in+`reasoning_params.default_reasoning_effort_for`, the single source of+truth used by all three execution paths (the OpenAI SDK, the aiohttp+fallback, and the reasoning-kwargs builder). Visualize, Chat, Solve,+and the agentic loop all stop returning empty bodies when configured+against `gemini-2.5-pro` / `gemini-2.5-flash` / `gemini-3-*`.++### Visualize Pipeline Hardening++Three independent failure modes are fixed:++- **Per-capability max_tokens defaults** β Visualize now has its own+ entry in `agents.yaml` (16k tokens) seeded from+ `DEFAULT_AGENTS_SETTINGS`, so existing users with a stale+ `data/user/settings/agents.yaml` pick up the higher cap automatically+ without hand-editing.+- **SVG / HTML root trim** β when a model wraps its output with prose+ ("Here you go: `<svg>β¦`") or emits a closing fence on the same line+ as the closing tag, the generator agent now trims to the outermost+ `<svg>β¦</svg>` / `<!doctype>β¦</html>` so the renderer always receives+ a clean root.+- **Review-step JSON-mode crash β graceful fallback** β large or+ complex SVGs occasionally trip JSON-mode escaping inside the review+ step. Instead of crashing the turn, Visualize now logs the failure+ and ships the unreviewed draft so the user still sees a rendered+ result.++### Authenticated Requests Land In The Right Workspace (#485)++In v1.4.1, `require_auth` was a sync FastAPI dependency. FastAPI+dispatches sync dependencies via `anyio.to_thread.run_sync`, which+runs them in a worker thread under a *copy* of the request context β+so the `set_current_user(...)` call inside the dependency installed+the user on the thread's context, which was discarded when the+thread returned. The endpoint then read the unset default and fell+back to the admin workspace, silently routing every authenticated+user's reads/writes through the local admin's data.++`require_auth` and `require_admin` are now `async def`, so they+execute in the same asyncio task as the endpoint and the+`ContextVar` is visible everywhere downstream. HTTP and WebSocket+entry points now share a single `_install_current_user` helper so+the user object resolved from a token payload is identical across+transports.++### Reasoning Models + Native Tool Calling: Label Protocol Fixed++v1.4.1 tried to be clever with reasoning models that have native+tool-calling support β it told them to ignore the `TOOL`/`THINK`/+`FINISH`/`PAUSE` labels and rely on `reasoning_content` plus+`tool_calls` alone, and inside `run_labeled_step` it treated+`<think>` preludes and any incoming tool-call delta as implicit+label resolutions. In practice both shortcuts hurt: when a tool+call leaked into the content stream as JSON instead of a real+`tool_calls` delta, there was no label to repair against, and the+loop happily treated the JSON-as-answer as a `FINISH`. Multi-turn+reasoning + tool workflows would either burn iterations on repair+retries or silently terminate early.++In v1.4.2:++- Reasoning + native-tools system prompt tells the model that+ reasoning is displayed in a separate trace area, **but the formal+ content stream must still start with exactly one of+ `FINISH`/`TOOL`/`THINK`/`PAUSE`.**+- `run_labeled_step` no longer treats tool-call deltas as+ authoritative for label resolution, and `implicit_think_label` is+ ignored (kept for API compatibility). A missing label always falls+ to `LABEL_UNKNOWN`, so the chat pipeline's protocol-repair path+ catches it instead of silently mis-routing the turn.+- Inline `<think>...</think>` preludes are streamed live into the+ reasoning sub-trace and stripped from the formal `text` returned+ to the loop β so the answer area no longer leaks raw provider+ markers.++### Smooth Streaming Across Every Chat Surface++The rAF typewriter (`useSmoothStreamText`) introduced last week for+the main chat is now wired through `AssistantResponse`, so the+book chat panel, quiz follow-up tab, and any other surface that+renders an assistant message all get the same frame-aligned cadence+during streaming and a no-op pass-through for completed messages.++Companion fixes:++- Book chat panel and quiz follow-up tab moved their autoscroll to+ `useLayoutEffect` and stopped using `scrollIntoView({behavior:+ "smooth"})` β the smooth animation races against the next-frame+ layout update during fast streams and produces visible jitter. They+ now do a single `scrollTop = scrollHeight` pin in layout phase,+ matching what `useChatAutoScroll` does on the main chat.+- Book chat panel marks its scroller with `data-chat-scroll-root` so+ the global `overflow-anchor: none` rule applies (the browser's+ built-in scroll anchoring fights manual pinning when code blocks+ reflow above the cursor).+- `AssistantResponse` is now memoized β completed bubbles stop+ re-parsing markdown when an unrelated streaming sibling updates the+ parent.++### Sidebar Redesign++The expanded sidebar's chat-session list moved into its own+collapsible **Recents** region with an independent scroll viewport, so+long histories no longer push secondary nav off-screen. The "New chat"+button is gone (clicking *Chat* in the nav already starts a new+session), and a Docs link to [deeptutor.info](https://deeptutor.info/)+sits next to the GitHub link in the footer.++Each session now renders with a deterministic, friendly Lucide icon β+sparkles, leaf, feather, cloud, droplet, sun, moon, flame, star, etc.+β so the sidebar feels varied at a glance without shuffling on+re-render. Running sessions add a gentle wiggle animation; idle ones+stay still.++### Lemonade Local Provider++New `lemonade` provider binding for the AMD Ryzen AI / NPU runtime+(default base URL `http://localhost:13305/api/v1`). Auto-detected by+port `13305`, no API key required, listed in the README Docker host-+gateway section and in the provider configuration docs alongside+Ollama / LM Studio / llama.cpp / vLLM.++### Models-Endpoint Probe Honors `DISABLE_SSL_VERIFY`++The context-window auto-detection now passes+`aiohttp.TCPConnector(ssl=False)` when `DISABLE_SSL_VERIFY` is set,+matching the behavior of the rest of the HTTP layer. Self-signed local+inference servers no longer fall back to the default context window+just because the probe couldn't verify their cert.++## Tests++- `tests/api/test_auth_contextvar.py` β pins the regression from #485:+ a sync `require_auth` would lose the ContextVar; the async version+ preserves it across the dependency boundary.+- `tests/services/llm/test_reasoning_params.py` β covers the+ centralized `default_reasoning_effort_for` mapping.+- `tests/core/test_labeled_step_think_prelude.py` β updated to reflect+ the new "labels are always required" semantics.+- `tests/agents/chat/test_agentic_parallel_tools.py` β verifies the+ reasoning + native-tools path still resolves multi-tool turns.+- `tests/services/config/test_context_window_detection.py` β the+ models-endpoint probe honors `DISABLE_SSL_VERIFY` and passes a+ `TCPConnector(ssl=False)` to the aiohttp session.++## Upgrade Notes++- Drop-in from v1.4.1: `pip install -U deeptutor`; Docker users pull+ `ghcr.io/hkuds/deeptutor:latest`.+- If you previously hand-edited `data/user/settings/agents.yaml` to+ bump Visualize's `max_tokens`, that value still wins. The new 16k+ default only seeds users whose `agents.yaml` doesn't mention+ Visualize at all.+- If you wired a Gemini 2.5+ model and saw empty or truncated outputs,+ no configuration change is needed β the default-off behavior now+ applies automatically.++**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v1.4.1...v1.4.2diff --git a/deeptutor/__version__.py b/deeptutor/__version__.pyindex e9ffe56a3..c807f1e03 100644--- a/deeptutor/__version__.py+++ b/deeptutor/__version__.py@@ -6,6 +6,6 @@ before publishing to PyPI; the web sidebar badge and CLI banner read from thisfile directly."""-__version__ = "1.4.1"+__version__ = "1.4.2"__all__ = ("__version__",)diff --git a/deeptutor/capabilities/visualize.py b/deeptutor/capabilities/visualize.pyindex 70d1fbbff..ab4668d0a 100644--- a/deeptutor/capabilities/visualize.py+++ b/deeptutor/capabilities/visualize.py@@ -216,9 +216,7 @@ class VisualizeCapability(BaseCapability):# large/complex SVGs trip JSON-mode escaping and crash the# whole turn. Fall back to the unreviewed draft so the user# still gets a rendered result.- logger.warning(- "Visualize review failed (%s); using unreviewed draft.", exc- )+ logger.warning("Visualize review failed (%s); using unreviewed draft.", exc)review = ReviewResult(optimized_code=code,changed=False,diff --git a/deeptutor/services/config/context_window_detection.py b/deeptutor/services/config/context_window_detection.pyindex de42ffc52..781a59731 100644--- a/deeptutor/services/config/context_window_detection.py+++ b/deeptutor/services/config/context_window_detection.py@@ -15,6 +15,7 @@ from deeptutor.services.llm.context_window import (coerce_positive_int,default_context_window_for_model,)+from deeptutor.services.llm.openai_http_client import disable_ssl_verify_enabledfrom deeptutor.services.llm.utils import build_auth_headerslogger = logging.getLogger(__name__)@@ -149,9 +150,11 @@ async def _detect_from_models_endpoint(headers.pop("Content-Type", None)timeout = aiohttp.ClientTimeout(total=12)+ connector = aiohttp.TCPConnector(ssl=False) if disable_ssl_verify_enabled() else Nonetry:async with aiohttp.ClientSession(timeout=timeout,+ connector=connector,trust_env=True,) as session:async with session.get(url, headers=headers) as response:diff --git a/tests/api/test_auth_contextvar.py b/tests/api/test_auth_contextvar.pyindex 30cae6c16..a1d179462 100644--- a/tests/api/test_auth_contextvar.py+++ b/tests/api/test_auth_contextvar.py@@ -67,9 +67,7 @@ def test_install_current_user_maps_payload_to_scoped_user() -> None:from deeptutor.multi_user.context import get_current_user_or_none, reset_current_userfrom deeptutor.services.auth import TokenPayload- token = _install_current_user(- TokenPayload(username="alice", role="user", user_id="u_alice")- )+ token = _install_current_user(TokenPayload(username="alice", role="user", user_id="u_alice"))try:user = get_current_user_or_none()assert user is not Nonediff --git a/tests/services/config/test_context_window_detection.py b/tests/services/config/test_context_window_detection.pyindex ef223c2a0..e03270023 100644--- a/tests/services/config/test_context_window_detection.py+++ b/tests/services/config/test_context_window_detection.py@@ -2,6 +2,7 @@ from __future__ import annotationsimport asyncio+from deeptutor.services.config import context_window_detection as detection_modulefrom deeptutor.services.config.context_window_detection import (detect_context_window,)@@ -69,3 +70,52 @@ def test_detect_context_window_uses_known_model_metadata_when_provider_omits_winassert result.context_window == 1_000_000assert result.source == "known_model"+++def test_models_endpoint_probe_honors_disable_ssl_verify(monkeypatch) -> None:+ captured: dict[str, object] = {}++ class FakeConnector:+ pass++ class FakeResponse:+ status = 200++ async def __aenter__(self):+ return self++ async def __aexit__(self, *_args):+ return None++ async def json(self):+ return {"data": [{"id": "gpt-4o-mini", "context_window": 123456}]}++ class FakeSession:+ def __init__(self, **kwargs):+ captured["session_kwargs"] = kwargs++ async def __aenter__(self):+ return self++ async def __aexit__(self, *_args):+ return None++ def get(self, url, headers):+ captured["url"] = url+ captured["headers"] = headers+ return FakeResponse()++ def fake_connector(**kwargs):+ captured["connector_kwargs"] = kwargs+ return FakeConnector()++ monkeypatch.setattr(detection_module, "disable_ssl_verify_enabled", lambda: True)+ monkeypatch.setattr(detection_module.aiohttp, "TCPConnector", fake_connector)+ monkeypatch.setattr(detection_module.aiohttp, "ClientSession", FakeSession)++ result = asyncio.run(detection_module._detect_from_models_endpoint(_config()))++ assert result == 123456+ assert captured["url"] == "https://api.example.com/v1/models"+ assert captured["connector_kwargs"] == {"ssl": False}+ assert isinstance(captured["session_kwargs"]["connector"], FakeConnector)diff --git a/web/components/SessionList.tsx b/web/components/SessionList.tsxindex 6807c370b..83a79d70e 100644--- a/web/components/SessionList.tsx+++ b/web/components/SessionList.tsx@@ -198,82 +198,80 @@ export default function SessionList({: "text-[var(--muted-foreground)] hover:bg-[var(--background)]/40 hover:text-[var(--foreground)]"}`}>- <SessionAvatar- sessionId={session.session_id}- running={session.status === "running"}- className={- session.status === "running"- ? "text-blue-500"- : "opacity-70"+ <SessionAvatar+ sessionId={session.session_id}+ running={session.status === "running"}+ className={+ session.status === "running" ? "text-blue-500" : "opacity-70"+ }+ />+ {isEditing ? (+ <input+ value={draftTitle}+ autoFocus+ onChange={(event) => setDraftTitle(event.target.value)}+ onBlur={() => void commitEdit()}+ onKeyDown={(event) => {+ if (event.key === "Enter") void commitEdit();+ if (event.key === "Escape") {+ setEditingId(null);+ setDraftTitle("");}- />- {isEditing ? (- <input- value={draftTitle}- autoFocus- onChange={(event) => setDraftTitle(event.target.value)}- onBlur={() => void commitEdit()}- onKeyDown={(event) => {- if (event.key === "Enter") void commitEdit();- if (event.key === "Escape") {- setEditingId(null);- setDraftTitle("");- }- }}- onClick={(event) => event.stopPropagation()}- className="min-w-0 flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-1.5 py-px text-[12px] text-[var(--foreground)] outline-none focus:ring-1 focus:ring-[var(--primary)]/40"- />- ) : isPlaceholderTitle(session.title) ? (- <span- className={`dt-breathing-text min-w-0 flex-1 truncate text-[13px] italic text-[var(--muted-foreground)] ${active ? "font-medium" : ""}`}- >- {placeholderLabel}- </span>- ) : (- <span- className={`min-w-0 flex-1 truncate text-[13px] ${active ? "font-medium" : ""}`}- >- {session.title}- </span>- )}- <div className="flex shrink-0 items-center gap-px opacity-0 transition-opacity group-hover:opacity-100">- {isEditing ? (- <button- onClick={(event) => {- event.stopPropagation();- void commitEdit();- }}- className="rounded p-0.5 text-[var(--muted-foreground)] hover:text-[var(--foreground)]"- aria-label={t("Save title")}- >- <Check size={10} />- </button>- ) : (- <button- onClick={(event) => {- event.stopPropagation();- startEdit(session);- }}- className="rounded p-0.5 text-[var(--muted-foreground)] hover:text-[var(--foreground)]"- aria-label={t("Rename chat")}- >- <Pencil size={10} />- </button>- )}- <button- onClick={(event) => {- event.stopPropagation();- void onDelete(session.session_id);- }}- className="rounded p-0.5 text-[var(--muted-foreground)] hover:text-[var(--destructive)]"- aria-label={t("Delete chat")}- >- <Trash2 size={10} />- </button>- </div>- </div>- );- })}+ }}+ onClick={(event) => event.stopPropagation()}+ className="min-w-0 flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-1.5 py-px text-[12px] text-[var(--foreground)] outline-none focus:ring-1 focus:ring-[var(--primary)]/40"+ />+ ) : isPlaceholderTitle(session.title) ? (+ <span+ className={`dt-breathing-text min-w-0 flex-1 truncate text-[13px] italic text-[var(--muted-foreground)] ${active ? "font-medium" : ""}`}+ >+ {placeholderLabel}+ </span>+ ) : (+ <span+ className={`min-w-0 flex-1 truncate text-[13px] ${active ? "font-medium" : ""}`}+ >+ {session.title}+ </span>+ )}+ <div className="flex shrink-0 items-center gap-px opacity-0 transition-opacity group-hover:opacity-100">+ {isEditing ? (+ <button+ onClick={(event) => {+ event.stopPropagation();+ void commitEdit();+ }}+ className="rounded p-0.5 text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ aria-label={t("Save title")}+ >+ <Check size={10} />+ </button>+ ) : (+ <button+ onClick={(event) => {+ event.stopPropagation();+ startEdit(session);+ }}+ className="rounded p-0.5 text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ aria-label={t("Rename chat")}+ >+ <Pencil size={10} />+ </button>+ )}+ <button+ onClick={(event) => {+ event.stopPropagation();+ void onDelete(session.session_id);+ }}+ className="rounded p-0.5 text-[var(--muted-foreground)] hover:text-[var(--destructive)]"+ aria-label={t("Delete chat")}+ >+ <Trash2 size={10} />+ </button>+ </div>+ </div>+ );+ })}</div>);}diff --git a/web/components/chat/home/ChatMessages.tsx b/web/components/chat/home/ChatMessages.tsxindex ee7f6197e..9f62adf4f 100644--- a/web/components/chat/home/ChatMessages.tsx+++ b/web/components/chat/home/ChatMessages.tsx@@ -272,7 +272,10 @@ const AssistantMessage = memo(function AssistantMessage({status={outlineStatus}/>{showResearchBody ? (- <AssistantResponse content={msg.content} isStreaming={isStreaming} />+ <AssistantResponse+ content={msg.content}+ isStreaming={isStreaming}+ />) : null}</>) : mathAnimatorResult ? (@@ -290,7 +293,12 @@ const AssistantMessage = memo(function AssistantMessage({per-question markdown β the pipeline trims that out of``msg.content`` since the QuizViewer renders the cardsthemselves. */}- {msg.content ? <AssistantResponse content={msg.content} isStreaming={isStreaming} /> : null}+ {msg.content ? (+ <AssistantResponse+ content={msg.content}+ isStreaming={isStreaming}+ />+ ) : null}<QuizViewerquestions={quizQuestions}sessionId={sessionId}@@ -305,7 +313,11 @@ const AssistantMessage = memo(function AssistantMessage({// iteration's text sits below.messageSegments.map((seg) =>seg.kind === "text" ? (- <AssistantResponse key={seg.key} content={seg.text} isStreaming={isStreaming} />+ <AssistantResponse+ key={seg.key}+ content={seg.text}+ isStreaming={isStreaming}+ />) : (<AskUserOptionskey={seg.key}diff --git a/web/components/quiz/QuizFollowupTabBody.tsx b/web/components/quiz/QuizFollowupTabBody.tsxindex 7c265b5f4..f3b70bf4a 100644--- a/web/components/quiz/QuizFollowupTabBody.tsx+++ b/web/components/quiz/QuizFollowupTabBody.tsx@@ -14,7 +14,13 @@* intact and is reflected in the QuizViewer follow-up badge.*/-import { useCallback, useEffect, useLayoutEffect, useMemo, useRef } from "react";+import {+ useCallback,+ useEffect,+ useLayoutEffect,+ useMemo,+ useRef,+} from "react";import { Sparkles } from "lucide-react";import { useTranslation } from "react-i18next";import MarkdownRenderer from "@/components/common/MarkdownRenderer";diff --git a/web/components/sidebar/SidebarShell.tsx b/web/components/sidebar/SidebarShell.tsxindex ad90ced91..75970e6f3 100644--- a/web/components/sidebar/SidebarShell.tsx+++ b/web/components/sidebar/SidebarShell.tsx@@ -186,9 +186,7 @@ export function SidebarShell({><Linkhref={item.href}- onClick={- item.href === "/chat" ? handleChatClick : undefined- }+ onClick={item.href === "/chat" ? handleChatClick : undefined}aria-label={t(item.label)}className={`relative flex h-9 w-9 items-center justify-center rounded-xl transition-all duration-150 ${active@@ -298,9 +296,7 @@ export function SidebarShell({<Linkkey={item.href}href={item.href}- onClick={- item.href === "/chat" ? handleChatClick : undefined- }+ onClick={item.href === "/chat" ? handleChatClick : undefined}className={`flex items-center gap-2.5 rounded-lg px-3 py-2 text-[13.5px] transition-colors ${active? "bg-[var(--background)]/70 font-medium text-[var(--foreground)]"@@ -316,10 +312,7 @@ export function SidebarShell({</nav>{/* Chat history β its own region below the nav, takes remaining height */}- {showSessions &&- onSelectSession &&- onRenameSession &&- onDeleteSession ? (+ {showSessions && onSelectSession && onRenameSession && onDeleteSession ? (<sectionclassName={`mt-4 flex min-h-0 flex-col ${recentsCollapsed ? "" : "flex-1"diff --git a/web/hooks/useChatAutoScroll.ts b/web/hooks/useChatAutoScroll.tsindex bc2136315..72893911e 100644--- a/web/hooks/useChatAutoScroll.ts+++ b/web/hooks/useChatAutoScroll.ts@@ -182,10 +182,13 @@ export function useChatAutoScroll({// ``scrollToBottom`` is preserved as a public escape hatch (e.g. an// imperative "jump to latest" button) but kept ``instant`` so it// never animates against an active stream.- const scrollToBottom = useCallback((_behavior: ScrollBehavior) => {- void _behavior;- pinToBottom();- }, [pinToBottom]);+ const scrollToBottom = useCallback(+ (_behavior: ScrollBehavior) => {+ void _behavior;+ pinToBottom();+ },+ [pinToBottom],+ );return {containerRef,