mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-04 08:10:53 +00:00
feat: per-session working directory tracking via X-Session-Id header
Replace the process-global os.chdir() with an in-memory dictionary keyed by session ID (passed via X-Session-Id header). Multiple concurrent chat sessions now maintain independent working directories. - GET/POST /files/cwd read X-Session-Id to resolve per-session cwd - POST /execute falls back to session cwd when no cwd param provided - POST /api/terminals spawns PTY in the session's cwd - 7-day sliding TTL for session entries - Fully backward compatible: no header = fs.home default
This commit is contained in:
1 parent
004ee891e6
commit
fbaf2e8e69
4 files changed
+74
-16
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "open-terminal"
|
||||
version = "0.11.30"
|
||||
version = "0.11.31"
|
||||
description = "A remote terminal API."
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
|
||||
Reference in new issue
Block a user