Skip to content

Add search sessions api to private client - #12

Merged
chiragjn merged 1 commit into
mainfrom
cj-add-search-sessions-to-private-client
Jul 24, 2026
Merged

Add search sessions api to private client#12
chiragjn merged 1 commit into
mainfrom
cj-add-search-sessions-to-private-client

Conversation

@chiragjn

@chiragjn chiragjn commented Jul 24, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
New cross-agent session search surfaces data according to server-side RBAC; behavior is additive but callers may rely on visibility rules being correct on the backend.

Overview
Adds search_sessions on PrivateAgentSessionClient and AsyncPrivateAgentSessionClient, exposing the private agents search API with role-based visibility (tenant admin / agent manager / own sessions). Callers get paginated AgentSession / AgentDraftSession wrappers and can filter by agent, creator subject, session type, session id, and time range.

Refactors session list pagination so list owned and search share one generic pager path: owned-session helpers are renamed to _wrap_raw_session / _wrap_sessions_pager (and async equivalents) over Session | DraftSession instead of ListOwnedSessionsResponseDataItem-only wrappers.

Reviewed by Cursor Bugbot for commit 0dd815f. Bugbot is set up for automated code reviews on this repo. Configure here.

@chiragjn
chiragjn merged commit 00443e6 into main Jul 24, 2026
4 checks passed
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