You signed in with another tab or window. Reload to refresh your session.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
bug(context-pivot): restore tool visibility at session start #744
context-pivot decides whether to expose its tool from context usage, but its session_start handler discards the supplied ExtensionContext and calls setVisibleForContext() without it. After /new, /resume, or /reload, a session whose current context is already at the 30k threshold has the tool hidden until a later agent_start event.
Minimal reproduction
Start or resume a TUI session whose getContextUsage().tokens is at least 30,000.
Observe session_start.
The tool is disabled because the handler evaluates no usage.
Start an agent turn; only then is context_pivot enabled.
Expected behavior
Tool availability should match the active session's context immediately after session_start.
Proposed scope
Pass the supplied context into the existing visibility calculation and add a lifecycle regression for above-threshold session start.
I am claiming this issue. The current session-start handler discards its supplied context despite the existing visibility helper accepting one; I will add the threshold regression and open a focused fix.
Activity
outlier27-cell commentedon Oct 11, 2026
I am claiming this issue. The current session-start handler discards its supplied context despite the existing visibility helper accepting one; I will add the threshold regression and open a focused fix.