Skip to content

Track session status through execution lifecycles - #133

Open
mikemikimike wants to merge 1 commit into
knight22-21:mainfrom
mikemikimike:fix/session-lifecycle-132
Open

mikemikimike wants to merge 1 commit into
knight22-21:mainfrom
mikemikimike:fix/session-lifecycle-132

Conversation

@mikemikimike

Copy link
Copy Markdown
Contributor

Summary

  • Track session status from agent execution rather than the time of the last database write.
  • Preserve status across session migration and recover interrupted runs while keeping concurrent runs active.
  • Cover interactive, CLI, worker and orchestration lifecycles, including failures and session resets.

Fixes #132
#132

Testing

  • python -m pytest tests/ -q (904 passed, 2 skipped; existing Windows subprocess decoding warnings)
  • ruff check devagent/ tests/
  • python -m build

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.

_derive_status() uses a 120-second timestamp heuristic; long-running sessions show 'completed' mid-run

1 participant