webhelm 1.0.46 → 1.0.47

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.
package/README.md CHANGED
@@ -76,6 +76,13 @@ this release to register the updater LaunchAgent. The setup and updater also
76
76
  migrate only legacy global CLI symlinks that target an owned immutable
77
77
  `runtime-VERSION/bin/webhelm.mjs` into the stable Runtime link.
78
78
 
79
+ ChatGPT long-turn transport preserves a leading `<top-instructions>` block
80
+ and its `Neo model request: resp_...` ID in the visible composer when the
81
+ complete message must be attached as `prompt.md` (>2,000 characters). This
82
+ avoids hiding the model reporting contract in an unread attachment. The
83
+ original full message is still attached exactly, and ordinary long prompts
84
+ retain the existing short `Read prompt.md` composer text.
85
+
79
86
  ## WebHelm Chrome Extension control panel
80
87
 
81
88
  The daemon-managed Chrome Extension is installed from the npm Runtime and does not require the Chrome Web Store. Click the WebHelm toolbar icon to see daemon connectivity, each configured workspace's available capacity and current Session count. The toolbar badge shows the number of **active daemon Sessions** across all workspaces (including `0` when idle). `!` means the daemon heartbeat is stale and `?` means the Session count is unknown. The popup separately shows pool availability and idle tabs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webhelm",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "Agent browser automation in a visible managed Chrome with persistent JavaScript sessions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,8 +1,23 @@
1
1
  export const PROMPT_FILE_THRESHOLD = 2000;
2
2
  export const PROMPT_FILE_MESSAGE = 'Read prompt.md and execute the task in that file.';
3
3
 
4
+ // When a prompt is attached as prompt.md, retain its leading reporting
5
+ // contract in the visible composer. Otherwise ChatGPT may never read the
6
+ // attachment, leaving the caller waiting for chat_report indefinitely.
7
+ export function inlineTopInstructions(message) {
8
+ const open='<top-instructions>', close='</top-instructions>';
9
+ if (!message.startsWith(open)) return null;
10
+ const end=message.indexOf(close,open.length);
11
+ if (end<=open.length||end>1800) return null;
12
+ const header=message.slice(0,end+close.length);
13
+ const next=message.slice(end+close.length,end+close.length+250);
14
+ const responseId=next.match(/Neo model request: resp_[0-9a-f]{40}/)?.[0]||'';
15
+ const preview=header+(responseId?'\n\n'+responseId:'')+'\n\n'+PROMPT_FILE_MESSAGE;
16
+ return preview.length<=PROMPT_FILE_THRESHOLD?preview:null;
17
+ }
4
18
  export function deliveryMessage(message) {
5
- return message.length > PROMPT_FILE_THRESHOLD ? PROMPT_FILE_MESSAGE : message;
19
+ if (message.length<=PROMPT_FILE_THRESHOLD) return message;
20
+ return inlineTopInstructions(message)??PROMPT_FILE_MESSAGE;
6
21
  }
7
22
 
8
23
  export function targetUrl(projectId, threadId, message) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "WebHelm",
4
- "version": "1.0.46",
4
+ "version": "1.0.47",
5
5
  "description": "Own named Chrome tab-group workspaces and lazy reusable tab pools for browser agents.",
6
6
  "permissions": [
7
7
  "storage",