Problem Description
Currently, the sidebar groups sessions by project (cwd). Users can easily add a new project workspace via the directory picker when creating a new session, but there is no way to remove or delete a project from the sidebar once it has been added.
To remove a project, users currently have to either:
- Manually delete every single session inside the project one by one through the UI.
- Go to
~/.pi/agent/sessions/ and manually rm -rf the encoded project directory.
This makes workspace management cumbersome, especially when dealing with temporary projects, test directories, or outdated projects.
Proposed Solutions
Any of the following (or a combination) would greatly improve the UX:
-
Delete Project (Batch Delete Sessions)
- Add a context menu or a "Delete" button (trash icon) on project workspace hover.
- Show a confirmation dialog: "This will delete all N sessions under this project. Project files on disk will not be affected."
- Behind the scenes, delete all session
.jsonl files (or the project session folder) and invalidate the session list cache.
-
Hide / Archive Project (Soft Removal)
- Allow hiding a project from the sidebar without deleting session history on disk, perhaps persisted in local storage or a config file.
-
Empty Project Cleanup
- Automatically clean up / hide projects that have no active sessions.
Environment
@agegr/pi-web: 0.8.11+
- OS: macOS
Problem Description
Currently, the sidebar groups sessions by project (
cwd). Users can easily add a new project workspace via the directory picker when creating a new session, but there is no way to remove or delete a project from the sidebar once it has been added.To remove a project, users currently have to either:
~/.pi/agent/sessions/and manuallyrm -rfthe encoded project directory.This makes workspace management cumbersome, especially when dealing with temporary projects, test directories, or outdated projects.
Proposed Solutions
Any of the following (or a combination) would greatly improve the UX:
Delete Project (Batch Delete Sessions)
.jsonlfiles (or the project session folder) and invalidate the session list cache.Hide / Archive Project (Soft Removal)
Empty Project Cleanup
Environment
@agegr/pi-web: 0.8.11+