Skip to content

feat(app): unarchive sessions - #16001

Closed
neriousy wants to merge 4 commits into
anomalyco:devfrom
neriousy:feat/unarchive-session
Closed

feat(app): unarchive sessions#16001
neriousy wants to merge 4 commits into
anomalyco:devfrom
neriousy:feat/unarchive-session

Conversation

@neriousy

@neriousyneriousy commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes#16000

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

  • Adds view to browse archived sessions
  • Adds ability to unarchive a session

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

  • Archive a session
  • Open command palette -> Browse archived sessions
  • Open session dropdown
  • Unarchive a session

Screenshots / recordings

2026-03-04.14-16-51.mp4

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

CopilotAI review requested due to automatic review settings March 4, 2026 13:17
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate PRs Found

  1. PR feat(app): view archived sessions & unarchive #15250 - "feat(app): view archived sessions & unarchive"

  2. PR feat: add session archive/unarchive support to TUI #13961 - "feat: add session archive/unarchive support to TUI"

  3. PR Feat/view archived sessions #6769 - "Feat/view archived sessions"

Most likely duplicate: PR #15250 should be checked first, as it has the exact same feature set as the current PR #16001.

@neriousy

Copy link
Copy Markdown
ContributorAuthor

Seems like the electron version of the app is messing with the pipeline

@neriousyneriousy changed the title feat: unarchive sessionsfeat(app): unarchive sessionsMar 4, 2026

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-to-end support for viewing archived sessions and unarchiving them, spanning the server update endpoint, SDK typing, app command palette entry, and UI affordances.

Changes:

  • Allow time.archived to be set to null via session.update to unarchive a session (server + SDK typing).
  • Add UI actions/labels for archived state + “Unarchive” in the session timeline dropdown.
  • Add a command palette entry and dialog mode to browse archived sessions, plus i18n strings.

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
packages/sdk/js/src/v2/gen/types.gen.tsUpdate SDK request typing to allow archived: null.
packages/sdk/js/src/v2/gen/sdk.gen.tsUpdate SDK client method typing to allow archived: null.
packages/opencode/test/server/session-update.test.tsAdd server test covering unarchive via archived: null.
packages/opencode/src/session/index.tsAllow null archived time and persist it to DB.
packages/opencode/src/server/routes/session.tsAccept time.archived: null on PATCH /session/:sessionID.
packages/app/src/pages/session/message-timeline.tsxAdd “Archived” badge and unarchive action in session dropdown.
packages/app/src/pages/layout.tsxAdd command palette entry to browse archived sessions.
packages/app/src/components/dialog-select-file.tsxAdd archived-browsing mode and list archived sessions in the dialog.
packages/app/src/i18n/en.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/de.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/es.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/fr.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ja.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ko.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/no.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/pl.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ru.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/th.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/tr.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/zh.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/zht.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/da.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/bs.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/br.tsAdd strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ar.tsAdd strings for browsing archived sessions + archived/unarchive labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadpackages/app/src/i18n/de.ts Outdated
Comment threadpackages/app/src/pages/layout.tsx
Comment threadpackages/opencode/src/session/index.ts Outdated
neriousyand others added 2 commits March 4, 2026 14:23
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Unarchive session

2 participants

@neriousy