Skip to content

feat(kiloclaw): add lifecycle push notifications#2915

Merged
eshurakov merged 7 commits intomainfrom
eshurakov/cedar-nurse
Apr 30, 2026
Merged

feat(kiloclaw): add lifecycle push notifications#2915
eshurakov merged 7 commits intomainfrom
eshurakov/cedar-nurse

Conversation

@eshurakov
Copy link
Copy Markdown
Contributor

@eshurakov eshurakov commented Apr 29, 2026

Summary

  • Add KiloClaw lifecycle push notifications for instance-ready and start-failed states.
  • Route pushes through the notifications Worker and deep-link taps to instance chat.
  • Keep production ready gating on low-load checkins; allow dev checkins to fire immediately for local testing.

Verification

  • Tested locally with KiloClaw and confirmed the notifications service received the ready lifecycle dispatch.

Visual Changes

N/A

Reviewer Notes

  • Existing DO state defaults new lifecycle flags to already-sent to avoid retroactive pushes on deploy.

Comment thread services/kiloclaw/src/lib/lifecycle-push.ts Outdated
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Apr 29, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • services/notifications/src/lib/notifications-service.ts

Reviewed by gpt-5.5-20260423 · 616,645 tokens

eshurakov and others added 5 commits April 29, 2026 21:25
Drive the ready push off the existing low-load checkin signal instead of
an alarm-driven gateway probe. Trades ~10s latency for ~2min worst-case
(matches the email path) but deletes the probe window, alarm-cadence
clamp, duplicate sent-flag, and four scattered dispatch sites.

Fold the start-failed push into a single recordStartFailure helper so
analytics emit and push dispatch can't drift apart, centralize flag
resets via LIFECYCLE_NOTIFICATION_RESET, and move lifecycle-push under
durable-objects/kiloclaw-instance/ to fix the layering inversion.

Also strip unrelated wrangler types regen drift from
worker-configuration.d.ts so only the new NOTIFICATIONS binding shows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread services/notifications/src/lib/notifications-service.ts Outdated
@eshurakov eshurakov enabled auto-merge (squash) April 30, 2026 10:06
@eshurakov eshurakov merged commit f4923cf into main Apr 30, 2026
18 checks passed
@eshurakov eshurakov deleted the eshurakov/cedar-nurse branch April 30, 2026 10:08
St0rmz1 added a commit that referenced this pull request Apr 30, 2026
…e-tag

Resolves conflict in services/kiloclaw/src/durable-objects/kiloclaw-instance/index.ts:
both branches added imports near each other (this branch: syncTrackedImageTagToPostgresHelper
from ./postgres; main: lifecycle-push imports from PR #2915). Took both.
Test file auto-merged.
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.

2 participants