GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug] Inbox permanently stuck on "Looking in your inbox…" when a filed album has incomplete release metadata · Issue #4 · gavndev/codetta

[Bug] Inbox permanently stuck on "Looking in your inbox…" when a filed album has incomplete release metadata #4

New issue
Copy link
New issue
Copy link
Done
Done
[Bug] Inbox permanently stuck on "Looking in your inbox…" when a filed album has incomplete release metadata#4
Copy link

Description

@BernoldM
BernoldM
opened on Nov 23, 2026
Issue body actions

Description

The Inbox dialog can become permanently stuck on "Looking in your inbox…", even though background album matching, tagging and automatic filing continue working correctly.

The issue occurs when a previously filed album has an incomplete "release" object in the persisted Inbox state.

I reproduced the issue, inspected the stored data and captured the exact JavaScript exception. Removing the affected completed entry through Codetta's own API immediately resolved the problem.

Steps to reproduce

  1. Enable the Inbox with automatic filing.
  2. Import albums and allow Codetta to match and file them.
  3. Have a completed Inbox entry whose "release" object contains only an ID (as observed in my installation).
  4. Open the Inbox dialog.

Actual behavior

  • The dialog displays "Looking in your inbox…" indefinitely.
  • No albums, statuses or review buttons appear.
  • Closing and reopening the dialog does not resolve the issue.
  • Background imports continue working.
  • Albums requiring manual review become inaccessible through the Inbox UI.

Expected behavior

  • The Inbox should display all entries, including completed albums with incomplete release metadata.
  • Missing optional metadata must not prevent the entire Inbox from rendering.
  • Albums awaiting review should remain accessible.
  • If an entry is malformed, Codetta should handle it gracefully rather than leaving the loading screen visible indefinitely.

Confirmed root cause

  1. Incomplete release object in "inbox.json"

One automatically filed album had this persisted state:

Album: Doggfather 30: The Long Game
Status: filed
Release ID: 852c8296-460e-4a71-8934-e9d16af0b08b
Release fields: ['id']
Labels: MISSING

Other entries contained complete release metadata:

Album: The Break In
Artist: Black Knight
Status: review
Release fields: [..., 'labels', ...]
Labels: ['[no label]']

Album: Average Human Being
Status: filed
Release fields: [..., 'labels', ...]
Labels: []

  1. Frontend assumes "release.labels" always exists

In "src/codetta/web/static/js/musicbrainz.js", "mbMeta()" accesses:

c.labels[0]

However, the persisted release object above contains only "id".

This results in the following exception:

Uncaught (in promise) TypeError:
Cannot read properties of undefined (reading '0')

at mbMeta (musicbrainz.js:131:110)
at item (inbox.js:154:52)
at inbox.js:183:21
at Array.flatMap
at renderInbox (inbox.js:176:66)
at loadInbox (inbox.js:55:3)
at async HTMLButtonElement.openInbox (inbox.js:44:3)

The exception occurs during rendering, after the API request, outside the existing request-error handler.

Consequently, the initial loading placeholder is never replaced.

  1. Backend can persist incomplete release objects

In "src/codetta/web/routes/inbox.py", the following code path exists:

release=g.release if not release or (
g.release or {}
).get("id") == release else {"id": release}

When the selected release differs from the previously stored release, this expression can persist an object containing only the release ID.

This appears to be a possible source of the incomplete metadata seen in "inbox.json".

I have not independently confirmed which specific action originally created the ID-only record.

Verified workaround

I used the existing Inbox API to dismiss only the affected completed entry:

(async () => {
const response = await fetch("/api/inbox");
const data = await response.json();

const broken = data.groups.filter(g =>
g.status === "filed" &&
g.release &&
!Array.isArray(g.release.labels)
);

for (const g of broken) {
const res = await fetch("/api/inbox/dismiss", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ key: g.key })
});

console.log(g.key, res.status);

}
})();

The affected entry returned HTTP 200.

After refreshing the page, the Inbox worked normally again.

The album awaiting review was accessible, and no music files or metadata needed to be modified.

Suggested fixes

Frontend

Handle missing fields defensively:

c.labels?.[0]

Alternatively, normalize incomplete release objects before rendering.

Also consider protecting "renderInbox()" with appropriate error handling so one malformed entry cannot leave the entire dialog stuck on its initial loading state.

Backend

Avoid persisting ID-only release objects where the UI expects complete release summaries.

When changing a release ID, either retrieve the corresponding summary or explicitly support partial metadata objects throughout the application.

Regression tests

Add tests covering:

  • A "filed" Inbox entry with "release: {id: "..."}".
  • A release object without "labels".
  • Several Inbox entries where one has incomplete metadata.
  • Successful rendering of "review" entries despite malformed completed entries.
  • An error during rendering does not leave the loading indicator visible indefinitely.

Environment

  • Codetta: Docker deployment, current 0.11.x release (0.11.1 was the latest release during investigation)
  • Host: TrueNAS SCALE
  • Browser: Chromium-based Android browser
  • Music library: ZFS dataset mounted at "/music"
  • Inbox: External downloads directory mounted at "/inbox"
  • Automatic Inbox filing: Enabled

Additional information

The issue was reproduced across multiple sessions.

Two albums were successfully filed while another remained in "review", demonstrating that the processing backend continued operating independently of the broken Inbox dialog.

The JavaScript stack trace and the persisted Inbox data confirm the failure mechanism.

Screenshots of the stuck Inbox, the persisted release objects and the DevTools exception are available.

Screenshot_2026-11-23-20-19-33-42_a013cfde932f75b39985eb24624decf4.jpg
IMG_20261123_203232.jpg

Created with help of AI

Activity

  1. gavndev
    added 2 commits that reference this issue on Nov 23, 2026

    The Inbox always opens, even with an entry missing its details (#4)

    3ce9696

    Codetta 0.11.2

    1512930
  2. gavndev commented on Nov 24, 2026

    @gavndev
    gavndev
    on Nov 24, 2026
    Owner
    More actions

    Thanks for the detailed report as usual Bernold. So this was fixed in 0.11.2: the Inbox now opens even when an entry is missing some of its release details, and that entry just shows as needing a look. Of course you’re welcome to update to the latest (0.13.1). If it ever happens again, please reopen this.

    Reacted by BernoldM
  3. gavndev
    closed this as completedon Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.