@tomflow/chatloop-extension 0.3.37 → 0.3.38

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.
@@ -125,7 +125,15 @@
125
125
  audit.messageEvidence[id] = read?.result || {status: "EMPTY_RESULT"};
126
126
  // Only dedicated tests created by this diagnostic may expose their
127
127
  // harmless assistant text, for verifying strict status parsing.
128
- if (owned.some(item => item.id === id || (item.id === run?.sourceTabId && id === run?.tabId))) {
128
+ const ownedAcceptance = owned.some(item => item.id === id
129
+ || (item.id === run?.sourceTabId && id === run?.tabId));
130
+ // The existing read-only Audit may also inspect the CURRENT, exactly
131
+ // matched Worker-owned Chat. It drives the Observer's existing poll,
132
+ // never types into a conversation or creates an Action. Never persist
133
+ // unapproved user reply text for ordinary project sessions.
134
+ const currentOwner = run?.tabId === id
135
+ && audit.messageEvidence[id]?.url === "https://chatgpt.com" + run.page;
136
+ if (ownedAcceptance || currentOwner) {
129
137
  const proof = await chrome.tabs.sendMessage(id,
130
138
  {type: "CHAT_LOOP_TURN_VERIFY_V1"}).catch(() => null);
131
139
  audit.messageEvidence[id].observerStatus = proof?.status || "UNAVAILABLE";
@@ -135,7 +143,7 @@
135
143
  status: observed.status, reason: observed.reason, page: observed.page,
136
144
  userKey: observed.userKey, eventCount: observed.eventCount,
137
145
  observedAt: observed.observedAt} : null;
138
- audit.messageEvidence[id].observerReplyText =
146
+ if (ownedAcceptance) audit.messageEvidence[id].observerReplyText =
139
147
  typeof proof?.replyText === "string" ? proof.replyText.slice(0, 3000) : null;
140
148
  }
141
149
  } catch {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Chat Loop Extension",
4
- "version": "0.3.37",
4
+ "version": "0.3.38",
5
5
  "description": "Chat Loop browser companion: Eye actions, Turn observer, Continue and Handoff Actions",
6
6
  "permissions": [
7
7
  "activeTab",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/chatloop-extension",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "type": "module",
5
5
  "description": "Chat Loop Extension package: nine formal Action pages and its own native CLI bridge",
6
6
  "bin": {