Commit Graph
117 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek aa60f5bc2a refac 2026-11-07 19:47:21 +09:00
Timothy Jaeryang Baek ffe17c539d refac 2026-11-06 13:48:49 +09:00
Timothy Jaeryang Baek 3d6c670ba7 refac 2026-11-06 10:25:26 +09:00
Timothy Jaeryang Baek cc8dae2859 refac 2026-11-05 20:48:03 +09:00
Timothy Jaeryang Baek cc03cf1242 refac 2026-11-05 20:44:55 +09:00
Timothy Jaeryang Baek 2059b65ee0 refac 2026-11-05 12:41:59 +09:00
Timothy Jaeryang Baek 975583f0ca refac 2026-11-02 12:08:58 +09:00
Timothy Jaeryang Baek b1fdd9ea1d refac 2026-11-02 02:20:33 +09:00
Timothy Jaeryang Baek f08aeb1538 refac 2026-11-02 01:27:36 +09:00
Timothy Jaeryang Baek 29cd3f00f2 refac 2026-11-02 01:16:55 +09:00
Timothy Jaeryang Baek 13afaba925 refac 2026-11-01 23:44:20 +09:00
Timothy Jaeryang Baek 9a9117fee0 refac 2026-11-01 23:25:26 +09:00
Timothy Jaeryang Baek f3836da92c refac 2026-11-01 23:24:10 +09:00
Timothy Jaeryang Baek bda6209717 refac 2026-11-01 23:10:42 +09:00
Timothy Jaeryang Baek 7d81297299 refac 2026-11-01 22:12:36 +09:00
Timothy Jaeryang Baek dde17e0f3c refac 2026-10-29 03:28:37 +09:00
Timothy Jaeryang Baek 3994f0939b refac 2026-10-25 12:39:40 +09:00
Timothy Jaeryang Baek f369c2e51b refac 2026-10-24 04:59:06 +09:00
Timothy Jaeryang Baek 8b41136c69 refac 2026-10-24 04:32:33 +09:00
Timothy Jaeryang Baekandmazzz1y dd69911d84 refac
Co-Authored-By: mazzz1y <17034108+mazzz1y@users.noreply.github.com>
2026-10-24 04:10:31 +09:00
Timothy Jaeryang Baek 6852d4d663 refac 2026-10-19 04:00:34 +09:00
Timothy Jaeryang Baek f3d321fa4d refac 2026-10-19 03:49:20 +09:00
Timothy Jaeryang Baek 757b451cf3 refac 2026-10-19 03:42:59 +09:00
Timothy Jaeryang Baek d09d027e06 refac 2026-10-19 03:40:42 +09:00
Timothy Jaeryang Baek 01c1c4e283 refac 2026-10-19 03:40:01 +09:00
Timothy Jaeryang Baek a0ef1c0af8 refac 2026-10-19 03:38:17 +09:00
Timothy Jaeryang Baek f92cc22c04 refac 2026-10-19 03:33:37 +09:00
Timothy Jaeryang Baek 4240b4e934 refac 2026-10-19 03:32:20 +09:00
Classic298 2f595c1122 feat: command results include the folder the command ran in (#184)
The result of a command now includes the folder it ran in. Open WebUI used to put the terminal's current folder into the instructions the model gets for running commands, which threw away the provider's prompt cache for the whole chat whenever the folder changed. With the folder in each result, Open WebUI can drop it from those instructions and the model still knows where it is.
2026-10-10 19:15:27 +04:00
Timothy Jaeryang Baek e436b6a2b6 refac 2026-09-13 22:36:09 -04:00
Timothy Jaeryang Baek 011022abb1 refac 2026-09-08 20:32:02 -04:00
Timothy Jaeryang Baek f0edc9ecc5 refac 2026-09-06 15:19:53 -04:00
Timothy Jaeryang Baek c7530495a5 refac 2026-08-27 15:29:58 -04:00
Timothy Jaeryang Baek d1f8c0e98d refac 2026-08-25 16:40:33 -04:00
Timothy Jaeryang Baek 11c1af09a2 refac 2026-08-22 09:11:14 -04:00
Timothy Jaeryang Baek 6728495e15 refac 2026-08-22 08:44:02 -04:00
Timothy Jaeryang Baek 1aaa9fa98c refac 2026-08-22 08:33:44 -04:00
Timothy Jaeryang Baek 690c5681c9 refac 2026-08-08 19:35:47 -06:00
Timothy Jaeryang Baek 68f0fa1cf5 refac 2026-06-22 17:02:02 +02:00
Timothy Jaeryang Baek 811d4abc18 refac 2026-06-22 16:56:50 +02:00
Timothy Jaeryang Baek c4f47b2776 refac 2026-06-22 16:18:04 +02:00
Timothy Jaeryang Baek 0085ec7d1f refac 2026-06-22 15:57:42 +02:00
Timothy Jaeryang Baek 9162e808c3 feat: add /files/serve/{path} endpoint for iframe relative URL resolution 2026-04-08 14:49:49 -07:00
Timothy Jaeryang Baek 8c154351df fix: default grep_search to regex mode
Closes #101
2026-04-08 13:03:47 -07:00
Timothy Jaeryang Baek 8a491e8b90 refac 2026-04-02 01:53:33 -05:00
EntropyYue fe2e5e1521 fix: GET terminals return null 2026-03-31 00:03:26 +08:00
Timothy Jaeryang Baek 4db47e8cee feat: resolve relative paths against session cwd in all file endpoints
All LLM-exposed file endpoints (list_files, read_file, write_file,
display_file, replace_file_content, grep_search, glob_search) now
read the X-Session-Id header and resolve relative paths against the
session's working directory instead of always using fs.home.

- Added optional cwd parameter to UserFS.resolve_path()
- Relative paths join against cwd if provided, else fs.home
- Absolute paths are unaffected
- execute endpoint also resolves relative cwd param against session cwd
2026-03-29 21:22:28 -05:00
Timothy Jaeryang Baek fbaf2e8e69 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
2026-03-29 20:59:47 -05:00
Timothy Jaeryang Baek 004ee891e6 security: harden API key handling and add startup warnings
- Increase auto-generated API key entropy from 192-bit to 384-bit
- Use hmac.compare_digest() for constant-time key comparison (HTTP + WS)
- Refuse to start without OPEN_TERMINAL_API_KEY configured
- Add prominent CORS wildcard warning at startup
- Bump version to 0.11.30
2026-03-25 17:15:15 -05:00
Timothy Jaeryang Baek b18c15123b feat: ZIP archive download endpoint (POST /files/archive)
Add a single POST /files/archive endpoint that bundles one or more
files and directories into a ZIP archive for download.

- Accepts a list of paths (files and/or directories)
- Directories are recursively included with relative paths preserved
- Multi-user access control enforced via UserFS
- Cross-platform ZIP format (Windows, macOS, Linux)
- Archive name derived from input (single item = item name, multiple = download.zip)

Closes #92
2026-03-24 05:38:30 -05:00