Skip to content

Studio: an offline audio.cpp listing checks the account grant on the disk pool - #14829

Merged
danielhanchen merged 4 commits into
mainfrom
studio-offline-audio-listing-pool
Oct 25, 2026
Merged

danielhanchen merged 4 commits into
mainfrom
studio-offline-audio-listing-pool

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

#14134 gave disk-only GGUF listings their own thread pool so they never queue behind stalled Hub listings. The audio.cpp branch (_audio_cpp_variants_answer) still ran the managed-account preflight with listing_thread(False, require_model_access, ...): on the Hub pool and without offline, even for an offline request. With the Hub pool held by stalled listings, an offline audio.cpp listing for a managed account waited for them before it reached its disk-only resolver, and the grant check itself could ask the Hub.

Change

  • network is computed first; the preflight then runs on the disk pool with offline=True when the listing is offline (request flag or Hub offline mode), the same way the generic listing path already passes offline to require_model_access.
  • Online listings are unchanged.

Tests

  • tests/test_gguf_listing_threads.py::test_an_offline_audio_preflight_does_not_queue_behind_stalled_hub_listings: holds the only Hub pool worker, then lists an audio.cpp repo offline as a managed account. It fails on main (the preflight waits for the stalled worker) and passes here; it also checks the grant check got offline=True and the resolver network=False.
  • The rest of test_gguf_listing_threads.py plus the GGUF variant and account access suites: 198 passed.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T05:27:05.412574Z ca5c25b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: cdb9ac6130

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: ca5c25bb45

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 6eeb690 into main Oct 25, 2026
27 of 44 checks passed
@danielhanchen
danielhanchen deleted the studio-offline-audio-listing-pool branch October 25, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant