Opt-in inactivity expiry for local device claims
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cli, node.js, typescript
- Domain
- backend-api-design, cli, devtools
Research direction
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.
Written by the indexing model from the issue text.
Description
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!
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 304
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 514
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstack/agent-device
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
callstack/agent-device#2842 ·
-
docs(ios-runner): RUNNER_PROTOCOL.md points at the wrong file and omits recovery and busy codes Opendocumentation good first issue ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
callstack/agent-device#2797 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
callstack/agent-device#1869 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
callstack/agent-device#2856 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
callstack/agent-device#2853 ·
All issues in callstack/agent-device
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100