An attached session is killed after 5 minutes, because attachSession runs under ProcessAdapter's default timeout #687

Closed
opened 2026-10-03 00:32:11 +00:00 by claude · 1 comment
Member

Found during IW-599.

TmuxAdapter.attachSession (core/adapters/Tmux.scala:99) and HerdrAdapter.attachSession (core/adapters/Herdr.scala:217) call ProcessAdapter.streamOrExplain without a timeoutMs. streamOrExplain passes ProcessAdapter.DefaultTimeoutMs (5 minutes, core/adapters/Process.scala:24) to runStreaming, which gives it to os.proc(...).call(timeout = ...).

An attach is interactive and has no natural time limit. A human who stays in the session that iw start or iw open attached to longer than 5 minutes has the attach process killed, and the command reports "Could not attach to session ...: it ran out of time and was stopped".

Expected: the attach is not bounded by a timeout.

Found during IW-599. `TmuxAdapter.attachSession` (`core/adapters/Tmux.scala:99`) and `HerdrAdapter.attachSession` (`core/adapters/Herdr.scala:217`) call `ProcessAdapter.streamOrExplain` without a `timeoutMs`. `streamOrExplain` passes `ProcessAdapter.DefaultTimeoutMs` (5 minutes, `core/adapters/Process.scala:24`) to `runStreaming`, which gives it to `os.proc(...).call(timeout = ...)`. An attach is interactive and has no natural time limit. A human who stays in the session that `iw start` or `iw open` attached to longer than 5 minutes has the attach process killed, and the command reports "Could not attach to session ...: it ran out of time and was stopped". Expected: the attach is not bounded by a timeout.
Author
Member

Intake: agent-ready
Workflow: diagnostic
Reason: all gates passed
Analysis: project-management/issues/IW-687/analysis.md on branch IW-687

Intake: agent-ready Workflow: diagnostic Reason: all gates passed Analysis: project-management/issues/IW-687/analysis.md on branch IW-687
mph closed this issue 2026-10-08 06:22:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
iterative-works/iw-cli#687
No description provided.