Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 26 Jul 05:58
· 30 commits to main since this release

Features

  • pollLog FIFO cap: SENTINEL_MAX_POLL_LOG env var limits per-task poll history entries. Oldest trimmed first. Unset/zero/negative = unlimited.
  • Task TTL auto-cleanup: SENTINEL_TASK_TTL_MS env var auto-removes completed/errored/cancelled tasks from memory after N ms. Unset/zero/negative = never cleanup.
  • Structured logging: All sentinel events (poll, error, timeout, completion, cancel, cleanup) now emit to opencode log via client.app.log() at debug/info/warn/error levels. Log failures are non-fatal.

Internal

  • New src/services/sentinel-config.ts for env var parsing
  • New src/services/logger.ts wrapping opencode client.app.log()
  • cleanup() now clears both interval timers and TTL timeout timers
  • 69 unit tests (up from 47) covering config, logger, and TTL integration
  • E2E testing framework: 3-group concurrent pty_spawn tests with prompt templates in AGENTS.md
  • README updated with environment variable configuration section

Full Changelog: v0.3.2...v0.4.0