fix(background-agent): address Oracle review feedback
- Remove unused storage.ts (dead code, runtime inconsistency) - Change persist() to sync void (debounce semantics clarity) - Add type guards in handleEvent() for event safety - Remove unused 'pending' from BackgroundTaskStatus 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
@@ -207,7 +207,7 @@ Only running tasks can be cancelled.`
|
||||
task.status = "cancelled"
|
||||
task.completedAt = new Date()
|
||||
|
||||
await manager.persist()
|
||||
manager.persist()
|
||||
|
||||
return `✅ Task cancelled successfully
|
||||
|
||||
|
||||
Reference in New Issue
Block a user