feat(session,app,tui): restore and browse archived sessions#18
Merged
Conversation
Widen the unarchive path so a null/cleared archived timestamp reactivates a session end to end: UpdatePayload accepts time.archived = null, setArchived converts null to undefined before patch/publish, the core projector coerces time_archived to null on update, and the app event-reducer increments sessionTotal exactly once per stable root id on unarchive (and decrements idempotently on archive), tracked via a new optional State.archivedRoots map. Co-authored-by: yui-soul <yui-soul@users.noreply.github.com>
Add an unarchive action across the app and TUI: the layout exposes a shared unarchiveSession helper that clears the archived timestamp and navigates to the restored session, wired into the file picker and session list. Includes i18n strings for all locales and the supporting layout helpers. Co-authored-by: yui-soul <yui-soul@users.noreply.github.com>
Add a global discovery dialog that lists archived sessions across all projects and restores one on selection. The cross-project list is fetched once on open and cached, with a distinct loading state, an explicit in-dialog error surface, and a single error toast per failure. Co-authored-by: yui-soul <yui-soul@users.noreply.github.com>
listByProject (the instance-scoped Session.list used by the sidebar) had no time_archived filter, so archived sessions consumed LIMIT-window slots and pushed active sessions out of the sidebar (anomalyco#24850). Add an archived?: boolean to ListInput and filter out archived sessions unless explicitly requested, mirroring the existing guard in listGlobal. Closes anomalyco#24850 Co-authored-by: yui-soul <yui-soul@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Internal fork PR — merges
feat/unarchive-sessionsintodev.Upstream contribution: anomalyco#32337
Closes anomalyco#24153 · anomalyco#26078 · anomalyco#13463 · anomalyco#29517 | Fixes anomalyco#24850