anomalyco / anomalyco/opencode
CLI server cannot enable durable event persistence
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
ServerOptions supports events.persist, but opencode2 serve does not expose it through its runtime configuration. Packaged CLI servers therefore always use the default persist: false, even with a persistent database.
Steps to reproduce
- Start
opencode2 servewithOPENCODE_DBpointing to a file. - Create a session.
- Stop the server and inspect or replay the session event log.
- The event sequence advances, but durable event payload rows were not retained.
Expected behavior
Provide a CLI-server configuration option for the existing events.persist server setting.
OpenCode version
0.0.0-dev-17472
Operating system
macOS and Linux
Contributor 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.
Research direction
Start by tracing the runtime configuration used by opencode2 serve and compare it with ServerOptions, focusing on the existing events.persist setting. Verify the behavior with a file-backed OPENCODE_DB, then confirm that the CLI server can enable durable event persistence and that event payload rows survive a restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100