You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new "Archived Sessions" section in Settings that allows users to:
View all archived sessions across projects (or filtered to current project)
Restore (unarchive) any archived session back to the sidebar
How did you verify your code works?
bun test
manual test:
able to view archived sessions for current project
able to view archived sessions for all projects
when a session is unarchived, the archived session list is rebuilt, and the session list in the sidebar-items is rebuilt as well (we now see this session as if it was not archived)
when a session is archived, the archived session list is rebuilt
This pr solves the same underlying issue as 6769, but differently:
Compared to PR #6769, I've placed the archived sessions feature in Settings/ Data(new tab) instead of the sidebar dropdown, added a multi-project filter (All/Current project), and used a simpler list view without the built-in search. The backend changes are in routes/session.ts instead of server.ts.
Files changed
Files
Changes
packages/app/src/components/settings-archive.tsx
New component to view/restore archived sessions
packages/app/src/components/dialog-settings.tsx
Added Archived Sessions tab in Data section
packages/opencode/src/server/routes/session.ts
Added archived filter param, nullable archived for unarchive
packages/opencode/src/session/index.ts
Added archived filter in list query, setArchived accepts null
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #6680, #12393
Type of change
What does this PR do?
Adds a new "Archived Sessions" section in Settings that allows users to:
How did you verify your code works?
Screenshots / recordings
Checklist
Comparison to #6769
This pr solves the same underlying issue as 6769, but differently:
Compared to PR #6769, I've placed the archived sessions feature in Settings/ Data(new tab) instead of the sidebar dropdown, added a multi-project filter (All/Current project), and used a simpler list view without the built-in search. The backend changes are in routes/session.ts instead of server.ts.
Files changed