opencode: notifier wrapper gains the packet id (id <n>)

This commit is contained in:
2026-09-25 15:06:31 +00:00
parent 34e7bfe0bb
commit 88b617f8b7
4 changed files with 30 additions and 23 deletions
+2 -2
View File
@@ -49,10 +49,10 @@ export class OpencodeService {
* up to RETRY_DELAYS_MS.length + 1 attempts total; the last failure logs `opencode notify dropped
* after N attempts`. No-op when disabled (no credentials).
*/
async notify(text: string, from?: number): Promise<void> {
async notify(id: number, text: string, from?: number): Promise<void> {
if (!this.enabled) return;
const msg =
'New mesh message' +
`New mesh message (id ${id})` +
(from != null ? ` from node ${from}` : '') +
`: "${text}" — please react to it.`;
const maxAttempts = RETRY_DELAYS_MS.length + 1;