Skip to content

feat: add session archival and filtering support#86

Merged
davideast merged 1 commit intomainfrom
jules-core-session-archive-filter-17600129499379175013
Feb 25, 2026
Merged

feat: add session archival and filtering support#86
davideast merged 1 commit intomainfrom
jules-core-session-archive-filter-17600129499379175013

Conversation

@davideast
Copy link
Collaborator

Implemented session archival and filtering as described in Issue #78.

Changes:

  1. Modified packages/core/src/types.ts to include archive() and unarchive() in SessionClient interface.
  2. Modified packages/core/src/session.ts to implement archive() and unarchive(). These methods call the respective API endpoints and update the local storage cache to reflect the change immediately (Write-Through).
  3. Modified packages/core/src/sessions.ts to add filter to ListSessionsOptions and pass it as a query parameter in SessionCursor.fetchPage.
  4. Updated tests to verify the new functionality using MSW mocks.

Verification:

  • Ran npm test tests/session.test.ts tests/sessions.test.ts in packages/core. All tests passed.
  • Verified that API requests are constructed correctly with the expected URL and parameters.

PR created automatically by Jules for task 17600129499379175013 started by @davideast

- Added `archive()` and `unarchive()` methods to `SessionClient` in `packages/core/src/session.ts` and `packages/core/src/types.ts`.
- Added `filter` option to `ListSessionsOptions` in `packages/core/src/sessions.ts` and updated `SessionCursor` to use it.
- Added tests for `archive()`, `unarchive()` and `filter` in `packages/core/tests/session.test.ts` and `packages/core/tests/sessions.test.ts`.

Fixes #78

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@davideast davideast merged commit 77dd4c1 into main Feb 25, 2026
3 checks passed
@davideast davideast deleted the jules-core-session-archive-filter-17600129499379175013 branch February 25, 2026 16:26
davideast added a commit that referenced this pull request Feb 25, 2026
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.

1 participant