Files
codex/codex-rs
Felipe Coury 59d8c79789 Add app-server file preview read helpers (#61887)
## What changed

Add session helpers to resolve file paths against the source thread's workspace and read preview bytes through `fs/readFile`. Require a workspace on the app-server host, restrict reads to POSIX paths, and reject reads when the workspace changes.

Add text document validation that rejects invalid UTF-8 and control characters other than tabs and line endings.

## Testing

Add a mock WebSocket app-server test covering source-thread metadata requests, relative path resolution, large text reads, invalid UTF-8, binary content, and workspace changes during a read.

GitOrigin-RevId: b51cb227e478d72cba42309828e40bbffff6d847
2026-11-16 21:46:24 +00:00
..
…
…
…
…