Skip to content

fix: daemon serialized task state with wrong field name#587

Merged
merencia merged 1 commit into
mainfrom
fix/background-state-sync
Jun 25, 2026
Merged

fix: daemon serialized task state with wrong field name#587
merencia merged 1 commit into
mainfrom
fix/background-state-sync

Conversation

@merencia

Copy link
Copy Markdown
Member

The daemon sent context.task.status but the parent read context.task.state, so state transitions from daemon messages never worked. Background tasks never entered 'running' state during execution.

One-line fix in daemon.ts (status -> state). Tests in both daemon.test.ts (validates serialization format) and background-scheduled-task.test.ts (validates parent transitions to running/idle).

The daemon sent context.task.status but the parent read
context.task.state, so state transitions from daemon messages (e.g.
idle to running during execution) never worked.
@merencia merencia merged commit 688d465 into main Jun 25, 2026
7 checks passed
@merencia merencia deleted the fix/background-state-sync branch June 25, 2026 16:00
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.

1 participant