fix(notifier): migrate opencode notifier to v2 routes (v0.21.11) #54

Merged
kamilkrzywda merged 1 commits from fix/opencode-v2-notifier into main 2026-10-05 15:25:38 +02:00
Owner

CodeNomad's per-workspace instance proxy was upgraded and now only serves opencode v2 /api/* routes — the v1 /session/... routes 403, which broke all notifications.

  • Discovery: GET {api}{proxyPath}/api/session (v2 {data,cursor} envelope) instead of GET {base}/session; sessions filtered by location.directory, most-recent time.updated wins.
  • Send: POST {api}{proxyPath}/api/session/{sid}/prompt with a {text} body instead of POST {base}/session/{id}/message with {parts:[...]}.
  • v2 returns 2xx immediately, so the 15 s read-timeout-as-delivered branch is kept only as a harmless safety net.

Updated the spec to the v2 routes/body/envelope (incl. a directory-filter assertion) and kept AGENTS.md in sync.

Verification: npm run build clean; npm test -> 15 files / 180 tests, all passing.

Version bumped to 0.21.11; changelog entry added.

CodeNomad's per-workspace instance proxy was upgraded and now only serves opencode v2 `/api/*` routes — the v1 `/session/...` routes 403, which broke all notifications. - **Discovery**: `GET {api}{proxyPath}/api/session` (v2 `{data,cursor}` envelope) instead of `GET {base}/session`; sessions filtered by `location.directory`, most-recent `time.updated` wins. - **Send**: `POST {api}{proxyPath}/api/session/{sid}/prompt` with a `{text}` body instead of `POST {base}/session/{id}/message` with `{parts:[...]}`. - v2 returns 2xx immediately, so the 15 s read-timeout-as-delivered branch is kept only as a harmless safety net. Updated the spec to the v2 routes/body/envelope (incl. a directory-filter assertion) and kept `AGENTS.md` in sync. **Verification**: `npm run build` clean; `npm test` -> 15 files / 180 tests, all passing. Version bumped to 0.21.11; changelog entry added.
kamilkrzywda added 1 commit 2026-10-05 14:50:17 +02:00
fix(notifier): migrate opencode notifier to v2 routes (v0.21.11)
CI / build + unit (pull_request) Successful in 46s
5506fb9330
CodeNomad's per-workspace instance proxy was upgraded and now only
serves opencode v2 /api/* routes; the v1 /session/... routes 403, which
broke all notifications.

- Discovery: GET {api}{proxyPath}/api/session (v2 {data,cursor} envelope)
  instead of GET {base}/session; sessions filtered by location.directory
  and the max time.updated entry is picked.
- Send: POST {api}{proxyPath}/api/session/{sid}/prompt with a {text}
  body instead of POST {base}/session/{id}/message with {parts:[...]}.
- v2 returns 2xx immediately, so the 15 s read-timeout-as-delivered
  branch is kept only as a harmless safety net.
- Updated the spec to the v2 routes/body/envelope (incl. a
  directory-filter assertion) and kept AGENTS.md in sync.
kamilkrzywda merged commit 84915fe314 into main 2026-10-05 15:25:38 +02:00
kamilkrzywda deleted branch fix/opencode-v2-notifier 2026-10-05 15:25:38 +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#54