Forwarder: resolve opencode workspace/session dynamically per request #28

Merged
kamilkrzywda merged 1 commits from feat/auto-session-resolve into main 2026-09-25 12:24:40 +02:00
Owner

Workspace UUIDs rotate on opencode host restart (broke the chain today — every notify got HTTP 404). Forwarder now resolves the mesh-bot workspace from GET /api/workspaces per request and picks the freshest session in it; FORWARDER_SESSION pins a specific session when set. Also: postNotify now throws on non-ok HTTP so forwarder 5xx is retried like network failures (+1 spec, 62 total).

Workspace UUIDs rotate on opencode host restart (broke the chain today — every notify got HTTP 404). Forwarder now resolves the mesh-bot workspace from GET /api/workspaces per request and picks the freshest session in it; FORWARDER_SESSION pins a specific session when set. Also: postNotify now throws on non-ok HTTP so forwarder 5xx is retried like network failures (+1 spec, 62 total).
kamilkrzywda added 1 commit 2026-09-25 12:23:39 +02:00
kamilkrzywda merged commit 5999159e17 into main 2026-09-25 12:24:40 +02:00
kamilkrzywda deleted branch feat/auto-session-resolve 2026-09-25 12:24:40 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/MeshBot#28