Skip to content

app: saving helpers leave about a minute after the app - #2226

Merged
santoshkumarradha merged 6 commits into
app/v3from
c52/quit-helpers-idle
Nov 2, 2026
Merged

santoshkumarradha merged 6 commits into
app/v3from
c52/quit-helpers-idle

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

Quitting the desktop app left a furrow serve helper running for up to ten minutes.

The app's engine now starts its saving helpers with a one-minute idle limit and sends each one a health request every 20 seconds while the engine is alive. When the engine ends, by ⌘Q or a kill, the requests stop and the helper exits through its own idle path about a minute later. No shutdown request, lock or marker is involved, so no other client can reach a closing helper.

  • While the app runs, the helper stays warm and keeps its process.
  • The health request uses the plain dial, so it never starts a helper that has gone.
  • A helper a terminal started keeps its limit, and terminal and CLI lifetimes don't change.
  • The automations clock keeps its thirty-second grace; a new test pins that.

Limits: the helper outlives the app by up to about a minute, rather than going at once. Lifecycle tests ran on Linux. Joined engine hosts and kept services have their own lifetimes and are unchanged.

Validation: with the real pinned furrow, the same process survived 70 quiet seconds while touched and exited 60.1 seconds after touches stopped, including after an engine kill. Touches never started or restarted a helper, and the default stayed at ten minutes. The red run was a compile failure on the missing setter, not a timed behavioural failure. Wider suites run in the stream's later check.

🤖 Generated with Claude Code

santoshkumarradha and others added 6 commits November 2, 2026 12:53
Pinned furrow health requests reset its idle timer. Keep only owned desktop helpers warm while the engine lives, then rely on their one-minute idle exit without shutdown or reconnect coordination.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 2, 2026 20:32
@santoshkumarradha
santoshkumarradha merged commit 2279cd4 into app/v3 Nov 2, 2026
@santoshkumarradha
santoshkumarradha deleted the c52/quit-helpers-idle branch November 2, 2026 20:32
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.

1 participant