anomalyco / anomalyco/opencode
Session title generation bypasses plugin hooks
@rekram1-node is already working on this.
Since Aug 29, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Session title generation bypasses plugin hooks entirely. The title agent's LLM call sends the raw first user message straight to the model — it never goes through plugin.trigger("experimental.chat.messages.transform", ...), unlike the main chat completion.
This means any plugin that redacts/anonymizes outgoing content (secrets, PII, etc.) has no way to intercept the title-generation request. The main chat message gets scrubbed correctly; the title request for the exact same message does not.
Suggested fix:
route title()'s outgoing messages through plugin.trigger("experimental.chat.messages.transform", ...) before the llm.stream() call, or add a dedicated hook for it.
Workaround in the meantime:
{"agent": {"title": {"disable": true}}} stops the call entirely (loses auto-generated titles).
Plugins
@rehydra/opencode v0.13.0 (used to surface the gap — content-transform plugins in general are affected, not specific to this one)
OpenCode version
1.18.20
Steps to reproduce
- Install a plugin that redacts outgoing message content via experimental.chat.messages.transform
- Start a new session, send a first message containing a secret
- Inspect actual outbound HTTP requests (MITM proxy or request tracer)
- See two LLM calls from the same input: main chat completion is scrubbed correctly; the title-generation call (agent=title, small=true) contains the raw, unscrubbed secret
Screenshot and/or share link
No response
Operating System
macOS 26.5.2
Terminal
iTerm2
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.
Assessment
This issue has not been assessed yet.