@filipc77/cowrite 0.6.8 → 0.6.9

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.
@@ -1104,7 +1104,7 @@ function createPreviewServer(store, projectDir, port, initialFile) {
1104
1104
  // bin/cowrite.ts
1105
1105
  import updateNotifier from "update-notifier";
1106
1106
  import "module";
1107
- var version = true ? "0.6.8" : createRequire(import.meta.url)("../package.json").version;
1107
+ var version = true ? "0.6.9" : createRequire(import.meta.url)("../package.json").version;
1108
1108
  var USAGE = `
1109
1109
  cowrite \u2014 Live commenting plugin for coding agent sessions
1110
1110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filipc77/cowrite",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Live commenting and inline editing plugin for coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -209,6 +209,10 @@ function submitComment() {
209
209
  export function showToolbarForSelection(editor) {
210
210
  const { from, to } = editor.state.selection;
211
211
  if (from === to) {
212
+ // Don't clear selectionInfo while the comment popup is open —
213
+ // focus moving to the textarea collapses ProseMirror's selection,
214
+ // but submitComment still needs the original selectionInfo.
215
+ if (!popup.hidden) return;
212
216
  hideTrigger();
213
217
  return;
214
218
  }