Skip to content

Gallery 1.1.8

Choose a tag to compare

@h-void h-void released this 18 Oct 18:05
· 3 commits to master since this release

v1.1.8(2026-10-19)

本版更新为 1.1.7 → 1.1.8 的增量。

1.1.8 把角色库导入做成可恢复的后台任务,前端冷启动体积减半,标签名按大小写区分身份,整理与归档计划在日期、标签、改名、解压、整移和回收站恢复后保持一致;网盘派发、自动入库、备份保留与健康日志也在这一版收口。

主要变化

  • 角色库导入(导入角色):
    • 导入在后台任务中运行:启动请求立即返回任务状态,请求连接随即释放;任务槽保证同一时间只有一个导入,重复启动返回忙碌状态。
    • 进度轮询在单次失败后继续工作;切页回来先读取服务端任务,进度条和导入按钮始终反映真实状态。
    • 角色已有参考图时直接进入候选评估,跳过全量推理;候选按稳定核心投票(≥0.95 近重复、≥0.35 相似度、两票支持)挑选,默认不设每角色终身上限,单次任务用 limit_per_tag 控制节奏。
    • 只有成功写入参考图才创建角色;同名角色返回 409;删除角色与参考图记录在同一事务完成;参考图按真实图片格式识别。
  • 标签身份与整理计划一致性:
    • 标签名按大小写区分身份(Swim 与 swim 是两个标签),编辑选择器按精确拼写匹配,搜索保持宽松。
    • 日期、标签、文件夹改名、压缩包解压、画师整移与回收站恢复都会同步失效已确认的整理计划;归档改名同步 items.folder_name,mode=set 的删除传播到同哈希组。
    • 命名规则迁移预览与执行在空值、日期合法性、墙钟时间、扩展名追加与反斜杠分隔符上保持一致。
  • 回收站与备份:
    • 旧快照恢复补齐 NOT NULL 列默认值;回收记录跟随文件夹改名/撤销迁移;备份目录时间按本地时区解析,db-backups/housekeeping 不计入保留位,也不显示为 0 字节备份。
  • 网盘、扫描与发布暂存:
    • 网盘派发窗口跳过重试耗尽的命令,后续命令照常派发;自动入库按实际投递文件计数,无法索引的文件结算后队列继续推进;409 重试被拒时释放忙碌键。
    • 扫描保留名称以点开头的根目录;发布暂存清扫覆盖任意生产深度的孤儿 .part 文件;画师整移按包含关系定位所属根并重写 /picturesN 别名。
    • 下载「全选当前筛选」生效期间,逐行勾选保持锁定,选择集与筛选条件一致。
    • 归档单条目预览纳入媒体能力闸门,非媒体成员以附件下载。
  • 架构与性能:
    • 媒体服务按回收站与视频拆分,遗留 upstream 代理模块移除,模块名保持兼容;维护工作台与词典按需加载(冷启动即时 JS 约 998 KB → 521 KB)。
  • 健康、日志与分页:
    • /api/health 最近错误包含多行日志的续行(堆栈、Caused by 等);哈希状态提供 worker.thread_alive;7z 流式解压按退出码判定成功/警告/致命。
    • /api/items 游标分页的 total 为整个筛选集大小,与偏移分页一致。
    • 旧库(无 artist_profile_links 表)删除画师链接返回「未删除」。

安装包

  • 文件:gallery_1.1.8_x86_64.fpk
  • SHA-256:B8889614987F2B24ABEFF49BE20AE3BA2026CC962319EFDE6CB1F513AA8F1C9E
  • 格式:官方 fnpack 生成的 gzip tar FPK,目标架构 x86_64,服务端口 8899

v1.1.8 (2026-10-19)

This release covers the 1.1.7 → 1.1.8 delta.

v1.1.8 turns character-library import into a recoverable background job, halves the frontend's eager cold-start payload, makes tag names case-sensitive identities, and keeps organization and archive plans consistent across date, tag, rename, extraction, whole-artist move, and recycle-restore changes. Netdisk dispatch, auto-import, backup retention, and health logging are also wrapped up in this release.

Key Changes

  • Character Library Import:
    • Import runs as a background job: the start request returns the job state immediately and releases the request connection; the job slot allows one import at a time, and a second start returns the busy state.
    • Progress polling keeps working after a transient failure; re-entering the view reads the server job first, so the progress bar and import button always reflect the real state.
    • Characters with existing references go straight to candidate evaluation instead of full inference; candidates are chosen by stable-core voting (≥0.95 near-duplicate, ≥0.35 similarity, two supporting votes), with no default lifetime cap and per-job pacing through limit_per_tag.
    • A character is created only when a reference is actually written; duplicate names return 409; deleting a character and its references is one transaction; uploaded references are identified by real image bytes.
  • Tag identity and plan consistency:
    • Tag names are case-sensitive identities (Swim and swim are two tags); the edit picker matches exact spelling while search stays forgiving.
    • Date, tag, folder-rename, archive-extraction, whole-artist move, and recycle-restore operations invalidate confirmed organization plans; archive renames also update items.folder_name, and mode=set removals propagate to the same-hash group.
    • Naming-rule migration previews and execution agree on empty values, calendar-valid dates, wall-clock times, extension appending, and backslash separators.
  • Recycle bin and backups:
    • Restoring legacy snapshots fills NOT NULL column defaults; recycle entries follow folder rename/undo; backup directory timestamps are read in local time, and the db-backups/housekeeping container is excluded from retention slots and from 0-byte backup listings.
  • Netdisk, scan, and publish staging:
    • The netdisk dispatch window skips commands whose retries are exhausted, so later commands still dispatch; auto-import counts delivered files, and unindexable files settle so the queue keeps moving; a declined 409 retry releases the busy key.
    • The scan keeps walk roots whose names start with a dot; the publish staging sweep covers orphaned .part files at any production depth; whole-artist moves resolve the owning root by containment and rewrite /picturesN aliases.
    • Per-row ticks stay locked while "all works of this filter" is active, keeping the selection consistent with the filter.
    • Single-archive entry previews sit behind the media capability, and non-media members download as attachments.
  • Architecture and performance:
    • Media serving is split into recycle-bin and video modules, the legacy upstream proxy module is removed while module names stay compatible, and the maintenance workbench plus dictionary load on demand (eager cold-start JS about 998 KB → 521 KB).
  • Health, logs, and pagination:
    • /api/health includes continuation lines of multi-line log errors (stack frames, Caused by, notes); hash status exposes worker.thread_alive; 7z streaming decides success/warning/fatal from documented exit codes.
    • /api/items cursor pagination reports the whole filtered set as total, matching offset mode.
    • Deleting an artist profile link on an old database without the artist_profile_links table answers "nothing deleted".

Package

  • File: gallery_1.1.8_x86_64.fpk
  • SHA-256: B8889614987F2B24ABEFF49BE20AE3BA2026CC962319EFDE6CB1F513AA8F1C9E
  • Format: gzip tar FPK generated by the official fnpack tool, architecture x86_64, service port 8899