Proxy leases: without --session, parallel agents pick up each other's session after open
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
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
Hướng nghiên cứu
Start by tracing session creation and loading in connection.js (Ae()) and cli.js (Zt/Kt), then inspect the code that writes remote-connections/<session>.json and .active-session.json. Reproduce with two parallel agents opening proxy leases and running snapshot -i without --session. Done when each agent's commands use its own lease reliably, with a clear error if an explicit session is required.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
With a proxy lease provider (simlock), commands after open only work when every one passes --session <id>, if several agents run on the same machine.
Seen with agent-device 0.21.28 through a simlock gateway, two agents in parallel. After open, snapshot -i without --session failed with one of:
No active proxy device lease for this session; run open first.refused: lease <id> is not one of yours on this gateway(from simlock: the lease id sent belongs to the other agent's token)
A single agent alone does not show it.
Cause, from the 0.21.28 dist:
- Without
--session,connect/openmakes up a random session name,adc-<32 hex>(connection.js,Ae()). - Each save writes
<stateDir>/remote-connections/<session>.jsonand points the machine-wide<stateDir>/remote-connections/.active-session.jsonat it. - A later command without
--sessionreads thedefaultsession file. That file does not exist, so it falls back to.active-session.json(cli.js,Zt/Kt;allowActiveFallbackis true when--sessionis not given).
So the active session is "whoever saved last on this machine". With two agents, agent A's snapshot picks up agent B's session (B's lease → simlock refuses it), or a session that has no lease (→ "No active proxy device lease"). On this machine .active-session.json currently names a session whose file is already gone.
Possible fixes, in agent-device:
- Derive the default session from something per-agent (e.g.
AGENT_DEVICE_SESSION, or an agent session id such asCLAUDE_CODE_SESSION_ID/CODEX_SESSION_ID) instead of a random name plus a machine-wide pointer. - Or have
openprint the session it made and refuse to fall back to the machine-wide pointer for a proxy lease, with an error that says to pass--session.
Workaround today: set AGENT_DEVICE_SESSION per agent, or pass --session on every command.
Written by an agent.
- Ngôn ngữ chính
- TypeScript
- Star
- 5.1k
- Fork
- 339
- Merge trung bình
- 12 giờ 22 phút
- Pull request đã merge (30 ngày)
- 701
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của callstack/agent-device
-
iOS: the alert-unrecognized warning of `open --launch-url` says to `alert accept`, which grants App Tracking Transparency when that is the alertCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
callstack/agent-device#3921 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Limrun iOS fill reports success but drops non-ASCII textCó thể đã có người làm @mvanhorn đã nhận 2 ngày trước. Đang mởbug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
callstack/agent-device#3819 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
callstack/agent-device#1869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
callstack/agent-device#3929 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
callstack/agent-device#3924 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của callstack/agent-device
Issue tương tự
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefixCó thể đã có người làm @ItsDeadlyProgrammer đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
appsmithorg/appsmith#42471 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ehmpathy/rhachet-roles-bhrain#705 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Status: Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mermaid-js/mermaid#8546 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
Maintainer thường phản hồi trong vòng 1 ngày