Skip to content

feat(forgekeeper)!: use opencode-forgekeeper as the server and RPC ID - #90

Merged
pedropombeiro merged 1 commit into
mainfrom
feat/forgekeeper-id
Oct 10, 2026
Merged

pedropombeiro merged 1 commit into
mainfrom
feat/forgekeeper-id

Conversation

@pedropombeiro

Copy link
Copy Markdown
Owner

What does this PR do and why?

The server kept the deprecated opencode-forge-session-title plugin and RPC ID, so OpenCode's plugin list showed the old package's name for opencode-forgekeeper. This uses opencode-forgekeeper for both, and removes the code that read the old package's storage formats, which a new ID can't see.

  • Breaking: OpenCode scopes plugin storage by plugin ID, so stored targets, title-prefix ownership, and review baselines start over, and RPC callers need the new ID. The README's migration section lists what users need to redo. Keep the BREAKING CHANGE footer if you squash, so release-please releases 2.0.0.

How to set up and validate locally

  1. mise run build forgekeeper, then point an opencode.json plugin entry at packages/forgekeeper/dist.
  2. The plugin list shows opencode-forgekeeper, and opencode api post '/api/rpc/opencode-forgekeeper/target?location[directory]=<dir>' --data '{"input":{"sessionID":"<id>"}}' answers.

Tested at 5348900 with OpenCode 2.0.26: the plugin list showed the new ID, the RPC answered under it, and the old ID's RPC was unavailable.

The server kept opencode-forge-session-title's plugin and RPC ID, so
OpenCode's plugin list showed the deprecated package's name for
opencode-forgekeeper.

Use opencode-forgekeeper for both. OpenCode scopes plugin storage by
plugin ID, so the code that read the old package's single `target`
records and removed its whole-log keys has nothing left to read, and
goes too.

BREAKING CHANGE: Nothing stored under opencode-forge-session-title
carries over. Sessions return to branch-based naming until their
targets are set again, each PR/MR records a new review baseline, and
RPC callers need the opencode-forgekeeper ID.
@pedropombeiro
pedropombeiro merged commit 5bd183c into main Oct 10, 2026
2 checks passed
@pedropombeiro
pedropombeiro deleted the feat/forgekeeper-id branch October 10, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant