You signed in with another tab or window. Reload to refresh your session.
8000
You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OMP: ruleset not injected after /new, /resume or /fork (session_switch not handled) #291
What happens
The first session after omp starts gets the i-have-adhd-rules message. A session opened with /new in the same omp process does not, so ADHD mode is silently off there.
Cause
omp emits session_start once per process. /new, /resume and /fork emit session_switch, and the extension only listens to session_start, session_tree and session_compact.
First get_messages: 1 message (i-have-adhd-rules). After new_session: 0 messages.
Local fix
With this one line the second get_messages returns the rules message, and a prompt in the new session confirms the model sees "ADHD MODE ACTIVE":
#228 covers this together with session_branch and a before_agent_start fallback, but it is still a draft. Filing this as confirmation on a real omp runtime (the PR notes it was not run against one), and in case a smaller fix is wanted first.
Activity
fix(omp): restore ADHD mode after /new, /resume and /fork