agent-orchestrator/packages/plugins
Prateek 5e4244a880 fix: prevent race condition marking new sessions as 'killed'
When a session is freshly created, the lifecycle worker may poll before
the claude process has started in the tmux session. findClaudeProcess()
returns null, getActivityState() reports "exited", and the session gets
marked as "killed" even though it's still starting up.

Add a 60-second startup grace period: if the agent process is not found
but the session was created less than 60 seconds ago, return "idle"
instead of "exited" to give the agent time to launch.

Fixes #989
2026-04-07 20:59:57 +05:30
..
agent-aider fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
agent-claude-code fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
agent-codex fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
agent-opencode fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
notifier-composio fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
notifier-desktop fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
notifier-discord fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
notifier-openclaw fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
notifier-slack fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
notifier-webhook fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
runtime-process fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
runtime-tmux fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
scm-github fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
scm-gitlab fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
terminal-iterm2 fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
terminal-web fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
tracker-github fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
tracker-gitlab fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
tracker-linear fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
workspace-clone fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30
workspace-worktree fix: prevent race condition marking new sessions as 'killed' 2026-04-07 20:59:57 +05:30