opencode-interrupt-plugin 0.4.11 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -114,11 +114,12 @@ export const InterruptPlugin = (userConfig = {}) => {
114
114
  if (!msg || !msg.role)
115
115
  return;
116
116
  if (msg.role === 'assistant') {
117
+ const state = getSessionState(sessionId);
117
118
  const content = extractText(parts);
118
119
  updateSessionState(sessionId, {
119
120
  lastAssistantContent: content,
120
121
  lastAssistantTimestamp: Date.now(),
121
- wasInterrupted: false,
122
+ wasInterrupted: state.awaitingCorrection ? state.wasInterrupted : false,
122
123
  });
123
124
  return;
124
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-interrupt-plugin",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "Streaming TTS + voice interruption for OpenCode. Speaks responses as they arrive and detects when you talk over it.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",