Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Opt-in inactivity expiry for local device claims

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

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
Sôi nổi
Công nghệ
cli, node.js, typescript

Hướng nghiên cứu

Look at the local device ownership and session management code, likely around the daemon and device claim logic. Review issues #1320 and #2162 for context on the design and existing --stale release command. The new environment variable AGENT_DEVICE_SESSION_IDLE_TIMEOUT_MS needs to be integrated to track command activity and trigger session closure, similar to proxy lease expiry. Check how sessions are currently closed and claims released.

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

Mô tả

Describe the feature

An opt-in idle timeout for local sessions, off by default. For example, AGENT_DEVICE_SESSION_IDLE_TIMEOUT_MS. When a session gets no commands for that long, the daemon closes it the normal way and releases its device claim.

Motivation

Several AI agents share one computer and a few devices. Agents often finish without running close, so their claims stay live until the daemon stops. Other agents then get DEVICE_IN_USE and can't tell an active session from an abandoned one.

We know #1320 made "never reclaim a live owner because it looks inactive" a deliberate rule, and that's a good default. We're asking for this only as an opt-in for machines shared by agents. Proxy leases already expire after 5 minutes without commands, so this would bring the same behavior to local devices.

Related Issues

  • #1320: local device ownership design, including the inactivity non-goal
  • #2162: added device release --stale, without --force

Written by Claude Opus 5.5

Hope you guys take AI issues 😆

Thanks!

Ngôn ngữ chính
TypeScript
Star
4.7k
Fork
304
Merge trung bình
11 giờ 29 phút
Pull request đã merge (30 ngày)
514

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 callstack/agent-device

Tất cả issue của callstack/agent-device

Issue tương tự

Thêm issue về TypeScript

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.