Skip to content

docs(features): say when a container's idle period starts after a warm session - #460

Merged
makeitfutureDev merged 1 commit into
betafrom
docs/container-idle-warm-session
Dec 3, 2026
Merged

makeitfutureDev merged 1 commit into
betafrom
docs/container-idle-warm-session

Conversation

@makeitfutureDev

Copy link
Copy Markdown
Owner

What

FEATURES.md, container lifecycle ("Idle is measured in leases, not in quiet"): states that an engine exec's exit also restarts a container's idle clock, and that a warm Claude session — which holds no lease of its own — exits at the end of its keep-alive (SESSION_KEEPALIVE, default 10 min), so after a Claude turn that left a warm session the container stops roughly keep-alive + containerIdleMinutes later (plus up to one 60 s sweep). One-shot runs (Codex, or Claude without warm sessions) start the idle period when they exit.

Why

A QA idle-stop check expected the stop containerIdleMinutes after a Claude turn and saw it about one keep-alive later. The source behaves as now documented: reaper.touch on exec close (src/runtimes/container/exec.js), lastActivity reset (src/runtimes/container/reaper.js touch/isIdle), warm idle timer (src/engines/persistent-session.js, keep-alive from run.js keepAliveMs). No behavior change.

Checks

  • npm run check:static: passed (1481 files).
  • npm run check:dco -- origin/beta..HEAD: passed.
  • No CHANGELOG line: docs-only, and the 0.7.1 section has no docs subsection.

🤖 Generated with Claude Code

…m session

The container lifecycle section said only that the idle clock starts when
the last lease is released. An engine exec's exit also restarts it, and a
warm Claude session (no lease of its own) exits at the end of its
keep-alive, so after such a turn the container stops about keep-alive +
containerIdleMinutes later. State that, with the source locations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tiberiu Socaci <tsocaci@makeitfuture.com>
@makeitfutureDev
makeitfutureDev merged commit bc3ae2c into beta Dec 3, 2026
5 checks passed
@makeitfutureDev
makeitfutureDev deleted the docs/container-idle-warm-session branch December 3, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants