feat: add ricochet app instances {id} and ricochet app stop-instance {id} {pid}#135
Conversation
|
The following semantics would feel more natural to me: To me, any hyphen in a subcommand or lower feels somewhat unnatural. The detailed issue is that it's a mix of "action" (stop) and "scope" (instance) (for |
|
@pat-s any idea why crow is immediately failing the
|
|
Got it. Had to restart the docker worker |
I've added some hardening recently in Crow to make the agent more resilient and recover on it's own - hopefully! |
pat-s
left a comment
There was a problem hiding this comment.
Looking at it again, I wonder if we should just simplify to
ricochet app list
ricochet app stop <ID> <PID>
The additional instance sub-menu isn't of immediate use to me right now.
This current state is certainly better than the previous one with stop-instance though it feels like that we would need another submenu besides instance to justify this one.
WDYT?
|
Lol okay so you want |
|
How about having |
|
I think we're getting a bit of scope creep or mixing concepts right now. What about:
An app will have multiple instances supporting it. We want to be able to list these instances to get the PID, connection count, age, etc. I think |
|
One point is about re-using existing/common terms in/from other sub-commands to make usage easier. I don't think Both could/should then list all existing app instances and, if known, their respective servers they live on. In a brief and concise format without too much detail. These details can be shown with the respective app detail commands then. I see why this might seem to go a bit off-topic but I don't think it necessarily is - it's a fundamental discussion which lays the foundation for the design of other related sub-commands then. I am OK with the semantics of |
|
I don't think If |
"If app is the individual item subcommand then the list should list app instances of the selected ricochet server." Agreed? |
|
Maybe? The selected ricochet server is always a requirement for the cli. I don't think we should query multiple servers at the same time. If there is an app with |
|
Alright let's do it then :) I'll "complain" later on if it "feels wrong" 🤓 |

This PR adds two new commands:
ricochet app instancesto list instances for an appricochet app stop-instancewill stop a running instancericochet app instancesTable output
json output
cli ⚡ ricochet app instances 01KP1BV2ZFXAR1HQF5C1KCSATE -S vm --format json [ { "instance_id": "01KPXTDBN2SD3K3FW4JWB9MZ94", "connections": 8, "created_at": "2026-04-23T18:42:37.095920877Z", "last_connection": "2026-04-23T18:42:42.181Z" }, { "instance_id": "01KPXTDC819527KBJGBR8320C2", "connections": 8, "created_at": "2026-04-23T18:42:37.681104595Z", "last_connection": "2026-04-23T18:42:46.644Z" }, { "instance_id": "01KPXTDCMKDTB22ZJQ0GVDM0QF", "connections": 4, "created_at": "2026-04-23T18:42:38.006430514Z", "last_connection": "2026-04-23T18:42:48.882Z" }, { "instance_id": "01KPXTD21R1Q162PRWFS39572Z", "connections": 8, "created_at": "2026-04-23T18:42:27.182329136Z", "last_connection": "2026-04-23T18:42:36.266Z" } ]yaml output
ricochet app stop-instance