Skip to content

feat(workspace): jsonl text preview and Files tab load stability#367

Open
xiami762 wants to merge 2 commits into
devfrom
feat/workspace-jsonl-and-files-tab-stability
Open

feat(workspace): jsonl text preview and Files tab load stability#367
xiami762 wants to merge 2 commits into
devfrom
feat/workspace-jsonl-and-files-tab-stability

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented Jun 3, 2026

Summary

  • Treat .jsonl files as text in the workspace manager so they can be previewed and edited in the UI instead of being forced to download-only.
  • Add backend and frontend coverage for .jsonl (extension checks, read API route, file icon).
  • Stabilize the Workspace Files tab: ignore stale directory list responses when navigation is fast, run the root directory load only once on mount, and depend on stable toast callbacks to avoid accidental reload loops.

Test plan

  • uv run pytest tests/workspace/test_workspace_manager.py tests/workspace/test_workspace_routes.py
  • npm test -- --run src/pages/Workspace/index.test.tsx
  • Manually open Workspace → Files, navigate folders quickly, and confirm the listing matches the current path
  • Open a .jsonl file under workspace outputs and confirm inline preview/edit works

Made with Cursor

xiami762 and others added 2 commits June 3, 2026 15:08
Add .jsonl to workspace text extensions with API/UI coverage, and fix
racey directory loads plus unstable toast deps that re-triggered list fetches.

Co-authored-by: Cursor <cursoragent@cursor.com>
Limit workspace/memory file reads via FLOCKS_WORKSPACE_MAX_READ_BYTES (default 2MB),
return truncation metadata, and show a read-only preview banner in the WebUI.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant