Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix prs

Bingxi Zhao (Frank)42941faaff9f
diff --git a/README.md b/README.md
index 8a8496c24..fc1076e75 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,8 @@
### πŸ“¦ Releases
+> **[2026.6.21]** [v1.4.10](https://github.com/HKUDS/DeepTutor/releases/tag/v1.4.10) β€” A self-service **Profile** page with avatars, a rootless-ready container guide with a single-port request-time proxy, and deny-by-default MCP tools for non-admin users.
+
> **[2026.6.19]** [v1.4.9](https://github.com/HKUDS/DeepTutor/releases/tag/v1.4.9) β€” Settings polish: Search shows only the fields your provider needs, connection profiles can be renamed and auto-named by provider, and graded Mastery Path questions flow into your Question Bank.
> **[2026.6.18]** [v1.4.8](https://github.com/HKUDS/DeepTutor/releases/tag/v1.4.8) β€” Connect your own **Partners** under **My Agents** and consult them live in chat β€” answering through their own persona, library and skills β€” and each Partner gains its own private memory.
diff --git a/assets/releases/ver1-4-10.md b/assets/releases/ver1-4-10.md
new file mode 100644
index 000000000..3e1a6b1da
--- /dev/null
+++ b/assets/releases/ver1-4-10.md
@@ -0,0 +1,67 @@
+# DeepTutor v1.4.10 Release Notes
+
+**Release Date:** 2026.06.21
+
+A deployment-and-account follow-up to [v1.4.9](ver1-4-9.md): a self-service
+profile page with avatars, a hardened container story you can run rootless
+behind a single port, and tighter MCP tool access in multi-user deployments.
+Drop-in for everyone β€” the one behavior change is scoped to non-admin users in
+multi-user mode.
+
+> **Heads-up for multi-user deployments.** MCP tools are now **deny-by-default
+> for non-admin users**: a regular user can no longer discover or load
+> deployment-wide MCP host tools until an admin grants the specific tool names
+> in their grant. Admins stay unrestricted, and single-user / no-auth installs
+> are unaffected (their session runs as admin). Nothing migrates and nothing
+> breaks on upgrade β€” if your non-admins need MCP tools, grant the names in the
+> user's grant.
+
+## What's New
+
+### Profile page with avatars
+
+Every signed-in user gets a self-service **Profile** page: pick a built-in icon
+(with a color) or upload your own image as an avatar, see your account and role,
+and sign out. Your avatar then shows up in the sidebar, and an admin ring marks
+admin accounts at a glance.
+
+### Run DeepTutor in a container, rootless-ready
+
+A new [CONTAINERIZATION.md](https://github.com/HKUDS/DeepTutor/blob/main/CONTAINERIZATION.md)
+guide covers three shapes β€” plain `docker run`, `docker compose` with the
+PocketBase sidecar, and a hardened rootless **Podman** path (`compose.yaml`,
+read-only root filesystem, tmpfs system dirs) β€” plus a `.env.example` to start
+from. The frontend now proxies `/api/*` and `/ws/*` to the backend **at request
+time**, so the browser only ever talks to one port (`:3782`): no API URL baked
+into the JS bundle, no startup `sed`. Map a single port and you're done.
+
+### Tighter MCP tool access in multi-user mode
+
+As noted above, non-admin users now fail closed on MCP tools until an admin
+grants the names. The grant editor surfaces MCP tool grants alongside the
+built-in tool whitelist, so you can see and set exactly what each user can reach.
+
+### Quieter logs
+
+Routine `200`s β€” the chatty frontend polling of `/settings`, `/tools`,
+`/knowledge/list`, and friends β€” no longer flood the console. uvicorn's
+per-request access log is now disabled on **every** launch path (`deeptutor
+start`, the launcher, and the Docker entrypoint), and a single middleware
+surfaces only non-`200`s, the ones actually worth seeing.
+
+### Fixes
+
+- Client auth state resolves at request time through the new proxy, which also
+ sizes the request body for uploads (avatar images, attachments).
+- Avatar rendering falls back safely for unknown colors instead of turning
+ invisible; the auth-status fetch is de-duplicated.
+- `docker-compose.yml` PocketBase mount path corrected.
+
+## Upgrade Notes
+
+Drop-in from v1.4.9: `pip install -U deeptutor`; Docker users pull
+`ghcr.io/hkuds/deeptutor:latest`. No migrations, no configuration changes.
+**Multi-user deployments only:** if your non-admin users rely on MCP tools,
+grant the specific tool names per user β€” they fail closed until you do.
+
+**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v1.4.9...v1.4.10
diff --git a/deeptutor/__version__.py b/deeptutor/__version__.py
index f1cb9618f..8cb31d87f 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 this
file directly.
"""
-__version__ = "1.4.9"
+__version__ = "1.4.10"
__all__ = ("__version__",)
diff --git a/deeptutor/api/main.py b/deeptutor/api/main.py
index e90f9ab87..9be397b9c 100644
--- a/deeptutor/api/main.py
+++ b/deeptutor/api/main.py
@@ -240,9 +240,7 @@ app = FastAPI(
# propagate=False keeps them from also printing through root if the global
# level is ever lowered to INFO/DEBUG.
_access_logger = logging.getLogger("deeptutor.access")
-if not any(
- getattr(h, "_deeptutor_access_handler", False) for h in _access_logger.handlers
-):
+if not any(getattr(h, "_deeptutor_access_handler", False) for h in _access_logger.handlers):
_access_handler = logging.StreamHandler(sys.stdout)
_access_handler.setLevel(logging.INFO)
_access_handler.setFormatter(logging.Formatter("%(message)s"))
diff --git a/tests/api/test_selective_access_log.py b/tests/api/test_selective_access_log.py
index 6eab0dea4..7c0281f05 100644
--- a/tests/api/test_selective_access_log.py
+++ b/tests/api/test_selective_access_log.py
@@ -110,8 +110,6 @@ class TestSelectiveAccessLog:
client.get("/ok")
ok_records = [
- r
- for r in cap.records
- if r.args and len(r.args) >= 3 and "/ok" in str(r.args[2])
+ r for r in cap.records if r.args and len(r.args) >= 3 and "/ok" in str(r.args[2])
]
assert len(ok_records) == 0
diff --git a/web/components/UserAvatar.tsx b/web/components/UserAvatar.tsx
index 6505d0cb1..cdf85c246 100644
--- a/web/components/UserAvatar.tsx
+++ b/web/components/UserAvatar.tsx
@@ -116,7 +116,8 @@ export function UserAvatar({
let iconName: string;
let colorName: string;
if (descriptor.kind === "icon") {
- iconName = descriptor.icon in AVATAR_ICONS ? descriptor.icon : fallback.icon;
+ iconName =
+ descriptor.icon in AVATAR_ICONS ? descriptor.icon : fallback.icon;
colorName =
descriptor.color in AVATAR_COLORS ? descriptor.color : fallback.color;
} else {