Correct the explanation of the two session.list contracts
The 4000 "scope: Extra inputs are not permitted" refusal does not mean an outdated gateway: Hermes registers a canonical session.list (scope, cursor, picker) on the gateway runtime and a plain one on standalone profile backends. Verified on the latest-desktop image of 2026-11-19. README, code comment and test name now say so; behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ed2ae931f4
commit
a0f6c8bb1d
3 files changed
+4
-4
No files matched your search
@@ -64,7 +64,7 @@ function normalized(r) {
|
||||
// Errors that cross the desktop IPC bridge can lose their JSON-RPC frame (code/data) and keep only the
|
||||
// message (see hermes-bots/rpc-errors.ts), so the message is the fallback signal when no numeric code survived.
|
||||
const UNSUPPORTED_MESSAGE = /method not found|unknown method|no such method|-3260[12]\b|invalid[ _-]?params/i
|
||||
// Older gateways reject the unknown `scope` argument with 4000 and a message only, e.g.
|
||||
// Standalone profile backends (non-canonical session.list contract) reject `scope` with 4000 and a message only, e.g.
|
||||
// "invalid params for session.list: scope: Extra inputs are not permitted — … out of sync …".
|
||||
const INVALID_PARAMS_CODES = new Set([4000,4001])
|
||||
export function unsupportedList(error) {
|
||||
|
||||
Reference in new issue
Block a user