diff options
| author | Adam Malczewski <[email protected]> | 2026-06-02 14:45:27 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-02 14:45:27 +0900 |
| commit | 58b985b9c82c7c1acb98ac8799b8409d5c403642 (patch) | |
| tree | dcc872cf47650a10dae8f9bf4bcd03bebf6c4bf5 /packaging/[email protected] | |
| parent | 7c527b4d8a72159954405e720d5bf776802dc0ff (diff) | |
| download | dispatch-58b985b9c82c7c1acb98ac8799b8409d5c403642.tar.gz dispatch-58b985b9c82c7c1acb98ac8799b8409d5c403642.zip | |
fix(wake): probe with genuine Claude Code request shape so OAuth wakes succeed
The wake probe POSTed a bare { model, messages } body with no system[]
identity. Anthropic validates system[] on OAuth (Pro/Max) subscription
requests and rejects any that lack the verbatim Claude Code identity, so
every scheduled wake (and the manual Wake-now button) failed silently —
surfacing as a blank '— failed' status that then burned the retry budget.
- Add pure buildWakeProbeBody(model) in @dispatch/core mirroring a genuine
Claude Code request (billing header block + identity block + 'hi'), with
a unit test for its shape.
- wakeAllClaudeAccounts now sends that body plus the CLI session/request-id
headers, and records 'HTTP <status>: <message>' on failure so the panel
never shows a bare 'failed' and breakage stays debuggable.
Diffstat (limited to 'packaging/[email protected]')
0 files changed, 0 insertions, 0 deletions
