Skip to content

feat(plugin): expose session list - #52681

Closed
opencode-agent[bot] wants to merge 2 commits into
devfrom
plugin-session-list-active
Closed

opencode-agent[bot] wants to merge 2 commits into
devfrom
plugin-session-list-active

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Expose session.list on both Promise and Effect plugin contexts, matching the session API's filters and cursor pagination.
  • Share the session-list cursor contract between the server and plugin host so filters, ordering, and pagination use the same cursors.
  • Document the new read and test filtered pagination and invalid cursors. Neither session.active nor the experimental session export is added to plugin context.

Validation

  • bun test test/plugin/session-list.test.ts (packages/core; 2 pass)
  • GOMAXPROCS=2 bun typecheck (packages/core and packages/plugin; rerun after removing active)
  • Prettier check and git diff --check
  • Initial validation also passed the protocol cursor test, schema/protocol typechecks, website typecheck, and root lint (existing warnings, no errors).

The initial repository-wide typecheck hit the Host's resource limit during an unrelated stats-app task; the affected packages passed individually. The website build rendered the plugin docs but failed during Cloudflare Miniflare teardown (Server is not running). Generated OpenAPI checks are stale on the base branch from unrelated API/schema differences; no generated files are included here.

Requested by: @Brendonovich (Brendan via Slack)

@opencode-agent opencode-agent Bot changed the title feat(plugin): expose session list and active reads feat(plugin): expose session list Oct 5, 2026
@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants