Skip to content

feat(plugin): expose server metadata and session revert - #51601

Closed
Shalin-Shah-2002 wants to merge 3 commits into
anomalyco:devfrom
Shalin-Shah-2002:expose-plugin-server-revert
Closed

Shalin-Shah-2002 wants to merge 3 commits into
anomalyco:devfrom
Shalin-Shah-2002:expose-plugin-server-revert

Conversation

@Shalin-Shah-2002

Copy link
Copy Markdown

Issue for this PR

Fixes #51599

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds the existing session revert operations to both plugin APIs and exposes the running server URL and password through ctx.app.server for authenticated in-process plugins. The endpoint is injected from the bound listener at runtime, so it is instance-specific and omitted for embedded/no-auth servers.

How did you verify your code works?

  • cd packages/core && bun typecheck
  • cd packages/plugin && bun typecheck
  • cd packages/server && bun typecheck
  • cd packages/core && bun test test/app.test.ts
  • cd packages/core && bun test test/session-revert.test.ts

The local plugin host fixture test currently has unrelated resolution failures under Bun 1.3.14. The repository pre-push hook also requires Bun 1.4.2, so the branch was pushed with that hook bypassed after the package checks above passed.

Screenshots / recordings

Not applicable.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@Shalin-Shah-2002
Shalin-Shah-2002 force-pushed the expose-plugin-server-revert branch from b695aa2 to 8f24feb Compare September 27, 2026 06:33
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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.

[FEATURE]: Plugin API: bridge session revert, and expose server self-endpoint to plugins

1 participant