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
Follow-up to #75: state.sessions, per-session calls, and frontierInjectedSessions remain unbounded; repokey re-declares SESSION_CAP #224
agent:readyHuman-approved for autonomous work by ocsi-fixerbugSomething isn't workingfix:pr-openocsi-fixer opened a PR for this ticketreleasedseverity:mediumReal but narrow: robustness, hygiene, or gated behind multiple preconditionsspec:incompleteNot executable: missing repro or no measurable acceptance criterion. Author: add it, or close.
#75 bounded the epoch/latestPrompt/sessionStats caches, but three ledgers that grow with work remain unbounded:
state.sessions: Map<string, SessionState> (src/state.ts:102) - session() inserts on first touch and never removes; each entry retains tool results, counters and recentQuerySigs for the process lifetime.
SessionState.calls: ToolResult[] (src/state.ts:29, appended at src/triggers.ts:51) - no cap.
frontierInjectedSessions: Set<string> (src/inject.ts:228, added at :320) - no bound.
Long-lived hosts (opencode serve, the desktop app) are exactly the ones that accumulate them. src/config.ts exposes no session-cap option. Separately, src/repokey.ts:93 re-declares const SESSION_CAP = 64 instead of importing src/sessions.ts:8, so the two can drift silently.
Fix direction
Put the sessions Map and the frontierInjectedSessions Set behind the existing SessionLru, cap or clear calls at turn end, and import the shared constant in src/repokey.ts.
Source
Architecture review 2026-10-31, finding R1 (Med) and O3.
osi-spec-hash: 9edded2507dac33d 2026-11-03T22:16:14Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
agent:readyHuman-approved for autonomous work by ocsi-fixerbugSomething isn't workingfix:pr-openocsi-fixer opened a PR for this ticketreleasedseverity:mediumReal but narrow: robustness, hygiene, or gated behind multiple preconditionsspec:incompleteNot executable: missing repro or no measurable acceptance criterion. Author: add it, or close.
Activity
ocsi-triager commentedon Nov 3, 2026
osi-spec-hash: 9edded2507dac33d 2026-11-03T22:16:14Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
Merge pull request #287 from abogartz/fix-issue-224-bounded-session-l…
chore(release): 0.15.28 [skip ci]
abogartz-opencode-self-improvement commentedon Nov 4, 2026
🎉 This issue has been resolved in version 0.15.28 🎉
The release is available on:
Your semantic-release bot 📦🚀