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:
Mikei386andClaude Opus 5.5 committed 2026-11-20 19:44:48 +01:00
1 parent ed2ae931f4
commit a0f6c8bb1d
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -188,7 +188,7 @@ test('error detail names the technical cause compactly', () => {
assert.equal(errorDetail({name:'AbortError',message:'x'}),'')
assert.equal(errorDetail(Error('x'.repeat(300))).length,178)
})
test('an older gateway rejecting the scope argument with 4000 falls back to the SDK list', async () => {
test('a profile backend without the canonical contract rejecting scope with 4000 falls back to the SDK list', async () => {
const scopeRejected={code:4000,message:'invalid params for session.list: scope: Extra inputs are not permitted — the client and the Hermes backend are out of sync (different versions); run `hermes update` and restart'}
assert.equal(unsupportedList(scopeRejected),true)
assert.equal(unsupportedList({code:4000,message:'permission denied'}),false)