agent-orchestrator/packages/plugins
Harsh Batheja be0ce0baac
fix(agent-claude-code): return idle state for freshly spawned sessions with no JSONL file (#891)
* fix(agent-claude-code): return idle state when no JSONL session file exists

Freshly spawned sessions had no Claude Code JSONL file yet (Claude Code
doesn't create it until the first conversation), causing getActivityState
to return null → displayed as 'unknown' in ao status.

When the process is running but no session file exists, return
{ state: 'idle', timestamp: now } so the dashboard shows the correct
state immediately after spawn.

Closes #883

* fix(agent-claude-code): use session.createdAt for idle timestamp when no JSONL file

Using new Date() as the timestamp caused isIdleBeyondThreshold to always
compute ~0ms, preventing stuck detection from ever firing for sessions that
hang before creating a JSONL file. Using session.createdAt correctly
represents when the session began, allowing stuck detection to eventually
trigger.
2026-04-03 19:44:59 +05:30
..
agent-aider feat: standardize agent plugins — shared hooks, activity JSONL, backfill aider/opencode (#755) 2026-04-01 21:50:07 +05:30
agent-claude-code fix(agent-claude-code): return idle state for freshly spawned sessions with no JSONL file (#891) 2026-04-03 19:44:59 +05:30
agent-codex feat: standardize agent plugins — shared hooks, activity JSONL, backfill aider/opencode (#755) 2026-04-01 21:50:07 +05:30
agent-opencode feat: standardize agent plugins — shared hooks, activity JSONL, backfill aider/opencode (#755) 2026-04-01 21:50:07 +05:30
notifier-composio chore: version packages 2026-03-20 15:47:55 +00:00
notifier-desktop chore: version packages 2026-03-20 15:47:55 +00:00
notifier-discord fix: assign 429 error to lastError so exhausted rate-limit throws immediately 2026-03-27 01:42:59 +05:30
notifier-openclaw fix: address production failure modes from adversarial review 2026-03-31 14:39:49 +05:30
notifier-slack chore: version packages 2026-03-20 15:47:55 +00:00
notifier-webhook chore: version packages 2026-03-20 15:47:55 +00:00
runtime-process chore: version packages 2026-03-20 15:47:55 +00:00
runtime-tmux fix: revert unlink script file 2026-03-29 20:34:33 +05:30
scm-github fix: added GraphQL batch PRfeat: add GraphQL batch PR enrichment for orchestrator polling enrichment for orchestrator polling (fixes #608) (#637) 2026-03-30 00:31:04 +05:30
scm-gitlab chore: version packages 2026-03-20 15:47:55 +00:00
terminal-iterm2 chore: version packages 2026-03-20 15:47:55 +00:00
terminal-web chore: version packages 2026-03-20 15:47:55 +00:00
tracker-github chore: version packages 2026-03-20 15:47:55 +00:00
tracker-gitlab chore: version packages 2026-03-20 15:47:55 +00:00
tracker-linear chore: version packages 2026-03-20 15:47:55 +00:00
workspace-clone chore: version packages 2026-03-20 15:47:55 +00:00
workspace-worktree test(workspace): add test for handling existing branch with local default-branch fallback 2026-03-29 14:16:54 +05:30