Idle leases: status, MCP and the console show last use and the idle end
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
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
Read the cited entry points: src/cli/format.ts, src/mcp session and server tools, src/contract/inbox.ts, and the listed UI models and screens. Follow the searches for ttlDeadline, lastRenewedAt, ENDED_TEXT, and isExpiring, then run the named CLI, MCP, contract, and UI model tests. Done means the status and console show last use and idle timing, idle endings appear correctly in the Inbox and viewer, MCP explains idle loss, and the documentation and listed checks pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of #1899.
Scope
simlock status prints when each lease was last used and when it will end idle. MCP lease_status shows the same, and after an idle end the next MCP tool that needs the lease says why. The console shows "last used" and the idle countdown, lists a lease about to end idle in the Inbox, and its screen viewer says why an idle-ended stream stopped.
If it goes wrong, someone sees a wrong or missing last-use time, or an idle end reads as an unexplained loss.
Technical spec
Commit 056e29880.
Rows
Behaviours: B10, B11, B12
Interfaces: I6, I7, I9 (uses I2, I4)
Existing code: X15, X16, X17, X18 (cli.mdx simlock status, mcp-tools.mdx, console.mdx)
Facts
| # | Fact | Source |
|---|---|---|
| F1 | The status lease line prints times as raw ms numbers | src/cli/format.ts:319-322 |
| F2 | A stream that ends with no known reason is opened again by the console | ui/src/state/screen.ts:238-241, ui/src/data/stream.ts:322-330 |
| F3 | The Inbox's ending items are chosen by isExpiring(ttlDeadline) and timed from ttlDeadline |
src/contract/inbox.ts:158-163, ui/src/model/inbox.ts:118-137 |
Modules touched
cli (format), mcp (session, server tools), contract (inbox.ts), ui (model leases and inbox, data stream; screens ui/src/screens/leases/summary.tsx:90, ui/src/screens/leases/inspector.tsx:100, ui/src/screens/fleet/streaming-page.tsx:173, which draw "renewed" today), website (cli, mcp-tools, console pages). Searches: rg "ttlDeadline|lastRenewedAt" src/cli src/mcp ui/src, rg "ENDED_TEXT|isExpiring".
Rules in play
ui/AGENTS.mdLayers: the rules live inui/src/model/andsrc/contract/inbox.ts; screens only draw. Look: a status is never colour alone.src/contract/AGENTS.md:inbox.tsimports nothing at run time. The push hook counts it as a shape (.agents/scripts/protocol-bump-check.mjs:12-20): the change is a listing rule with no wire shape, so the commit carriesProtocol-bump: none (inbox ending rule, no wire shape).docs/internal/agent-rules/documentation.mdrule 9: cli.mdx, mcp-tools.mdx and console.mdx describe the new fields and messages.
Tests
Seam: formatStatus through the CLI test harness (src/cli/index.test.ts), the MCP server (src/mcp/server.test.ts), the console model units (ui/src/model/leases.test.ts, ui/src/model/inbox.test.ts, src/contract/inbox.test.ts).
- B10:
simlock statuslease line shows I7: used; never used; in use; limit off. - B11: MCP
lease_statusshows the fields, and afterlease-lostreasonidlethe next tool answers I6: live lease; reasonidle; other reasons; after a new lease. - B12: the console shows last use and the idle countdown, the Inbox lists an idle-ending lease timed from
idleDeadline, and the viewer shows I9: used; never used; in use; limit off; idle nearer than TTL; TTL nearer; stream reasonidle.
Done when
pnpm test:changedandpnpm typecheckpass.pnpm exec vitest run --project ui-dom ui/src/screens/leases/leases.dom.test.tsx ui/src/screens/inbox/inbox.dom.test.tsxpasses with cases for last use, the idle countdown and an idle-ending Inbox item.pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjspasses (the diff touchessrc/contract/).- The push carries
Protocol-bump: none (inbox ending rule, no wire shape)and the protocol-bump check passes. - cli.mdx, mcp-tools.mdx and console.mdx describe the new fields and the idle messages.
Out of scope
- The fields and the
idlereason themselves (#1907); the agent-device message (#1908).
Depends on
- #1907
Written by an agent.
- Ngôn ngữ chính
- TypeScript
- Star
- 730
- Fork
- 44
- Merge trung bình
- 16 giờ 13 phút
- Pull request đã merge (30 ngày)
- 387
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 callstackincubator/simlock
-
The SIGKILL escalation test passes without escalation when its child starts later than 100 msĐang mởbug:new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
callstackincubator/simlock#1986 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug:new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
callstackincubator/simlock#1979 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
process-runner.test.ts fails four tests when a child starts 1 to 3 s lateCó thể đã có người làm @V3RON đã nhận hôm nay. Đang mởbug:new
callstackincubator/simlock#1985 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug:new
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
callstackincubator/simlock#1984 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
iOS runCommand passes timeoutMs to spawn, which ignores it, and its comment relies on that backstopĐang mởbug:new
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
callstackincubator/simlock#1980 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của callstackincubator/simlock
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
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
audacity/audacity.github.io#118 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
crxjs/chrome-extension-tools#1261 ·
-
Resources: Update work of fuzhouCó thể đã có người làm @rmt-svc đã nhận hôm nay. Đang mởresources
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
railmapgen/rmp-gallery#4245 ·
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 83/100
mike-north/AgentMonitors#717 ·
Maintainer thường phản hồi trong vòng 1 ngày