Skip to content

fix(async-tasks): inject completed tasks in prompt() for auto-wakeup#195

Merged
randomm merged 1 commit intodevfrom
fix/issue-194-auto-wakeup-notification
Feb 17, 2026
Merged

fix(async-tasks): inject completed tasks in prompt() for auto-wakeup#195
randomm merged 1 commit intodevfrom
fix/issue-194-auto-wakeup-notification

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Feb 17, 2026

Fixes #194

Root Cause

enableAutoWakeup() called SessionPrompt.prompt({ parts: [] }) with empty parts. Completed task results were never injected because prompt-async.ts helper functions were dead code (never imported).

Fix

  • Inject completed tasks directly in prompt.ts before message creation
  • Delete dead code prompt-async.ts
  • Add missing criticalCode markers to manifest: enableAutoWakeup, triggerWakeup, autoWakeupSubscribers, hasUndeliveredCompletedTasks, getAndClearCompletedTasks

Tests

  • Type check: ✅ 0 errors
  • Tasks test: ✅ 24/24
  • Session tests: ✅ 113/113
  • Fork verify: ✅ 92/92

@randomm randomm merged commit a5089e5 into dev Feb 17, 2026
1 check passed
@randomm randomm deleted the fix/issue-194-auto-wakeup-notification branch February 17, 2026 21:54
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.

fix(async-tasks): auto-wakeup fires but prompt-async.ts integration is missing

1 participant