Skip to content

v2.2.2 - Rotated PDF Pages & Tag Editor Field Clearing - #802

Merged
ajslater merged 44 commits into
mainfrom
develop
Jul 24, 2026
Merged

v2.2.2 - Rotated PDF Pages & Tag Editor Field Clearing#802
ajslater merged 44 commits into
mainfrom
develop

Conversation

@ajslater

@ajslater ajslater commented Jul 24, 2026

Copy link
Copy Markdown
Owner

What changed

Tag editor field clearing actually clears (comicbox 4.5.0)

Clearing a field in the tag editor was a silent no-op on the archive. The frontend encoded a clear as an empty patch value (""/{}/null/{name:""}), but comicbox prunes empty values on schema load and a merge write can only add or replace — so the value was left untouched in the file while the UI reported success.

Cleared (and emptied) fields now travel as comicbox delete_keys glom paths, the write API's explicit clear mechanism added in comicbox 4.5.0:

buildPatch(){patch, deleteKeys} → tag-write + preflight POSTs → TagWriteRequestSerializerBulkTagWriteTask.delete_keysBulkWriteItem.delete_keys.

  • A clear-only edit sends an empty patch and still writes (previously such items were dropped before reaching comicbox).
  • Rename previews layer the delete keys onto the preview config, so a cleared series or issue drops out of the previewed filename exactly as the real write will clear it.
  • Composite fields keep their existing partial-clear behavior — clearing an issue number but keeping the suffix still patches issue wholesale; only a fully-empty sub-object becomes a delete key.

PDF fixes (comicbox-pdffile 0.6.3)

  • PDF pages scanned upside down or sideways and righted by the pdf's rotation attribute displayed rotated when the reader served them as images. Only pages that took the image-serve path were affected, which is why some pages of a scan looked wrong and others didn't.
  • A read-only page serve could silently rewrite the comic on disk: MuPDF marks a document dirty when it repairs malformed content streams during the image-dominance classifier's text scan, and pdffile's close() saved on that flag at archive-cache eviction.
  • PDFs no longer count an embedded metadata file (e.g. a ComicInfo.xml codex itself wrote) as a page. Already-imported PDFs correct themselves on their next re-import, or immediately via Force Update Tags.

Lint

Separate commit: the ruff 0.15.22 → 0.16.0 upgrade in update deps enabled rules flagging four pre-existing spots, which were failing lint/CI independently of this work.

Verification

  • New tests/test_tag_write_delete_keys.py (8 tests) covers the wire end to end, including a real archive write asserting the cleared field is gone from the CBZ on disk, and a guard that codex's read-side COMICBOX_CONFIG never becomes the write base config (comicbox unions a write's delete_keys with the base config's, and the read config skips every field codex doesn't consume — using it would strip them all from users' archives).
  • New frontend/tests/unit/edit-panel-delete-keys.test.js (9 tests) covers each clear type plus the clear-only POST payload.
  • Full suites green: 709 backend, 312 frontend. make lint and make ty clean.
  • Rotation fix verified against the reported file: /api/v4/comics/154/pages/11?serve=image serves upright, and the source PDF's hash is unchanged after serve + close.

Reviewer notes

  • Requires comicbox 4.5.1 / comicbox-pdffile 0.6.3 (both pinned and locked).
  • Served pages are HTTP-cached for 7 days, so a page cached rotated before the upgrade needs a hard refresh.
  • The Monochrome checkbox is fixed too: comicbox 4.5.1 repairs ComicInfo's BlackAndWhite in both directions (the Yes value was missing from its enum, so the field could never be read or written). That makes it a real tri-state tag, so codex now clears it by deleting the tag rather than writing a No that would assert the comic is known to be color.

🤖 Generated with Claude Code

ajslater and others added 30 commits July 3, 2026 16:19
The Profile dialog's self-service password change posted only
oldPassword + password to /api/v4/auth/password/change, but that
endpoint is rest_registration's ChangePasswordView whose serializer
requires password_confirm (camelCased passwordConfirm) — so the
request 400'd with "passwordConfirm field is required".

