Skip to content

fix(gateway): clear queued reload skills notes on new/resume/branch#19431

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a
May 4, 2026
Merged

fix(gateway): clear queued reload skills notes on new/resume/branch#19431
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

@teknium1 teknium1 commented May 4, 2026

Salvage of #19372 by @molvikar onto current main.

Summary

Stale gateway state leak: the one-shot note queued by /reload-skills in self._pending_skills_reload_notes[session_key] could survive session-boundary flows like /new, /resume, and /branch and get prepended to the next message in a different conversation branch. Drop the note inside _clear_session_boundary_security_state so it's scoped to the session that requested it.

Changes

  • gateway/run.py: clear _pending_skills_reload_notes[session_key] in _clear_session_boundary_security_state (+6/-0)
  • tests: regressions covering resume/branch session-boundary clears

Validation

scripts/run_tests.sh tests/gateway/test_session_boundary_security_state.py → 5 passed

Original PR: #19372

@teknium1 teknium1 merged commit 74636f9 into main May 4, 2026
9 of 10 checks passed
@teknium1 teknium1 deleted the hermes/hermes-8c54fd4a branch May 4, 2026 00:00
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery tool/skills Skills system (list, view, manage) labels May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants