fetchUserProfile sent `device_id: "magpie-plugin"`. AutoClaw 1.18.5's own
client (app.asar, getUserInfoWithAccessToken -> withWebInfo) sends the
device id the account signed in with (getAuthState().deviceId), a 64-hex
id. The plugin already generates such an id per login (newDeviceId) and
sends it with the login; the server writes it into the tokens' device_id
claim. user-profile now sends that id: the login's own at sign-in, the
refresh token's claim on refresh (old accounts included), "" only when no
token carries one, as refreshTokens already does.
Found by the new test: the global chat path forwarded magpie's x-magpie-*
hint headers to the vendor. They are now dropped there (the CN path builds
its own headers).
Run:
- bun test (packages/autoclaw): 36 pass, 0 fail
- bun scripts/check.mjs: ok
- no-magpie.test.mjs against HEAD's index.mjs: 2 of 2 red (device_id
"magpie-plugin", then the hint headers)
Not tried: a live run. There is no AutoClaw account to sign in with.