The dialog already collects and validates passwordConfirm; forward it
in the changePassword payload, matching change-password-dialog.vue and
the register/reset flows. Add a regression test asserting the field is
sent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ect.any

The @vitest/eslint-plugin valid-expect rule misclassifies expect.any() as
chai's `.any` flag chain and reports "unknown modifier". Disable the rule on
the one nested assertion with a documented reason rather than weakening it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
comicbox 4.0.5 no longer applies the effort knob to Metron tagging, and
Metron's search is now a flat two-step (series_list + issues_list) that
match mode does not change.

- Remove the vestigial `effort` option (serializer, task, resume params,
  and test). It was collected by the API but never passed to comicbox's
  OnlineSession.
- Count estimate calls-per-comic per source: Metron a flat 2, Comic Vine
  keeps its per-mode 2/3/5. First-match-wins bills the costliest single
  source; merge sums per-source calls. Mirrored in the launcher dialog.
- Resume view drops unknown persisted params so a pre-upgrade `effort`
  key in the file-based cache can't crash the task rebuild.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Two facilities codex hand-synced from comicbox now consume it directly:

- Source names: KNOWN_SOURCES and the task/serializer/frontend default
  lists derive from comicbox's canonical SOURCE_NAMES tuple instead of
  repeating {"metron","comicvine"} literals in four places. The frontend
  gets it through the tagging choices JSON (build-choices), so a new
  comicbox source propagates without hand-editing every site.

- Issue-id parsing: the two byte-identical trailing-int regex copies
  (stored_id_prepass, explicit_id) collapse into one
  issue_id.parse_issue_id built on comicbox's canonical PARSE_COMICVINE_RE.
  It honors the real Comic Vine 4-digit long-key rule instead of grabbing
  any trailing int; an unrecognized key returns None, which safely falls
  back to search / rejects the id rather than guessing wrong.

