({ threadId })
| 392 | } |
| 393 | |
| 394 | async getThreadGoal({ threadId }) { |
| 395 | const current = this.threadGoals.get(threadId) ?? null; |
| 396 | return current ? { ...current } : null; |
| 397 | } |
| 398 | |
| 399 | async setThreadGoal({ threadId, objective = null, status = null }) { |
| 400 | if (!this.threads.has(threadId)) { |