Skip to content

feat: add input context to chat.params and chat.message#4085

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
oomathias:plugin-input-context
Nov 9, 2025
Merged

feat: add input context to chat.params and chat.message#4085
rekram1-node merged 1 commit intoanomalyco:devfrom
oomathias:plugin-input-context

Conversation

@oomathias
Copy link
Copy Markdown
Contributor

Description

This PR enhances the plugin hook system by adding input context to both chat.params and chat.message hooks.

At the moment it's impossible to know which agent is selected for a UserMessage. It's only available in info.mode inside AssistantMessage.

This allows plugins to be context aware when reacting to chat messages.

Changes

  • Updated chat.message hook input signature to include sessionID, agent, model, and messageID
  • Updated chat.params hook input signature to include sessionID and agent

@rekram1-node rekram1-node merged commit d85eb1b into anomalyco:dev Nov 9, 2025
3 checks passed
@oomathias oomathias deleted the plugin-input-context branch January 16, 2026 16:48
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
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.

2 participants