aboutsummaryrefslogtreecommitdiff
path: root/downloads/bugs/BUG-REPORT.html
blob: 37e2741c0c7e82beeab6e1ca7bcbeb09cab82d98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>newOS4 — Bug Reports</title>
<style>
  :root { --bg:#0b0f19; --panel:#141a29; --line:#243049; --text:#e6ebf5; --muted:#93a1bb; --accent:#6366f1; }
  * { box-sizing:border-box; }
  body { margin:0; padding:32px 20px; background:radial-gradient(circle at 20% -10%,#1b2540 0,var(--bg) 55%); color:var(--text);
         font:15px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif; }
  main { max-width:920px; margin:0 auto; }
  h1 { font-size:1.6rem; margin:0 0 6px; }
  .sub { color:var(--muted); margin:0 0 26px; }
  .stats { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
  .stat { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px 18px; min-width:130px; }
  .stat b { display:block; font-size:1.4rem; color:var(--accent); }
  .stat span { color:var(--muted); font-size:.82rem; }
  .card { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin-bottom:14px; }
  .card header { display:flex; gap:10px; align-items:center; justify-content:space-between; }
  .card h3 { margin:0; font-size:1.02rem; }
  .pill { font-size:.72rem; color:var(--accent); border:1px solid var(--accent); border-radius:999px; padding:2px 9px; white-space:nowrap; }
  .meta { color:var(--muted); font-size:.82rem; margin:6px 0 0; }
  .body { margin:10px 0 0; }
  details { margin-top:12px; }
  summary { cursor:pointer; color:var(--muted); }
  pre { background:#0d1322; border:1px solid var(--line); border-radius:10px; padding:12px; overflow:auto; max-height:420px;
        font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; }
  .empty { color:var(--muted); }
  code { background:#0d1322; border:1px solid var(--line); border-radius:6px; padding:1px 5px; }
</style>
</head>
<body>
<main>
  <h1>🐞 newOS4 Bug Reports</h1>
  <p class="sub">Generated from <code>data/reports/*.json</code> — no manual edits.</p>
  <section class="stats">
    <div class="stat"><b>9</b><span>reports</span></div>
    <div class="stat"><b>2026-10-21T19:55:19+00:00</b><span>latest report</span></div>
  </section>
      <article class="card">
        <header>
          <h3>Auto: Fetch failed: https://webx11.duckdns.org/ollama//api/chat — The user aborted a request.</h3>
          <span class="pill">RPT-20261021-195519-96430378</span>
        </header>
        <p class="meta">2026-10-21T19:55:19+00:00 · version v4.6.44 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.44&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (Linux; Android 12; SM-A125F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.88 Mobile Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;Fetch failed: https://webx11.duckdns.org/ollama//api/chat — The user aborted a request.&quot;,
      &quot;source&quot;: &quot;https://webx11.duckdns.org/ollama//api/chat&quot;,
      &quot;type&quot;: &quot;runtime&quot;,
      &quot;severity&quot;: &quot;error&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Auto: FAIL: file too small: 689</h3>
          <span class="pill">RPT-20261021-164409-5ca01408</span>
        </header>
        <p class="meta">2026-10-21T16:44:09+00:00 · version v4.6.44 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.44&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (Linux; Android 12; SM-A125F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.88 Mobile Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;FAIL: file too small: 689&quot;,
      &quot;source&quot;: &quot;console.error&quot;,
      &quot;type&quot;: &quot;runtime&quot;,
      &quot;severity&quot;: &quot;error&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Auto: Fetch failed: https://webx11.duckdns.org/ollama//api/chat — Failed to fetch</h3>
          <span class="pill">RPT-20261020-190349-c6c64512</span>
        </header>
        <p class="meta">2026-10-20T19:03:49+00:00 · version v4.6.44 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.44&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (Linux; Android 12; SM-A125F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.88 Mobile Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;Fetch failed: https://webx11.duckdns.org/ollama//api/chat — Failed to fetch&quot;,
      &quot;source&quot;: &quot;https://webx11.duckdns.org/ollama//api/chat&quot;,
      &quot;type&quot;: &quot;HTTP&quot;,
      &quot;severity&quot;: &quot;error&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Auto: Cannot read properties of undefined (reading &#x27;toLowerCase&#x27;)</h3>
          <span class="pill">RPT-20261020-165652-abf26e3a</span>
        </header>
        <p class="meta">2026-10-20T16:56:52+00:00 · version v4.6.44 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.44&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;Cannot read properties of undefined (reading &#x27;toLowerCase&#x27;)&quot;,
      &quot;source&quot;: &quot;unhandledrejection&quot;,
      &quot;type&quot;: &quot;runtime&quot;,
      &quot;severity&quot;: &quot;error&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Auto: Uncaught SyntaxError: Invalid or unexpected token — Invalid or unexpected token (https://webx11.duckdns.org/spaces/newos</h3>
          <span class="pill">RPT-20261020-144427-c01ee147</span>
        </header>
        <p class="meta">2026-10-20T14:44:27+00:00 · version v4.6.44 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.44&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;Uncaught SyntaxError: Invalid or unexpected token — Invalid or unexpected token (https://webx11.duckdns.org/spaces/newos4/main.html:1:19)&quot;,
      &quot;source&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
      &quot;type&quot;: &quot;SyntaxError&quot;,
      &quot;severity&quot;: &quot;fatal&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Auto: Fetch failed: https://webx11.duckdns.org/ollama//api/chat — The user aborted a request.</h3>
          <span class="pill">RPT-20261018-165522-ac5318c4</span>
        </header>
        <p class="meta">2026-10-18T16:55:22+00:00 · version v4.6.44 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.44&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (Linux; Android 12; SM-A125F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.88 Mobile Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;Fetch failed: https://webx11.duckdns.org/ollama//api/chat — The user aborted a request.&quot;,
      &quot;source&quot;: &quot;https://webx11.duckdns.org/ollama//api/chat&quot;,
      &quot;type&quot;: &quot;runtime&quot;,
      &quot;severity&quot;: &quot;error&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Auto: this.fs.emptyTrash is not a function</h3>
          <span class="pill">RPT-20261018-164646-89352963</span>
        </header>
        <p class="meta">2026-10-18T16:46:46+00:00 · version v4.6.42 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.42&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (Linux; Android 12; SM-A125F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.88 Mobile Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;this.fs.emptyTrash is not a function&quot;,
      &quot;source&quot;: &quot;unhandledrejection&quot;,
      &quot;type&quot;: &quot;TypeError&quot;,
      &quot;severity&quot;: &quot;error&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Untitled bug report</h3>
          <span class="pill">RPT-20261018-163934-165c02e0</span>
        </header>
        <p class="meta">2026-10-18T16:39:34+00:00 · version v4.6.42 · 7 error(s)</p>
        
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.42&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (Linux; Android 12; SM-A125F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.88 Mobile Safari/537.36&quot;,
  &quot;online&quot;: true,
  &quot;modules&quot;: 46,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;Fetch failed: https://webx11.duckdns.org/ollama//api/chat — Failed to fetch&quot;,
      &quot;source&quot;: &quot;https://webx11.duckdns.org/ollama//api/chat&quot;,
      &quot;count&quot;: 9
    },
    {
      &quot;message&quot;: &quot;Cannot read properties of undefined (reading &#x27;toLowerCase&#x27;)&quot;,
      &quot;source&quot;: &quot;unhandledrejection&quot;,
      &quot;count&quot;: 1
    },
    {
      &quot;message&quot;: &quot;Fetch failed: https://webx11.duckdns.org/ollama//api/chat — The user aborted a request.&quot;,
      &quot;source&quot;: &quot;https://webx11.duckdns.org/ollama//api/chat&quot;,
      &quot;count&quot;: 5
    },
    {
      &quot;message&quot;: &quot;Uncaught SyntaxError: Invalid or unexpected token — Invalid or unexpected token (https://webx11.duckdns.org/spaces/newos4/main.html:1:19)&quot;,
      &quot;source&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
      &quot;count&quot;: 1
    },
    {
      &quot;message&quot;: &quot;ASYNCOK is not defined&quot;,
      &quot;source&quot;: &quot;unhandledrejection&quot;,
      &quot;count&quot;: 1
    },
    {
      &quot;message&quot;: &quot;[WorldModel] Save failed: temp file corrupt after write&quot;,
      &quot;source&quot;: &quot;console.error&quot;,
      &quot;count&quot;: 39
    },
    {
      &quot;message&quot;: &quot;Cannot read properties of null (reading &#x27;addEventListener&#x27;)&quot;,
      &quot;source&quot;: &quot;unhandledrejection&quot;,
      &quot;count&quot;: 2
    }
  ],
  &quot;recent_commands&quot;: [
    &quot;this erro Security: AI error: tc is not defined&quot;,
    &quot;somethimg has broken&quot;,
    &quot;session-new&quot;,
    &quot;ls agents/&quot;,
    &quot;✅ tc is not defined — found, fixed, verified\n\nSame bug family as the /agents/ leak: a refactor moved code, an identifier didn&#x27;t move with it, and a broad catch buried the evidence.\n\nRoot cause — module-aiassist.js, chat() tool executor\n\nThe \&quot;execute non-destructive tools sequentially\&quot; refactor split one loop into two passes:\n\nfor (const tc of safeTools) {\n    ...\n    safeResults.push({ fn, toolResult, t1 });            // :1576  ← tc not carried over\n}\n\nfor (const { fn, toolResult, t1 } of safeResults) {      // :1578  ← tc does not exist here\n    ...\n    messages.push({ role:&#x27;tool&#x27;, tool_call_id: tc.id, content: toolResult });  // :1615 💥\n\n\ntc is undeclared in pass 2 → ReferenceError. Classes are strict-mode, so it&#x27;s a hard throw — on every tool-using AI turn, after the tool already ran. The tool result is never appended to the conversation, so the model never sees it and the turn aborts.\n\nThe error surfaced as Security: AI error: tc is not defined because terminal.js:266 — the catch inside WebX11SecurityManager._tryAIRoute() — prefixes every exception with Security: AI error:.\n\nFix (2 lines)\ntc is now carried through safeResults, so tool_call_id: tc.id preserves the id the model issued.\n\nVerification\n\nNew static gate — scripts/lint-no-undef.py (ESLint no-undef, auto-collects 118 cross-file globals so only genuine undefineds report):\n\nfixed file\n• Result: ✅ clean\n\nreverted copy (gate validation)\n• Result: 1615:73 error &#x27;tc&#x27; is not defined\n\nwhole core+ext, 55 files\n• Result: ✅ clean\n\nLive browser, prod bundle v4.6.42 — stubbed the model, kept the real loop:\n{\&quot;calls\&quot;: 2, \&quot;ok\&quot;: true,\n \&quot;printedToolLine\&quot;: \&quot;🔧 Tool: list_files({})\&quot;,\n \&quot;securityAiError\&quot;: null,\n \&quot;toolMessagesSeenByModel\&quot;: [{\&quot;role\&quot;:\&quot;tool\&quot;,\&quot;id\&quot;:\&quot;call_test_1\&quot;,\&quot;content\&quot;:\&quot;STUB_RESULT:list_files\&quot;}]}\n\nThe crashing statement now executes and the model receives the tool result with its original tool_call_id.\n\nRegression — node scripts/test-agents-lifecycle.js → ALL CHECKS PASSED. Page console: js_errors: [].\n\nShipped\nv4.6.41 → v4.6.42 — bundle rebuilt, cache-bust in main.html (3 tags) + module-loader.js, served over HTTPS confirmed.\n\nArtifacts\nscripts/lint-no-undef.py\n• Purpose: scope gate — run before every rebuild\n\nadmin/docs/newos4-ai-tool-loop-tc-undefined-2026-10-18.md\n• Purpose: full RCA\n\nskill newos4-module-patch-and-verify (129 lines)\n• Purpose: updated: gate in workflow, 2 new pitfalls, AI tool-loop probe recipe\n\nBootstrap the linter once: mkdir -p /tmp/lint &amp;&amp; cd /tmp/lint &amp;&amp; npm i eslint@8 (or set ESLINT_BIN).\n\nOne thing worth flagging: this bug existed in v4.6.41 too — the version bump just made your browser fetch fresh code, which is why it looked \&quot;new.\&quot; It would have hit the first time you asked the AI to use a tool, regardless.&quot;,
    &quot;ollamaconnect&quot;,
    &quot;✅ tc is not defined — found, fixed, verified\n\nSame bug family as the /agents/ leak: a refactor moved code, an identifier didn&#x27;t move with it, and a broad catch buried the evidence.\n\nRoot cause — module-aiassist.js, chat() tool executor\n\nThe \&quot;execute non-destructive tools sequentially\&quot; refactor split one loop into two passes:\n\nfor (const tc of safeTools) {\n    ...\n    safeResults.push({ fn, toolResult, t1 });            // :1576  ← tc not carried over\n}\n\nfor (const { fn, toolResult, t1 } of safeResults) {      // :1578  ← tc does not exist here\n    ...\n    messages.push({ role:&#x27;tool&#x27;, tool_call_id: tc.id, content: toolResult });  // :1615 💥\n\n\ntc is undeclared in pass 2 → ReferenceError. Classes are strict-mode, so it&#x27;s a hard throw — on every tool-using AI turn, after the tool already ran. The tool result is never appended to the conversation, so the model never sees it and the turn aborts.\n\nThe error surfaced as Security: AI error: tc is not defined because terminal.js:266 — the catch inside WebX11SecurityManager._tryAIRoute() — prefixes every exception with Security: AI error:.\n\nFix (2 lines)\ntc is now carried through safeResults, so tool_call_id: tc.id preserves the id the model issued.\n\nVerification\n\nNew static gate — scripts/lint-no-undef.py (ESLint no-undef, auto-collects 118 cross-file globals so only genuine undefineds report):\n\nfixed file\n• Result: ✅ clean\n\nreverted copy (gate validation)\n• Result: 1615:73 error &#x27;tc&#x27; 
… (truncated)</pre>
        </details>
      </article>
      <article class="card">
        <header>
          <h3>Auto: [WorldModel] Save failed: temp file corrupt after write</h3>
          <span class="pill">RPT-20261018-161111-c93a18ef</span>
        </header>
        <p class="meta">2026-10-18T16:11:11+00:00 · version v4.6.40 · 1 error(s)</p>
        <p class="body">Automatically filed by the debug supervisor (no user action).</p>
        <details>
          <summary>Diagnostics</summary>
          <pre>{
  &quot;version&quot;: &quot;v4.6.40&quot;,
  &quot;url&quot;: &quot;https://webx11.duckdns.org/spaces/newos4/main.html&quot;,
  &quot;ua&quot;: &quot;Mozilla/5.0 (Linux; Android 12; SM-A125F Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.88 Mobile Safari/537.36&quot;,
  &quot;auto&quot;: true,
  &quot;errors&quot;: [
    {
      &quot;message&quot;: &quot;[WorldModel] Save failed: temp file corrupt after write&quot;,
      &quot;source&quot;: &quot;console.error&quot;,
      &quot;type&quot;: &quot;runtime&quot;,
      &quot;severity&quot;: &quot;error&quot;,
      &quot;count&quot;: 1
    }
  ]
}</pre>
        </details>
      </article>
</main>
</body>
</html>