Merge branch 'main' into ws-files-panel

This commit is contained in:
2026-11-07 01:06:30 +00:00
19 changed files with 933 additions and 39 deletions
+12 -3
View File
@@ -1,6 +1,15 @@
# Files panel
The chat Files panel lists and navigates the active session's server working
directory, with filtering, hidden files, sorting, and list/grid presentation.
The follow-up slice will add file opening, viewing, downloading, and image
thumbnails.
directory, with filtering, hidden files, sorting, and list/grid presentation
(`app/lib/features/chat/files/`). The follow-up slice adds file opening, viewing,
downloading and image thumbnails.
Server side:
- Directory listings (`list_directory`) include file `size` (bytes) and RFC3339 UTC
`modified` metadata for files; directories carry neither.
- `GET /files?path=...` serves one regular file for the client files panel. Paths may be
absolute or `~`-prefixed and are resolved through the operator home directory; cleaned
paths and symlinks must stay inside that home subtree. Directories, special files and
escape paths are refused. Add `download=1` for attachment disposition.