Repository navigation
feat(cli): add ao session ls/get/kill/restore (#90) - #92
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a new ao session command group to the Go CLI, providing wrappers around existing daemon session endpoints to list, inspect, and control sessions from the terminal.
Changes:
- Introduces
ao session ls/get/kill/restorewith consistent-p/--projectscoping support. - Adds session listing filters (
--all,--include-terminated) and JSON output forls/get. - Extends the CLI HTTP client helper to support both GET and POST JSON calls, and adds tests for core session command flows.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| backend/internal/cli/session.go | Implements the session command and its ls/get/kill/restore subcommands, output formatting, filtering, and project scoping. |
| backend/internal/cli/session_test.go | Adds unit tests for session command behavior (filtering, scoping, and basic happy paths). |
| backend/internal/cli/root.go | Wires the new session command into the CLI root. |
| backend/internal/cli/client.go | Refactors daemon call helper to support both GET and POST JSON requests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
harshitsinghbhandari
force-pushed
the
feat/issue-90-session-cli
branch
from
June 2, 2026 23:18
67218d9 to
2e524b3
Compare
11 of 14 tasks
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.
Closes #90
Summary
ao sessionparent command withls,get,kill, andrestoresubcommands.-p, --project <id>to every session subcommand;lssends it as the list filter and get/kill/restore use it to scope the session before mutating.--all,--include-terminated, and--json, including default hiding of orchestrators and terminated sessions.Intentionally skipped from original CLI
ao session cleanup,claim-pr, andremapbecause the rewrite backend does not support them yet.ao session attach/ terminal UI behavior because it was outside Port missing CLI commands from original AO (read + lifecycle surface) #90 scope.Validation
cd backend && go build ./...cd backend && PATH=/usr/bin:/bin:/usr/sbin:/sbin /opt/homebrew/bin/go test -race ./...cd backend && go vet ./...Per user instruction, I did not run
npx @redwoodjs/agent-ci run.