FR: spy on a session

Đang mở
#363 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách shpool biểu diễn trạng thái terminal và tạo đầu ra trong quá trình tiếp tục phiên. Xác định điểm truy cập chỉ đọc nhỏ nhất để cung cấp snapshot hiện tại mà không tiếp tục hoặc đính kèm vào phiên, bao gồm cả hành vi khi một client khác đang được đính kèm. Được coi là hoàn thành khi một lệnh có thể lấy trạng thái đã render hiện tại của phiên mà không thay đổi phiên.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

AI Policy Ack
Ack

What new feature do you want?
Since shpool keeps an in-memory representation of the terminal state, it would be great if there were a command to "spy" on the session – to get the same output shpool would generate at session resume, without actually resuming the session.

This is similar to #40 but is a smaller ask (read-only snapshot of current state). Of course, if #40 was implemented, this could potentially be done via read-only attach then detach again as soon as the initial re-render is finished. But possibly this feature could be implemented without without doing #40, and with significantly less work than #40 would require.

Use case: I have a web app which shows running sessions and let's me launch a new one. (It doesn't attach to them, I need to use a terminal emulator for that.) It would be great if I could "peek" from the web app at the current state of the session (say it is running some long-running AI agent, I want to see what the agent is doing). Maybe I'm already attached to the session from a terminal emulator on my laptop sitting on my desk, but I'm checking the webapp from my phone...

Ngôn ngữ chính
Rust
Star
2k
Fork
70
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của shell-pool/shpool

Tất cả issue của shell-pool/shpool

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.