IW-687: An attached session is no longer killed after 5 minutes #760
No reviewers
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!760
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-687"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
iw startandiw openattach the terminal to a tmux or herdr session. That attach ran underProcessAdapter.DefaultTimeoutMs(5 minutes), so os-lib sent SIGTERM to the attach client at 300 s. The user dropped back to the shell andiwreported a false error. The session itself survived.Defects fixed
ProcessAdapter.DefaultTimeoutMs.ProcessAdapter.NoTimeout = -1(os-lib: wait until the child exits).streamOrExplainhas no default fortimeoutMs, so each call site states its bound.TmuxAdapter.attachSessionandHerdrAdapter.attachSessionpassNoTimeout.TmuxAdapter.switchSessionpassesDefaultTimeoutMsexplicitly (switch-client returns at once).docs/api/Process.mdupdated.Testing
core/test/ProcessTest.scala. The mutationNoTimeout = 0makes both fail.IW_SLOW=1) tests:test/attach-unbounded-adapters.bats(both adapters returnRight(())after a 310 s fake attach) andtest/attach-unbounded.bats(real tmux client still attached after 310 s,iw openexits 0 after detach). One local run each passed. WithoutIW_SLOWthey skip.Follow-ups
Four reporting defects in
runStreaming/streamOrExplainare filed as #759.Release notes
Připojení do terminálové relace přes
iw startaiw opense už po pěti minutách samo nepřeruší. Platí pro tmux i herdr; připojení končí až vaším odpojením a bez chybového hlášení. Seeproject-management/issues/IW-687/release-notes.md.Closes #687
🤖 Generated with Claude Code
Issue: IW-687 Phase: 1 - Terminal attach is bounded by ProcessAdapter.DefaultTimeoutMs This commit marks the checkpoint for phase 1 context generation. Use dx-fix IW-687 to return to this point. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Terminal attach is bounded by ProcessAdapter.DefaultTimeoutMs Artifacts: - phase-01-tasks.md 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>