Skip to content

feat(app): unarchive sessions#16001

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

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

Conversation

@neriousy
Copy link
Contributor

@neriousy neriousy commented Mar 4, 2026

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.

@neriousy neriousy requested a review from adamdotdevin as a code owner March 4, 2026 13:17
Copilot AI review requested due to automatic review settings March 4, 2026 13:17
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

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
Contributor Author

neriousy commented Mar 4, 2026

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

@neriousy neriousy changed the title feat: unarchive sessions feat(app): unarchive sessions Mar 4, 2026
Copy link
Contributor

Copilot AI left a comment

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
File Description
packages/sdk/js/src/v2/gen/types.gen.ts Update SDK request typing to allow archived: null.
packages/sdk/js/src/v2/gen/sdk.gen.ts Update SDK client method typing to allow archived: null.
packages/opencode/test/server/session-update.test.ts Add server test covering unarchive via archived: null.
packages/opencode/src/session/index.ts Allow null archived time and persist it to DB.
packages/opencode/src/server/routes/session.ts Accept time.archived: null on PATCH /session/:sessionID.
packages/app/src/pages/session/message-timeline.tsx Add “Archived” badge and unarchive action in session dropdown.
packages/app/src/pages/layout.tsx Add command palette entry to browse archived sessions.
packages/app/src/components/dialog-select-file.tsx Add archived-browsing mode and list archived sessions in the dialog.
packages/app/src/i18n/en.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/de.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/es.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/fr.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ja.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ko.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/no.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/pl.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ru.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/th.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/tr.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/zh.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/zht.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/da.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/bs.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/br.ts Add strings for browsing archived sessions + archived/unarchive labels.
packages/app/src/i18n/ar.ts Add strings for browsing archived sessions + archived/unarchive labels.

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

neriousy and 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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Unarchive session

2 participants