This commit is contained in:
Bingxi Zhao (Frank)
2026-06-21 14:43:41 +08:00
parent 5eafa0c2fb
commit 42941faaff
6 changed files with 74 additions and 8 deletions
+2
View File
@@ -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.
+67
View File
@@ -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
+1 -1
View File
@@ -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__",)
+1 -3
View File
@@ -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"))
+1 -3
View File
@@ -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
+2 -1
View File
@@ -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 {