Skip to content

fix(app): scope reset archive to workspace#26102

Open
Destreyf wants to merge 1 commit intoanomalyco:devfrom
Destreyf:fix/reset-archive-workspace
Open

fix(app): scope reset archive to workspace#26102
Destreyf wants to merge 1 commit intoanomalyco:devfrom
Destreyf:fix/reset-archive-workspace

Conversation

@Destreyf
Copy link
Copy Markdown

@Destreyf Destreyf commented May 7, 2026

Issue for this PR

Closes #26101

Type of change

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

What does this PR do?

Resetting a workspace archives sessions after listing them for that directory. That list can include sessions from other worktrees, so the reset flow needs a final directory check before archiving anything.

This filters the archive targets to active sessions whose stored directory matches the workspace being reset. The reset confirmation count uses the same filter so the dialog matches what will happen.

How did you verify your code works?

Ran these from packages/app:

  • bun test src/pages/layout/helpers.test.ts
  • bun typecheck

The push hook also ran bun turbo typecheck successfully.

Screenshots / recordings

Not a UI change.

Checklist

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

@Destreyf Destreyf requested a review from adamdotdevin as a code owner May 7, 2026 01:22
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workspace reset archives sessions from other worktrees

1 participant