No user-visible behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The "~N requests/comic" tail in the match-mode hints only describes Comic
Vine, whose calls scale with match mode; Metron is a flat two-step search
regardless of mode. Drop the tail from the base hints and append a
"~N Comic Vine requests/comic" suffix only when Comic Vine is an active
source, so a Metron-only run no longer shows a count that doesn't apply.
The number derives from the existing COMICVINE_CALLS_BY_MODE constant.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The poller's DiskSnapshot._walk() called os.scandir() with no guard
around the directory open, so a single permission-denied folder (e.g.
a Synology /comics/#recycle bin) raised PermissionError that propagated
up and killed the LibraryPollerThread, aborting the scan of every other
folder (issue #795).

- Wrap os.scandir so an unreadable/vanished directory is logged and
  skipped instead of aborting the whole poll, and widen the per-entry
  guard to cover entry.is_dir(), which can also raise PermissionError.
  This matches the os.walk default-onerror behavior the watcher relies
  on.
- Register the OS/NAS metadata basenames the filters module already
  documented but never populated (@eadir, #recycle, __MACOSX,
  Thumbs.db, desktop.ini), so the walker skips the recycle bin entirely
  and NAS/OS junk never enters the library.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
commit 9db6fe273622635700defb5c9015bf540630e40a
Merge: c8984b9ed ed38cb5
Author: AJ Slater <aj@slater.net>
Date:   Sat Jul 4 15:57:53 2026 -0700

    Merge branch 'develop' into online-estimate-consume-comicbox

commit c8984b9ede16f82f398501adb49c58d5428c168d
Merge: 2b2e63a35 cd84ed9
Author: AJ Slater <aj@slater.net>
Date:   Sat Jul 4 13:22:52 2026 -0700

    Merge branch 'develop' into online-estimate-consume-comicbox

commit 2b2e63a35013de0cd5593c8c5cadb360ffbd23ab
Author: AJ Slater <aj@slater.net>
Date:   Fri Jul 3 20:36:09 2026 -0700

    feat(onlinetag): consume comicbox 4.1.0 estimate; drop the codex copy

    Pin comicbox ~=4.1.0 and move the online-tag run estimate onto its
    comicbox.online_estimate.estimate_run() home:

    - estimate.py becomes a thin seam over comicbox: estimate_seconds()
      forwards to estimate_run().seconds and re-exports SOURCE_RATE_PER_MINUTE.
      The request/rate constants and math are deleted -- comicbox owns and
      tests them now.
    - The launcher dialog's per-source rates and per-comic request model derive
      from comicbox via a new tagging-estimate.json (choices/onlinetag.py,
      build-choices); only display labels stay in the component, so the JS
      estimate can no longer drift from the backend.
    - The codex estimate test slims to an adapter / re-export guard.

    Prep branch: the ~=4.1.0 pin does not resolve until comicbox 4.1.0 is
    published, so uv.lock is untouched and CI targets that shell out to `uv`
    will fail until then. Post-publish, run `uv lock`; the change was validated
    locally with the 4.1.0 modules installed into the venv.

    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
AdminOnlineTagResumeView.post crossed radon's C threshold once the resume
descriptor sanitization landed. Move that logic (sources tuple coercion +
dropping keys no task field accepts) into a module-level helper; the view
falls to rank B and reads more directly. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
matchModeHint read an undefined COMICVINE_CALLS_BY_MODE, throwing a
ReferenceError on every launcher-dialog render (and failing
tests/unit/launcher-dialog.test.js). Point at the real
TAGGING_ESTIMATE.comicvineRequestsByMode map that callsForSource
already uses.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
An un-nested overlay is silently ignored by confuse.
…y failures

Answering a deferred prompt fetched the chosen issue against the path
serialized into the prompt at scan time. When an earlier write for the
same comic ran with rename enabled (the comic's other source's prompt,
or a stored-id prefetch), that path was stale and the apply died with an
uncaught FileNotFoundError — after the prompt was already consumed, so
the admin's pick vanished with no feedback.

- _apply_resolution now re-reads the comic's path from the DB by pk;
  a missing row reports to the Tagging error panel instead of fetching
  a dead path.
- fetch/replay failures (ComicboxError, OSError) and non-resolving
  explicit ids now land on the Tagging error panel instead of only the
  log, since the pick can no longer be re-prompted.
- stored-id prefetch and tag_by_id also catch OSError so a vanished
  file degrades gracefully.
- regression test for the COMICBOX_CONFIG general-section overlay
  (un-nested loglevel/delete_keys were silently ignored, letting
  comicfn2dict remainders like "(0000)" leak into rename targets).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(auth): native OIDC login via django-allauth

Codex becomes an OIDC Relying Party (Authentik/Authelia) with a
config-gated login flow:

- [auth.oidc] TOML section + CODEX_AUTH_OIDC_* env overrides
- allauth apps installed unconditionally; behavior gated on
  AUTH_OIDC_ENABLED (all OIDC paths 404 when off)
- CodexSocialAccountAdapter: username linking (superusers included,
  documented trust boundary), optional email linking, claim-chain
  username mapping with sub-hash collision suffix, groups-claim sync
  to existing Django groups, admin-group grant/revoke, error
  redirects to the SPA (never an allauth template)
- Branded throttled init endpoint /api/v4/auth/oidc/login; allauth
  login/callback mounted at /sso/ (outside the namespaced API tree so
  allauth's internal reverses work)
- RP-initiated logout URL via cached discovery document using the
  spec's client_id parameter (no stored tokens needed)
- /session payload gains public oidcEnabled/oidcProviderName/
  oidcLoginUrl and authenticated oidcLogoutUrl
- Profile username locks per-user when an OIDC identity is linked
- OIDC failures reuse the failed-login log line format for fail2ban

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(frontend): SSO login button, RP logout, and sso-error page

- auth store: oidc admin flags, loginSSO() full-page navigation,
  logout() follows oidcLogoutUrl for RP-initiated logout
- SsoLoginButton shared by the login dialog (with divider) and the
  unauthorized lock screen
- /auth/sso-error route + page mapping backend error codes to human
  messages, with retry hidden for non-retryable codes

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs(auth): OIDC setup guide + complete tinyauth forward-auth recipe

- README: native OIDC section (config table, redirect URI with prefix,
  Authentik/Authelia walkthroughs, identity-mapping and admin-linking
  trust warning, session-lifetime and OPDS caveats)
- README: full nginx auth_request recipe for tinyauth with header
  override hardening, Traefik/Caddy equivalents, and a forward-auth
  deployment checklist (OPDS + WebSocket gating, spoof test)
- schema test: allauth views stay out of the OpenAPI schema
- test typing fixes surfaced by basedpyright

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* update deps

* fix(settings): nest comicbox loglevel/delete_keys under general section

An un-nested overlay is silently ignored by confuse.

* fix(onlinetag): resolve prompts against current DB path, surface apply failures

Answering a deferred prompt fetched the chosen issue against the path
serialized into the prompt at scan time. When an earlier write for the
same comic ran with rename enabled (the comic's other source's prompt,
or a stored-id prefetch), that path was stale and the apply died with an
uncaught FileNotFoundError — after the prompt was already consumed, so
the admin's pick vanished with no feedback.

- _apply_resolution now re-reads the comic's path from the DB by pk;
  a missing row reports to the Tagging error panel instead of fetching
  a dead path.
- fetch/replay failures (ComicboxError, OSError) and non-resolving
  explicit ids now land on the Tagging error panel instead of only the
  log, since the pick can no longer be re-prompted.
- stored-id prefetch and tag_by_id also catch OSError so a vanished
  file degrades gracefully.
- regression test for the COMICBOX_CONFIG general-section overlay
  (un-nested loglevel/delete_keys were silently ignored, letting
  comicfn2dict remainders like "(0000)" leak into rename targets).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* feat(auth): move OIDC config from codex.toml to the Admin UI Auth tab

OIDCSettings DB singleton (EmailSettings pattern) becomes the sole
config source, read at request time:

- OIDCSettings model + migration 0047 (seeds pk=1, one-time courtesy
  import of any pre-GUI [auth.oidc] TOML values); client_secret
  encrypted at rest via EncryptedCharField
- get_oidc_settings()/oidc_enabled() in settings.db; cachalot makes
  admin edits live on the next request, no restart
- codex/oidc.py rewired to request-time reads; new adapter
  list_apps override builds an unsaved SocialApp from the row
  (per-app settings['scope'] wins in allauth's get_scope), so
  disabled state keeps allauth's own DoesNotExist -> 404 gating
- RP-initiated logout and session flags read the row
- AdminOIDCSettingsView GET/PUT (write-only secret + clientSecretSet
  mirror, discovery-cache invalidation on save) and AdminOIDCTestView
  (discovery-document probe) at /api/v4/admin/oidc-settings[/test]
- New Admin UI Auth tab mirroring the Email tab: draft/dirty
  tracking, never-echoed secret with Clear Credential, redirect-URI
  display, Test Connection endpoint report
- [auth.oidc] TOML section and CODEX_AUTH_OIDC_* env overrides
  removed; README updated
- Tests now seed the DB row instead of patching module constants

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* format

* update deps and fix

* fix(admin): gate the OIDC enable switch on server URL + client ID

The Auth tab's Enable OIDC Login checkbox is disabled until a valid
server URL and a client ID are entered (it can always be unchecked so
clearing a field never strands the switch). The serializer enforces
the same invariant for API clients and partial updates that blank a
prerequisite while enabled — previously such a save produced a
silently inert enabled=true row.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(admin): Auth tab gains Account & Access flags, tinyauth note, name gate

- Move the Account & Access flag cards (Registration, Verify New User
  Email, Non-Users) from the Users tab to the Auth tab — they govern
  how people get in, which is that tab's subject
- Auth tab prose explains that forward-auth gateways like tinyauth are
  not OIDC providers and points them at Remote-User header auth, which
  coexists with OIDC
- Provider name joins server URL and client ID as an enable
  prerequisite, in the UI switch gate and the serializer invariant

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* style(admin): visually nest the OIDC subsections under their header

AdminSection gains a sub variant: a small uppercase overline title (h4,
$text-meta) and an indented left rule, with tighter sibling rhythm than
top-level sections. The Auth tab wraps the whole OIDC block — prose,
Identity Provider, User Mapping, Logout, and Test Connection — in one
parent 'OIDC Single Sign-On' AdminSection with the config groups as sub
sections, so their subordination to the OIDC header is unmistakable
next to the sibling Account & Access section. Documented in DESIGN.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* style(admin): collapse the OIDC section when OIDC is disabled

Most admins never configure OIDC, so the section body — prose, config
sub-sections, and Test Connection — hides behind an AdminExpandToggle
disclosure. It starts expanded only when OIDC is already enabled;
otherwise a one-line hint summarizes what's inside next to a Configure
toggle. The disclosure is initialized once from the saved state so
saving a disable doesn't slam the panel shut mid-edit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs(admin): plain-English hints for PKCE and other OIDC jargon fields

PKCE, Client ID, Username Claim, and Groups Claim now carry hints an
admin who has never touched OIDC can act on — including what a claim
is and why PKCE should stay on.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* test(sso): authentik + tinyauth manual test harness in test-proxy/

Adds a docker-compose IdP stack and nginx wiring so SSO can be manually
verified before release:

- compose.yaml: authentik (OIDC provider, :9010) + tinyauth (forward
  auth, :3232), everything bound to localhost with throwaway creds
- authentik/blueprints/codex-test.yaml: auto-applied fixtures — readers
  and codex-admins groups, testuser/testadmin, and the codex-test OIDC
  client with callback URIs for proxied and direct, prefixed and bare
- forwardauth.conf: nginx :8081 gating Codex behind tinyauth
  auth_request with an overriding Remote-User header
- README.md: step-by-step test matrix covering native OIDC (login,
  group sync, admin mapping, RP logout, linking, error page, disabled
  404) and forward-auth (login, gating, spoof-proofing, coexistence)

tinyauth DB path pinned to the writable /data volume (workdir is
root-owned). test-proxy/ excluded from eslint: authentik !Find tags and
compose healthcheck arrays require flow-style YAML the yml plugin bans.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* test(sso): run the harness nginx as a compose service

nginx joins authentik + tinyauth in compose.yaml, so only Codex runs on
the host. The native bin/run-test-proxy.sh path still works — both share
server.conf/forwardauth.conf, with the sole native-vs-container
difference (backend addresses) isolated into named upstreams:

- upstreams-native.conf: localhost backends (host nginx)
- upstreams-docker.conf: host.docker.internal + tinyauth service name
- connection-upgrade.conf: the ws-upgrade map, now shared
- ssl-listen.conf / ssl-listen-none.conf: SSL/QUIC listeners split out so
  the container serves plain HTTP (native keeps the 8443 listeners)

The compose nginx mounts these into the stock image's conf.d and reaches
host Codex via host.docker.internal (extra_hosts host-gateway for Linux).

Also fixes a latent harness bug that would break OIDC through the proxy:
X-Forwarded-Host used $host (strips the port), so Django's
build_absolute_uri produced a portless redirect_uri that couldn't match
the registered callback. Now $http_host, port included.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* test(sso): fix tinyauth boot crash on localhost app URL

tinyauth v5 derives a cookie domain from its app URL at startup and
rejects single-label hosts and IPs ('invalid app url, must be at least
second level domain'), so http://localhost:3232 crash-looped. Move the
forward-auth path onto *.localtest.me (all subdomains resolve to
127.0.0.1 via public DNS, every browser, no /etc/hosts):

- tinyauth app url -> http://tinyauth.localtest.me:3232
- gated Codex      -> http://codex.localtest.me:8081
- shared cookie    -> .localtest.me (spans both)

The @tinyauth_login redirect and README Test 2 follow. OIDC/authentik
stay on localhost (no cross-host cookie needed there).

Also documents in README Troubleshooting that the harness publishes only
9010/8080/8081/3232 and never binds Vite's 5173 — a blocked HMR is a
stale vite process, and 8080/8081 clashes come from running native
make dev-reverse-proxy alongside the compose nginx.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* test(sso): set authentik provider grant_types; drop IPv6 host-gateway

Two issues from the first live OIDC run:

- 'Login with Authentik' failed with authentik logging 'Invalid
  grant_type for provider'. authentik 2026.x added an explicit
  grant_types model field that defaults to an EMPTY list, so a blueprint
  that omits it creates a provider allowing no grants and the authorize
  step returns invalid_request. Set grant_types: [authorization_code,
  refresh_token] on the provider.

- nginx logged 'connect() to [fd..::254]:9810 Network unreachable' then
  fell back to IPv4. The IPv6 came from extra_hosts host-gateway (a
  Docker Desktop IPv6 ULA gateway Granian doesn't listen on). Comment it
  out — Docker Desktop provides an IPv4 host.docker.internal built-in;
  Linux users uncomment it.

README troubleshooting covers both, including re-applying the blueprint
to an already-running authentik.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(auth): refresh public flags when OIDC is toggled or on logout

The 'Login with <provider>' button (adminFlags.oidcEnabled) went stale
after disabling OIDC: OIDCSettings is a singleton with no
admin.flags.changed websocket broadcast, and logout() left adminFlags
untouched, so the button lingered on the login screen until a manual
page reload.

- admin.updateOidcSettings now calls auth.loadAdminFlags after a save,
  resyncing the public OIDC flags immediately.
- auth.logout now re-fetches public flags (except when doing an
  RP-initiated full-page redirect, which reloads anyway), so the
  logged-out login screen always reflects current settings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* update deps

* chore(lint): clear radon CC/MI and remark warnings

- codex/oidc.py: extract CodexSocialAccountAdapter._sync_admin from
  _sync_user (rank C -> B); keyword-only bool arg for FBT001.
- tests: split the 940-line test_onlinetag_session_manager (MI rank B,
  pre-existing on develop) — move the TagPassRunner and stored-id-map
  classes into test_onlinetag_tag_pass.py, importing the shared doubles
  from the session-manager module (as test_opds_schema already does).
  Both files now MI rank A.
- test-proxy/README.md: wrap the bare http://localhost autolink in <>
  and the [fd..::254] nginx error in backticks so remark-lint stops
  reading it as a link reference.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
simyan 3.0 removed the cache= constructor kwarg. The credential check
now passes cache_expiry=DO_NOT_CACHE with the cache/ratelimit sqlite
files in a throwaway temp dir, so validation always hits the network
(api_key is excluded from simyan's cache key) and leaves no files
behind. Also note comicbox 4.1.1's ComicVine improvements in the
v2.2.0 news.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ajslater and others added 12 commits July 13, 2026 14:50
…metic

test_estimate_seconds_passes_merge_flag pinned a hardcoded 1000.0 that
went stale when comicbox 4.1.1 changed Comic Vine pacing to bill the
busiest resource pool (simyan 3.x per-endpoint buckets) instead of the
request total. The codex seam only forwards to comicbox.estimate_run, so
re-derive nothing here: assert the flag's defining effect — merge sums
every source's pace, so it costs strictly more than first-match-wins —
which proves forwarding without coupling to comicbox's rate model.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
comicbox 4.3.0 (mokkari 4 header-driven Metron rate limits), pinia 4.0.2,
vue-router 5.2, vuetify 4.1.5, vite 8.1.5, eslint plugin updates.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…i 4)

Testing Metron credentials in the Admin panel now reports the account's
real burst and daily limits read off the validation response's
X-RateLimit-* headers — the daily limit reflects the user's Metron donor
tier. The online tagging status table shows the live daily budget as a
run progresses, via comicbox 4.3.0's newly wired
OnlineSession.rate_limit_status().

Also removes a ty ignore in tests/opds_schema.py made stale by the dep
updates.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
comicbox 4.4.0 remaps ComicInfo CommunityRating / CBI rating — the tags
that fed critical_rating — to its new community_rating field
(average_rating + rating_count, Metron-filled), and critical_rating no
longer persists to any format. Migration 0048 renames the column
(values carry: same tags, same scale), adds community_rating_count and
alternative_issue number/suffix columns, and remaps user settings that
reference the old key (order_by, table_columns JSON) in RunPython.

Community rating gets full browser parity: sort (Avg aggregate), table
column, sidebar filter, and field search incl. rating_count. The
metadata dialog shows '4.2 / 5 (128 ratings)' and the tag editor edits
the pair, with the count enabled for MetronInfo only (the only format
that persists it). Alternative issues import and display ('#43.5AU').

Sidecar backups tolerate the rename both ways: schema column renamed,
restore remaps legacy critical_rating filter columns, order_by values,
and table_columns keys from old dumps.

Also: ty ignores for dep-bump invalid-method-override errors in
vuetify serializer fields; test fixtures rebuilt with deterministic
past-dated zip mtimes (the importer prefilter skips future-dated
embedded mtimes as unchanged).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PDF pages scanned upside down or sideways and righted by the pdf's
rotation attribute displayed rotated when the reader served them as
images; pdffile 0.6.3 re-renders rotated image-dominant pages instead
of serving the stored bytes. Also stops a read-only page serve from
rewriting a pdf on disk when MuPDF repairs its content streams in
memory (close() no longer saves on the repair-dirty flag).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Clearing a field encoded the clear as an empty patch value (""/{}/null),
but comicbox prunes empty values on schema load and a merge write can
only add or replace — so every "clear field" action was a silent no-op
on the archive.

Cleared and emptied fields now travel as comicbox delete_keys glom paths
(new in comicbox 4.5.0): buildPatch returns {patch, deleteKeys} ->
tag-write and preflight POSTs -> serializer -> BulkTagWriteTask ->
BulkWriteItem. A clear-only edit sends an empty patch and still writes.
Rename previews layer the delete keys onto the preview config so a
cleared series or issue drops out of the previewed filename too.

Also document why the read-side COMICBOX_CONFIG must never become the
write base config: comicbox unions a write's delete_keys with the base
config's, and the read config skips every schema field codex doesn't
consume, so using it would strip all of them from the user's archive.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The dependency update to ruff 0.16.0 enabled rules that flag four
pre-existing spots, failing lint (and CI) independently of any code
change: RUF036 None-last in two exception handler unions, PLC0206 dict
iteration without .items(), and PLR0917 too many positional arguments.

The mail backend's positional signature mirrors Django's
SMTPBackend.__init__ to stay a drop-in, so PLR0917 joins the PLR0913
suppression already there rather than changing the signature.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ajslater ajslater changed the title v2.2.2 - Fix Rotated PDF Page Serving v2.2.2 - Rotated PDF Pages & Tag Editor Field Clearing Jul 24, 2026
ajslater and others added 2 commits July 24, 2026 13:16
comicbox 4.5.1 fixes ComicInfo's BlackAndWhite in both directions, so
monochrome is now a real tri-state tag: Yes, No, or absent. The clear
icon set the patch value to false, which now writes <BlackAndWhite>No
</BlackAndWhite> — asserting the comic is known to be color instead of
removing the tag. The bug was invisible before 4.5.1 because nothing
was written at all.

Cleared monochrome joins the other cleared fields in delete_keys;
explicitly unchecking the box still patches a false.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ajslater
ajslater merged commit b27def2 into main Jul 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant