feat(opencode): close matching Engram session when OpenCode archive becomes idle
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
Start from the OpenCode plugin integration (look for the archive handling entry point and the existing session-sync code it calls), then find how Engram sessions are transitioned to idle elsewhere so you can reuse that path on archive. Check umbrella issue #1192 and the related #1259 for the expected lifecycle semantics and where the mirrored plugin copies live. Done means: archiving an OpenCode session immediately closes the matching Engram session, all mirrored copies are updated, and focused tests plus docs cover the new behavior.
Written by the indexing model from the issue text.
Description
🔍 Problem Description
Archiving an OpenCode session should promptly transition its matching Engram session to idle. Without a dedicated archive-to-idle closure path, the Engram session can remain active until later synchronization, leaving session lifecycle state stale for users and downstream tooling.
💡 Proposed Solution
Add an OpenCode archive-to-idle session-closure feature that identifies the matching Engram session and closes it when the OpenCode session is archived. Keep the required mirrored plugin copies aligned, and cover the behavior with focused tests and documentation. This work may require a maintainer-approved size:exception because the mirrored plugin copies, tests, and documentation are all required for a complete change.
📦 Affected Area
Other
🔄 Alternatives Considered
Continue relying on delayed synchronization to close sessions. This leaves lifecycle state stale after an archive and does not provide the expected immediate archive-to-idle behavior.
📎 Additional Context
Part of umbrella issue #1192. This is intentionally scoped separately from #1259: it covers the explicit OpenCode archive-to-idle integration, including required mirrored plugin copies, tests, and documentation.
- Dominant language
- Go
- Stars
- 7.1k
- Forks
- 729
- Avg merge
- 8h 35m
- Merged PRs (30d)
- 319
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Gentleman-Programming/engram
-
status:needs-review type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Gentleman-Programming/engram#2138 · 1 comment ·
Maintainers usually reply within 1 day
-
status:needs-review
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Gentleman-Programming/engram#2065 ·
Maintainers usually reply within 1 day
-
bug(tests): Windows Bash /tmp warnings break Codex and ratchet assertionsPossibly taken @dnlrsls claimed this today. Openstatus:approved type:bug
Gentleman-Programming/engram#2190 · 1 assignee ·
Maintainers usually reply within 1 day
-
status:needs-review type:bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Gentleman-Programming/engram#2187 ·
Maintainers usually reply within 1 day
-
status:needs-review type:feature
Difficulty 5/5 Over a week Newbie friendliness 35/100
Gentleman-Programming/engram#2186 ·
Maintainers usually reply within 1 day
All issues in Gentleman-Programming/engram
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
Energy flow: add an "Other" row so the consumers add up to the consumption totalPossibly taken @github-actions claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
evcc-io/evcc#35512 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nebari-dev/nebi#630 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
router-for-me/CLIProxyAPI#7084 ·
Maintainers usually reply within 1 day