Forwarder: resolve opencode workspace/session dynamically per request (#28)
CI / build + unit (push) Successful in 32s

This commit was merged in pull request #28.
This commit is contained in:
2026-09-25 12:24:39 +02:00
parent 36021ec2e8
commit 5999159e17
8 changed files with 97 additions and 15 deletions
+2 -1
View File
@@ -452,11 +452,12 @@ export class MeshService implements OnModuleInit, OnModuleDestroy {
const maxAttempts = NOTIFY_RETRY_DELAYS_MS.length + 1;
for (let attempt = 1; ; attempt++) {
try {
await fetch(this.notifyUrl, {
const res = await fetch(this.notifyUrl, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify(body),
});
if (res && !res.ok) throw new Error('HTTP ' + res.status); // HTTP errors retry like network failures
return; // success on any attempt — same as today's single POST
} catch (err: unknown) {
const msg = (err as Error).message;