chore: v3.26.235(测试版:任务队列修复)

This commit is contained in:
qiqi committed 2026-12-03 10:46:33 +08:00
1 parent 2e62769421
commit ac6a0062c3
16 files changed
+81 -35

No files matched your search

+9
View File
@@ -20,6 +20,15 @@
- 历史条目补录:该 tag 当时未在 CHANGELOG 记录(release-records 守卫要求 tag 与条目双向一致),内容按当时提交补一句占位说明。
## v3.26.235(2026-12-03)任务队列修复(选中/滚动/缩略图/定位)
- 修任务队列入口在离开页面后仍高亮(activePage 增加 shellView==='page' 判断)。
- 锁住插件整页滚动(只有 body 滚);工作区标签条改 fixed,页头不再被滚走。
- 队列缩略图/预览优先图库稳定字节(row.idb / row.origIdb),localUrl 最后;img onerror 回退占位。
- `archiveGenerationResults` 支持 meta(boardId/boardName/nodeId),兜底入队不再「未知画布」。
- 下载中超过 60 秒显示「可能卡住」并提供「重新下载」(cancel + retry);等待时长可见。
- 插件 taskqueue 1.0.2。
## v3.26.234(2026-12-03)任务队列体验修正
- 修任务队列页打开时画布图标仍选中(nav view 空串回退 canvas)。
+2 -2
View File
@@ -105,8 +105,8 @@ IWB_WRITE_BOUNDARY_SNAPSHOT=1 node tests/architecture-boundary-guard-test.js #
| 守卫 | 位置 | 现在的上限 |
|---|---|---|
| `app.js` 总行数 | `tests/source-text-ratchet-test.js` `MAX_APP_JS_LINES` | **9,331**(另守「占总源码 ≤ 40%」,见 `MAX_APP_JS_SHARE`) |
| `Workbench()` 行数 | 同上 `MAX_WORKBENCH_LINES` | **2,673** |
| `app.js` 总行数 | `tests/source-text-ratchet-test.js` `MAX_APP_JS_LINES` | **9,345**(另守「占总源码 ≤ 40%」,见 `MAX_APP_JS_SHARE`) |
| `Workbench()` 行数 | 同上 `MAX_WORKBENCH_LINES` | **2,686** |
| 单组件行数(不含 Workbench)| 同上 `MAX_APP_COMPONENT_LINES` | **423** |
三条都是**只减不增**。确需在 app.js 增长时,必须**同步上调上限并在 commit 里写理由**(等于显式记账,不会悄悄发生)。
+29 -13
View File
@@ -4036,11 +4036,12 @@ try { if (window.IWBMiniMapFit && typeof window.IWBMiniMapFit.install === 'funct
// 生成归档边界:图库索引/缩略图属于旁路缓存,不能阻塞生成结果和画布保存。
// v3.26.61:每张结果在生成过程中已由 wArchiveEntryNow 逐张入库(图库要「出图即见」),
// 这里只补剩下没归档的(失败条目/兜底路径),不再整批重写一遍 —— 否则同一张图会入两次库。
async function archiveGenerationResults(entries, refresh) {
async function archiveGenerationResults(entries, refresh, meta) {
const all = Array.isArray(entries) ? entries : []
const results = flattenGenerationEntries(all)
// 先入落地队列(不等下载完):节点先显示远程,就绪后换成 localUrl;失败保留 url 可重试
try { if (window.__iwbIngest) for (const r of results) if (r && r.ok && r.url) window.__iwbIngest.enqueue({ url: r.url, source: 'gen', w: r.width, h: r.height }) } catch (eI) { /* 落地失败不得影响出图 */ }
// meta:兜底入队(分层/非 liveUpsert 路径)也要带画布/节点,否则任务队列显示「未知画布」、无法定位。
try { if (window.__iwbIngest) for (const r of results) if (r && r.ok && r.url) window.__iwbIngest.enqueue({ url: r.url, source: 'gen', w: r.width, h: r.height, meta: Object.assign({}, meta || {}, { prompt: String((r && r.label) || (meta && meta.prompt) || '') }) }) } catch (eI) { /* 落地失败不得影响出图 */ }
iwbDebugCounter('archiveGenerationResults', { entries: results.length })
for (const hook of wPluginGenHooks) {
if (typeof hook.afterResult !== 'function') continue
@@ -8296,7 +8297,8 @@ const tbCenterSeed = (type, refs) => {
w: Number(e.w) || 0, h: Number(e.h) || 0, error: String(e.lastError || ''),
retries: Number(e.retries) || 0, createdAt: Number(e.createdAt) || 0, updatedAt: Number(e.updatedAt) || 0,
meta,
thumbUrl: (v && v.localUrl) ? v.localUrl : (wQueueThumbCache.get(e.url) || outThumbCache.get(e.url) || ''),
thumbUrl: (wQueueThumbCache.get(e.url) || outThumbCache.get(e.url) || ''),
localUrl: (v && v.localUrl) ? v.localUrl : '',
inGallery: (() => { const row = idxNow.find((f) => f && String(f.url) === String(e.url)); return !!(row && (row.orig === 'ok' || row.origIdb)) })(),
}
})
@@ -8309,18 +8311,22 @@ const tbCenterSeed = (type, refs) => {
if (need.length) {
await Promise.all(need.map(async (x) => {
const row = idxNow.find((f) => f && String(f.url) === String(x.url))
if (!row || !row.idb) return
if (!row || !row.idb) { if (x.localUrl) x.thumbUrl = x.localUrl; return }
try {
const v = await IDB.get(row.idb)
const ok = (v && typeof v === 'string' && v.length > 20)
if (ok) x.thumbUrl = v
if (ok) { if (wQueueThumbCache.size > 500) { const k0 = wQueueThumbCache.keys().next().value; if (k0) wQueueThumbCache.delete(k0) } wQueueThumbCache.set(x.url, v) }
} catch (e) { /* ignore */ }
if (ok) {
x.thumbUrl = v
if (wQueueThumbCache.size > 500) { const k0 = wQueueThumbCache.keys().next().value; if (k0) wQueueThumbCache.delete(k0) }
wQueueThumbCache.set(x.url, v)
} else if (x.localUrl) x.thumbUrl = x.localUrl
} catch (e) { if (x.localUrl) x.thumbUrl = x.localUrl }
}))
}
return { items: page, total: items.length }
},
retry: (id) => { try { return window.__iwbIngest ? window.__iwbIngest.retry(id) : null } catch (e) { return null } },
restart: (id) => { try { if (!window.__iwbIngest) return null; try { window.__iwbIngest.cancel(id) } catch (e0) { /* ignore */ } return window.__iwbIngest.retry(id) } catch (e) { return null } },
land: async (id) => {
const e = qEntry(id)
if (!e) return { ok: false, error: 'record-missing' }
@@ -8338,14 +8344,24 @@ const tbCenterSeed = (type, refs) => {
try { wIngestLog('queue-land url=' + String(e.url).slice(0, 60)) } catch (e4) { /* ignore */ }
return { ok: true }
},
preview: (id) => {
preview: async (id) => {
const all = qList().filter((x) => x && x.url)
const idx = all.findIndex((x) => x.id === id)
if (idx < 0) return { ok: false, error: 'record-missing' }
const list = all.map((x) => {
const v = qView(x.url)
return { url: (v && v.localUrl) ? v.localUrl : x.url, w: Number(x.w) || 0, h: Number(x.h) || 0, name: String((x.meta && x.meta.prompt) || '') }
})
const idxNow = lsGet(OUT_KEY, []) || []
const list = []
for (const x of all) {
const row = idxNow.find((f) => f && String(f.url) === String(x.url))
const thumb = wQueueThumbCache.get(x.url) || ''
let url = x.url
if (x.id === id) {
// 当前这张优先用图库原图/缩略图,避免会话级 localUrl 失效导致预览破图
if (row && row.origIdb) { try { const o = await IDB.get(row.origIdb); if (o) url = o } catch (e) { /* ignore */ } }
else if (row && row.idb) { try { const t = await IDB.get(row.idb); if (t) url = t } catch (e) { /* ignore */ } }
else { const v = qView(x.url); if (v && v.localUrl) url = v.localUrl }
}
list.push({ url, thumb: thumb || undefined, w: Number(x.w) || 0, h: Number(x.h) || 0, name: String((x.meta && (x.meta.promptText || x.meta.prompt)) || '') })
}
setPreview({ list, idx })
return { ok: true }
},
@@ -8526,7 +8542,7 @@ const tbCenterSeed = (type, refs) => {
logoIcon: 'brand',
view: shellView === 'page' ? 'page' : (shellView === 'plugins' ? 'plugins' : (shellView === 'home' ? 'home' : 'canvas')),
pages: wPluginPages.slice(),
activePage: pluginPage ? (pluginPage.pluginId + ':' + pluginPage.pageId) : '',
activePage: (shellView === 'page' && pluginPage) ? (pluginPage.pluginId + ':' + pluginPage.pageId) : '',
onPage: (pid, id) => { setPluginPage({ pluginId: pid, pageId: id }); setShellView('page') },
skinIcon: theme === 'dark' ? 'sun' : 'moon',
onHome: () => { setShellView('home'); try { goHome() } catch (e) { /* ignore */ } },
+1 -1
View File
@@ -22,7 +22,7 @@
- 图片**新写入主通道 = IndexedDB Blob `{__blob}` / key `imgblob_<hash>_<len>`** (A) `app.js:2143`;`{__cache}`(Cache Storage)为兜底;\`ref_\`(`app.js` 内定义的 `IDB_REF_PREFIX = 'ref_'`)为 legacy 形态 (A)。
- 大图判定:`isBigDataUrl` = `data:` 且 `length > 3000` (A) `app.js:2018`;**画布保存保留阈值** `< 16384` 才原样保留 (A) `app.js:2182`。**两处阈值并存,含义不同**。
- 单测是**源码契约测试**:`tests/` 目录共 **493** 处源码文本钉点(`source.includes` / `source.indexOf` / `/re/.test(source)`),分布在 **20** 个文件(其中 `iwb-v32-web-test.js` 一个就占 **407**)→ **结构性重构会先打红测试**。**该数字已由 `tests/source-text-ratchet-test.js` 的「只减不增」棘轮守门**(2026-10-20 起守卫范围从 1 个文件扩到全目录:新增任何一处源码文本钉点都会打红)。**2026-11-12 复算**(`npm run audit:pins`,v3.24.76):二分 STRUCT **417** / NAME **76**;形态 **POS 403 / NEG 87 / COUNT 3**;难度 **易 62 / 中 316 / 难 115**。钉点减法第一批(v3.24.72)把 **537 → 505**:8 条探针钉点改为「门禁内 spec 是否真的读该计数器」、5 条改为运行时断言(生产态 `window` 上无探针)、10 条改为 DOM 断言(质量档位禁用 / 传输页无三模式按钮 / 模型项 title)、4 条改为运行时对象断言(健康检查两域、策略对象冻结)、其余 9 条有同文件 DOM 等价断言或仅剩 NEG。第二批(v3.24.76)把 **505 → 493**:94-5~7 三条「多标签释放语义」(10 处正则)换成 `tests/iwb-tabs-release.spec.js` 的 3 条真 e2e,剩 1 条「消费方契约」(断言该 spec 在门禁内且 spec 源码真的读两个探针);另 2 条 `wPurgeIntent.add` 钉点改为读 `src/workspace-purge.js`。**这一批一换就查出 3 个真缺陷**(objectURL 从未释放 / 彻底删除留孤儿标签 · session / 刷新后误回收打开标签的图)—— 见 CHANGELOG v3.24.76。
- `app.js` = 单 IIFE **9,329 行**(**双层预算**:绝对上限 9,331 / 占总源码 ≤ 40%,现 **26.3%**,2026-11-12 起;此前为单一上限 8,509、零余量);`Workbench()` = **2,671 行**(上限 **2,673**,余量 2;2026-11-16 把生成取消族 `cancelRunsFor`/`cancelRun`/`cancelTaskJobs` 与工作区列表写回族 `persistWs`/`duplicateWs` 搬进 `src/runtime-workbench-logic.js`(`createCancelActions` / `createWorkspaceListActions`),并删掉全仓零调用的 `runAll`,3090 → 2,998);大量逻辑已抽到 `src/*.js`(现 **128** 个模块 / 26,191 行,`sourceModules` 128 项;v3.24.68 新增 `clipboard-graph.js`,v3.24.74 新增 `image-admit.js`,v3.24.75 新增 `image-dedupe.js`,v3.24.76 新增 `workspace-purge.js`,v3.24.79 新增 `generation-provider-ping.js`,v3.24.80 删除无调用的 `createWBFlushViewport` 17 行)。
- `app.js` = 单 IIFE **9,345 行**(**双层预算**:绝对上限 9,345 / 占总源码 ≤ 40%,现 **26.3%**,2026-11-12 起;此前为单一上限 8,509、零余量);`Workbench()` = **2,686 行**(上限 **2,686**,余量 0;2026-11-16 把生成取消族 `cancelRunsFor`/`cancelRun`/`cancelTaskJobs` 与工作区列表写回族 `persistWs`/`duplicateWs` 搬进 `src/runtime-workbench-logic.js`(`createCancelActions` / `createWorkspaceListActions`),并删掉全仓零调用的 `runAll`,3090 → 2,998);大量逻辑已抽到 `src/*.js`(现 **128** 个模块 / 26,194 行,`sourceModules` 128 项;v3.24.68 新增 `clipboard-graph.js`,v3.24.74 新增 `image-admit.js`,v3.24.75 新增 `image-dedupe.js`,v3.24.76 新增 `workspace-purge.js`,v3.24.79 新增 `generation-provider-ping.js`,v3.24.80 删除无调用的 `createWBFlushViewport` 17 行)。
- 门禁:`npm run verify` = `verify:ci`(`build` → `node --check app.js` → `node --check dist/app.js` → `check-dist.js` → `lint`(ESLint 正确性规则,`src/` + `app.js`,P4-16a)→ `test:unit` → `test` → `test:facts`)+ `test:e2e` (A) `package.json`。
## 1.5 内存基线(2026-11-30,v3.26.115,Windows / WebView2 实测)
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "image-workbench-web",
"private": true,
"version": "3.26.234",
"version": "3.26.235",
"description": "Browser-based node canvas image workbench",
"scripts": {
"build": "node scripts/build.js && node scripts/copy-plugins.js",
+2 -2
View File
@@ -102,9 +102,9 @@
"dir": "taskqueue",
"main": "main.js",
"style": "styles.css",
"version": "1.0.1",
"version": "1.0.2",
"files": {
"main.js": "b7d95beeeb8c3aa9fa5e283e825e618e7e828bd1a90a0c12d9ff89a0a3858324",
"main.js": "7fcefb26d1f5126f3f90e086bc6c36903083f4366b38c0d8b0c9cc10dfb86ee1",
"styles.css": "420ed2b5ce4dec2f054c2cbecc2f055868fa29e5583c6a364ef82ddefb227262"
}
}
+22 -5
View File
@@ -107,16 +107,32 @@
}
}
function thumbOf (it) {
if (it.thumbUrl) return el('img', { class: 'iwb-tq-img', src: it.thumbUrl, alt: '', draggable: 'false' })
function phEl (it) {
return el('div', { class: 'iwb-tq-ph' },
(function () { var s = svgEl('svg', { viewBox: '0 0 24 24', width: '20', height: '20', fill: 'none', stroke: 'currentColor', 'stroke-width': '1.6', 'aria-hidden': 'true' }); s.appendChild(svgEl('path', { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' })); s.appendChild(svgEl('polyline', { points: '7 10 12 15 17 10' })); s.appendChild(svgEl('line', { x1: '12', x2: '12', y1: '15', y2: '3' })); return s })(),
el('span', { text: it.kind === 'only' ? '仅记录' : '' }))
el('span', { text: it && it.kind === 'only' ? '仅记录' : '' }))
}
function thumbOf (it) {
if (it.thumbUrl) {
var img = el('img', { class: 'iwb-tq-img', src: it.thumbUrl, alt: '', draggable: 'false' })
img.addEventListener('error', function () { try { if (img.parentNode) img.parentNode.replaceChild(phEl(it), img) } catch (e) { /* ignore */ } })
return img
}
return phEl(it)
}
function stuckMin (it) {
if (!it || it.kind !== 'down' || it.status !== 'downloading') return 0
var t = Number(it.updatedAt) || Number(it.createdAt) || 0
if (!t) return 0
var ms = Date.now() - t
return ms > 60000 ? Math.floor(ms / 60000) : 0
}
function badgeOf (it) {
if (it.kind === 'ok') return el('span', { class: 'iwb-tq-badge ' + (it.inGallery ? 'ok' : 'warn'), text: it.inGallery ? '已入图库' : '待入库' })
if (it.kind === 'down') {
var sm = stuckMin(it)
if (sm) return el('span', { class: 'iwb-tq-badge warn', text: '可能卡住 · ' + sm + ' 分' })
var label = it.status === 'queued' ? '排队中' : '下载中'
if (it.status === 'downloading' && it.progress > 0) label += ' ' + Math.round(it.progress * 100) + '%'
return el('span', { class: 'iwb-tq-badge', text: label })
@@ -146,7 +162,8 @@
if (it.kind === 'fail' && it.error) main.appendChild(el('div', { class: 'iwb-tq-err', text: it.error + (it.retries ? (' · 已重试 ' + it.retries + ' 次') : '') }))
var acts = el('div', { class: 'iwb-tq-actions' })
if (it.kind === 'ok' && it.inGallery) acts.appendChild(el('button', { class: 'iwb-btn iwb-btn-sm iwb-tq-btn', text: '已在图库', disabled: 'disabled' }))
else if (it.kind === 'down') acts.appendChild(el('button', { class: 'iwb-btn iwb-btn-sm iwb-tq-btn', text: '下载中…', disabled: 'disabled' }))
else if (it.kind === 'down' && !stuckMin(it)) acts.appendChild(el('button', { class: 'iwb-btn iwb-btn-sm iwb-tq-btn', text: '下载中…', disabled: 'disabled' }))
else if (it.kind === 'down') acts.appendChild(btn('重新下载', 'iwb-tq-primary', function () { Promise.resolve(ctx.queue.restart(it.id)).then(function () { setMsg('已重新排队'); schedule() }).catch(function () { setMsg('重新下载失败') }) }))
else acts.appendChild(btn('下载', 'iwb-tq-primary', function (b) { b.disabled = true; ctx.queue.land(it.id).then(function (r) { b.disabled = false; setMsg(r && r.already ? '已在图库' : (r && r.ok ? '已加入落地队列,图库会自动刷新' : '下载失败')) ; schedule() }).catch(function () { b.disabled = false; setMsg('下载失败') }) }))
acts.appendChild(btn('复制原始链接', '', function () { ctx.queue.copyLink(it.id).then(function (r) { setMsg(r && r.ok ? '链接已复制' : '复制失败') }).catch(function () { setMsg('复制失败') }) }))
var loc = btn('定位', '', function (b) { b.disabled = true; ctx.queue.locate(it.id).then(function (r) { b.disabled = false; setMsg(r && r.ok ? '已定位到节点' : ({ 'board-missing': '画布已删除', 'node-missing': '节点已删除', 'missing-meta': '没有定位信息' }[r && r.error] || '定位失败')) }).catch(function () { b.disabled = false; setMsg('定位失败') }) })
@@ -215,7 +232,7 @@
global.IWBPluginHost.register({
id: 'taskqueue',
name: '任务队列',
version: '1.0.1',
version: '1.0.2',
apiVersion: 1,
capabilities: ['pages', 'queue'],
}, function (ctx) {
+2 -2
View File
@@ -1,7 +1,7 @@
{
"id": "taskqueue",
"name": "任务队列",
"version": "1.0.1",
"version": "1.0.2",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -13,7 +13,7 @@
"记录"
],
"files": {
"main.js": "b7d95beeeb8c3aa9fa5e283e825e618e7e828bd1a90a0c12d9ff89a0a3858324",
"main.js": "7fcefb26d1f5126f3f90e086bc6c36903083f4366b38c0d8b0c9cc10dfb86ee1",
"styles.css": "420ed2b5ce4dec2f054c2cbecc2f055868fa29e5583c6a364ef82ddefb227262"
}
}
+1 -1
View File
@@ -2014,7 +2014,7 @@ dependencies = [
[[package]]
name = "image-workbench"
version = "3.26.234"
version = "3.26.235"
dependencies = [
"arboard",
"base64 0.22.1",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.26.234"
version = "3.26.235"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.26.234",
"version": "3.26.235",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",
+1
View File
@@ -95,6 +95,7 @@
e.totalBytes = tot
e.progress = tot > 0 ? Math.min(1, rcv / tot) : 0
const t = now()
e.updatedAt = t
if (t - (e._progAt || 0) < 250 && !(tot > 0 && rcv >= tot)) return
e._progAt = t
emit('progress', publicView(e))
+1
View File
@@ -28,6 +28,7 @@
const API = {
list: call('list'),
retry: call('retry'),
restart: call('restart'),
land: call('land'),
preview: call('preview'),
copyLink: call('copyLink'),
+3 -2
View File
@@ -453,7 +453,8 @@
if (od && od.type === 'out' && (od.w || NODE_W) < 420) applyPatch(od.id, { w: 420 })
}
// 浏览器模式:图库索引/缩略图异步旁路写入,不阻塞生成结果和画布保存。
const runResult = await archiveGenerationResults(groups, () => refreshOutputs())
const _wsName = ((refs.workspaces || []).find((w) => w.id === runWorkspaceId) || {}).name || ''
const runResult = await archiveGenerationResults(groups, () => refreshOutputs(), { boardId: runWorkspaceId, boardName: String(_wsName), nodeId })
const failItems = []
for (const g of groups) for (const x of (g.items || [])) if (!x.ok) failItems.push(x.error || '生成失败')
if (failItems.length) {
@@ -807,7 +808,7 @@
}
const entry = { promptId: 'layers', label: '图层(' + ok.length + ' 张)', items: ok.map((l) => ({ ...l, label: l.name })) }
commitLayerResult(entry)
await archiveGenerationResults([entry], () => refreshOutputs())
await archiveGenerationResults([entry], () => refreshOutputs(), { boardId: activeWsId, boardName: String(((refs.workspaces || []).find((w) => w.id === activeWsId) || {}).name || ''), nodeId })
setNotice({ type: 'ok', text: '已生成 ' + ok.length + ' 张图层 ≈ ¥' + (ok.length * layerPriceOf(szParam)).toFixed(2) })
} catch (e) {
setNotice({ type: 'err', text: apiErrorMessage(e) })
+3 -2
View File
@@ -1258,7 +1258,7 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
.iwb-canvas-meta .iwb-status-err { color: var(--iwb-err); }
.iwb-canvas-topbar .iwb-top-nav-icon { width: 30px; height: 30px; }
/* S12:顶部标签条(浏览器式多画布标签)——UX_SPEC §4 单框扁平 token(容器透明、active 品牌色扁平高亮、只用 CSS 变量) */
.iwb-tabstrip { position: absolute; left: 0; right: 0; top: 0; height: var(--iwb-chrome-h); z-index: 36; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--iwb-chrome); box-sizing: border-box; border-bottom: 1px solid var(--iwb-border); overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.iwb-tabstrip { position: fixed; left: 0; right: 0; top: 0; height: var(--iwb-chrome-h); z-index: 36; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--iwb-chrome); box-sizing: border-box; border-bottom: 1px solid var(--iwb-border); overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.iwb-tabstrip .iwb-tab { pointer-events: auto; }
.iwb-tabstrip::-webkit-scrollbar { display: none; }
/* 标签:**全项目只有这一套**(v3.27.1 收敛)。高度/圆角/字号/内距走 token,改一档全局一致。
@@ -2285,6 +2285,7 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
position: absolute; inset: 0; z-index: 25; box-sizing: border-box;
padding: 42px 0 0 52px;
display: flex; flex-direction: column; background: var(--iwb-bg);
overflow: hidden; /* 2026-12-03:整页锁滚,只有 body 滚;避免标签条/页头被一起滚走 */
}
.iwb-plugin-page-head {
flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
@@ -2292,7 +2293,7 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
}
.iwb-plugin-page-title { font-weight: 800; font-size: 16px; color: var(--iwb-text); }
.iwb-plugin-page-sub { font-size: 12px; color: var(--iwb-text2); }
.iwb-plugin-page-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 40px; }
.iwb-plugin-page-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 40px; }
/* ── 快捷键弹窗(v3.25.59 分区罗列)──────────────────────────────────── */
.iwb-hotkey-help { display: flex; flex-direction: column; gap: 12px; }
+2 -2
View File
@@ -175,7 +175,7 @@ const MAX_SRC_GLOBALS = 124 // 2026-12-03 +1(123→124):新增 IWBPlugin
// · 图标解析统一(右键菜单 + 设置页走同一解析器,2 行) +2
// 通用件(pick/grant/stat/readDataUrl/readBlob/参数校验)全部在 src/image-file-ref.js
// 与 src/plugin-api-images.js,app.js 只做装配。
const MAX_APP_JS_LINES = 9331 // +185(9,146→9,331)2026-12-03:任务队列(queue/pages 能力、缩略图/状态/标题/定位装配)。之后只减不增。
const MAX_APP_JS_LINES = 9345 // +199(9,146→9,345)2026-12-03:任务队列(queue/pages、缩略图/状态/定位/滚动/卡住检测装配)。之后只减不增。
const MAX_APP_JS_SHARE = 0.40
// ── 历史记账(供回溯,逐条保留)──────────────────────────────────────────────
@@ -218,7 +218,7 @@ const MAX_APP_JS_SHARE = 0.40
// 需要实时读 .iwb-world 变换 + 按同类型实测高度校正视觉中心;属装配层的 DOM 读取,
// 放 src 会引入新的全局读取与边界快照改动,权衡后留在 app.js // +10(2026-11-01):背景色「悬停预览」的 DOM 补丁助手(纯 DOM,不写数据/不进撤销栈);
// 属装配层最小的 DOM 操作,放 src 会引入新的全局读取与边界快照改动,权衡后留在 app.js
const MAX_WORKBENCH_LINES = 2673 // +140(2,533→2,673)2026-12-03:同上(queue/pages 与任务队列页装配)。之后只减不增。
const MAX_WORKBENCH_LINES = 2686 // +153(2,533→2,686)2026-12-03:同上(任务队列装配与页面容器)。之后只减不增。
// 2026-11-18 v3.25.21:模态层指针守卫(2 行)
// 实测 3090 → 2998(省 92):① 生成取消族 cancelRunsFor/cancelRun/cancelTaskJobs
// → src/runtime-workbench-logic.js 的 createCancelActions(−53);② 工作区列表写回族