The mock agent's catalog moved from `grok-build` to `grok-4.6` in #9154;
the Hermes discovery test still asserted the old slug and failed against
current main.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`selectHermesPermissionOptionId` handled only `acceptForSession` and
`accept`, so the valid `acceptAlways` decision fell through to the
agent's reject option — a permanent approval denied the tool call.
Both persistent decisions now map to `allow_always`, with the same
`allow_once` fallback.
`turn.started` was also published before prompt validation, so a
whitespace-only prompt or an attachment set with no images announced a
turn that then failed with no terminal event, leaving consumers with a
permanently running turn. Announcement now happens after both fallible
preparation steps (validation and session configuration) and is keyed on
a session-level announced flag, so a steer that overtakes a not-yet
announced turn still announces it exactly once. Preparation failures
release the turn claim so the next sendTurn opens a fresh turn.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QingonqJgq96d3byM5qRh9
Publishing the active turn id before the awaited session configuration
let a concurrent sendTurn merge into a turn whose preparation could still
fail. Because a steer skips its own turn.started, the merged turn could
settle without one ever being emitted.
Emit turn.started in the same window that publishes the id, before the
configuration await, and compare the skip-if-match guard against the
model captured before the session record adopts this turn's selection.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QingonqJgq96d3byM5qRh9
Manual approval replies sent the canonical `allow-always`/`allow-once`/
`reject-once` literals rather than the option ids Hermes advertised, so
an agent minting opaque ids (`permit-42`) rejected the reply and the
permission-gated turn stayed blocked. Match the resolved decision by
option `kind` and answer with the advertised id, mirroring Grok, and
cancel rather than synthesize an id when the agent advertised no
matching option.
Also explains both new nodeBuiltinImport suppressions.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QingonqJgq96d3byM5qRh9
- never send the `default` product slug to session/set_model: it stands
for Hermes's own configured model, not an ACP model id, so start and
first turn failed whenever the picker still held it
- track the session's real current model at start (ACP setup's current
model when no switch happened) so the skip-if-match guard compares
against the session rather than the picker selection
- mark the session's current model as the discovered catalog default so
the resolver stops binding to the first entry
- assign the active turn id synchronously with the in-flight increment,
so a sendTurn racing session configuration merges into the running
turn instead of opening a duplicate
- use the shared withInstanceIdentity helper instead of a local copy
- add HermesAdapter tests: auto-approval option selection, mode-alias
resolution, mock ACP session flow, and the steer-merge path
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QingonqJgq96d3byM5qRh9
Hermes model selection sent session/set_model unconditionally, including
when the session was already on the requested model. Grok's ACP fix
(#9154) made the mock agent reject set_model for ids it does not
advertise as switchable, which surfaced the redundancy: selecting the
session's current model failed instead of no-opping.
applyHermesAcpModelSelection now takes the session's current model id
(read from session setup at start, tracked on the session for turns) and
sends set_model only when the selection actually changes the model.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QingonqJgq96d3byM5qRh9
Mirrors Hermes into the settings restore/disable fixtures alongside
Grok and OpenCode, drops the tautological HERMES_AUTH_METHOD_ID unit
test and un-exports the now test-only constant, and gates the Hermes
ACP probe's live-turn test behind T3_HERMES_LIVE_TURN, matching the
Grok probe's T3_GROK_LIVE_TURN gate.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The real hermes acp binary treats session/set_config_option (configId
"model") as a silent no-op — it returns {"configOptions": []} for both
valid and invalid values — so routing model selection through it never
actually changed the active model. Switch applyHermesAcpModelSelection
to the unstable session/set_model capability (runtime.setSessionModel),
matching how GrokAcpSupport already selects its models.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Hermes needs to opt back in when session history shows it was used
before, matching the existing behavior for Cursor, Grok, and OpenCode.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>