Follow-up nits on the #573 profile/avatar work:
- UserAvatar: validate an icon marker's icon/color against the known sets and
fall back to the deterministic avatar for unknown values. The backend
_ICON_MARKER_RE accepts any [a-z0-9-] color, so a hand-set marker like
"icon⭐bogus" previously rendered an invisible avatar
(AVATAR_COLORS[unknown] === undefined).
- ProfileLink: pass role to UserAvatar so admins get the amber ring in the
sidebar, matching the "amber ring at every size" intent.
- useAuthStatus: share one in-flight /api/v1/auth/status request across the
hook's consumers (sidebar Admin/Logout/Profile links) so a page load makes a
single call instead of one per consumer; cleared once settled so a later
mount (after login/logout) refetches.
Verified: tsc, eslint, web node tests (142).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two gaps in the PR's frontend changes:
1. Client auth awareness was permanently false. api.ts/auth.ts read
process.env.DEEPTUTOR_AUTH_ENABLED in browser code, but Next.js only inlines
NEXT_PUBLIC_ vars into the bundle — so the Sign-out / Admin affordances never
rendered and apiFetch's 401 -> /login redirect never fired when auth was on.
Resolve auth state at runtime from the backend instead: fetchAuthStatus()
records it via setRuntimeAuthEnabled(), and components observe it through the
new useAuthStatus() hook. Works on Docker (read-only rootfs), PyPI, and dev
with no build-time baking. (The server-side gate in proxy.ts is unaffected.)
2. KB document uploads >10MB were truncated. All /api/* now flows through the
proxy, whose body buffer defaults to 10MB while the backend accepts 100MB
(DocumentValidator.MAX_FILE_SIZE). Raise experimental.proxyClientMaxBodySize
to 110MB so uploads aren't silently cut off.
Adds a regression test that a 401 does NOT redirect when auth is disabled.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A broad consolidation release across four product surfaces.
- Learning Space: Space becomes a learning dashboard; My Agents imports
local Claude Code / Codex chat history into resumable agents (with an
objective explore_context briefing so the tutor never role-plays the
user); Memory is promoted to a top-level /memory route; Partner
conversations flow into Memory; EduHub skills install inline.
- Knowledge Center: /knowledge rebuilt as a console with per-engine
detail pages; GraphRAG / PageIndex / LightRAG engines join LlamaIndex;
linked-KB read-only mounts; Obsidian live-vault capability.
- Settings: pluggable document parsing (MinerU / Docling / MarkItDown)
with a content-addressed cache and MinerU cloud/local backends; voice
TTS/STT; image & video generation; rebuilt settings navigation.
- Platform: per-user capability gating by assigned model; Solve rebuilt
on the chat loop with a per-step gate and mid-run failure fallback;
username login + inline errors; CLI skill publish/update; picker
polish; math-before-citation render fix.
Docs were split out to a standalone site, so site/ is now landing-page
only. Bumps __version__ to 1.4.6 and adds assets/releases/ver1-4-6.md.
Folds in mypy fixes surfaced by pre-commit (mineru/local Path typing,
knowledge/manager no-redef, explore_context token kwargs, CLI
set_dist_tag capability probe) plus prettier reformatting of
previously-committed web files.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Centralize Gemini 2.5/3 reasoning_effort=none in
reasoning_params.default_reasoning_effort_for so Visualize / Chat /
Solve / agentic loop stop returning empty bodies on those models.
- Visualize: per-capability max_tokens default (16k) seeded from
DEFAULT_AGENTS_SETTINGS, defensive root-tag trim on SVG/HTML output,
graceful fallback when JSON-mode review step crashes.
- Fix#485: require_auth / require_admin are async so the
set_current_user ContextVar reaches the endpoint instead of being
discarded by anyio.to_thread.run_sync's worker-thread context copy.
Adds _install_current_user helper shared by HTTP + WebSocket.
- Reasoning + native-tools chat protocol: formal content stream must
still start with FINISH/TOOL/THINK/PAUSE; tool-call deltas no longer
force-resolve labels and implicit_think_label is ignored, so
protocol-repair catches missing labels instead of mis-routing turns.
- Smooth streaming on every chat surface: useSmoothStreamText through
AssistantResponse, pin-to-bottom (useLayoutEffect) on book chat +
quiz follow-up, data-chat-scroll-root opt-in for overflow-anchor:none.
- Sidebar: collapsible Recents region with own scroll viewport,
deterministic Lucide icon per session via SessionAvatar, Docs link
next to GitHub footer, "New Chat" button removed (nav handles it).
- Add Lemonade local provider (port 13305) — registry entry, README
Docker host-gateway row, providers.md docs.
- Context-window models-endpoint probe honors DISABLE_SSL_VERIFY via
TCPConnector(ssl=False).
- README: insert v1.4.2 release row, push v1.3.10 inside "Past
releases" fold, bump install opt-in note to v1.4.2.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>