feat: sessions search/list/get and --agent/--project filters - #1
Open
muqsitnawaz wants to merge 2 commits into
Open
feat: sessions search/list/get and --agent/--project filters#1muqsitnawaz wants to merge 2 commits into
muqsitnawaz wants to merge 2 commits into
Conversation
Split the one-shot root query into sessions search, list, and get so the read API matches how the other CLIs are documented. Keep bare sessions [query] as the same list/FTS/id lookup. --agent/--agents/-a and --project/-p filter every verb against the existing index columns.
Replace sessions get with sessions view. Search, list, and view take --version, --account (email, org name, or label substring), and --email (account or actor). --agent claude@2.1.263 still sets both axes.
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.
Why
The v1 CLI stuffed list, FTS, and id lookup into one root command, so the command reference had a single card and
--agentwas easy to miss. This makes the read API look like the other CLIs.What
sessions search [query...]— FTSsessions list— recent rowssessions get <id>— id / short-id lookup-a/--agent,--agents,-p/--project,-n/--limit,--jsonsessions [query]is unchangedresume/stop/inject stay on
agents sessions.Proof
bash scripts/test.sh— 8/8sessions search --agent grok --limit 3 --json→ 3 grok rowssessions list -a claude -n 2 --json→ 2 claude rowsDocs: https://share.getrush.ai/muqsitnawaz/sessions-cli-command-reference