Skip to content

Studio: log a pending embedder download once instead of a traceback on every compaction - #12443

Merged
danielhanchen merged 3 commits into
mainfrom
studio-archive-pending-embedder-quiet
Oct 1, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
studio-archive-pending-embedder-quiet

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The conversation archive behind rolling-context compaction is on by default and runs on any long chat, RAG or not. When an embedding model was picked in Settings but its download never finished, every fit that drops turns logged a full WARNING traceback twice (conversation_archive.ingest_failed and conversation_archive.dense_unavailable, both ending in EmbeddingModelDownloadRequiredError). That is a setting, not a fault, and the tracebacks read like the cause of unrelated problems, as in #12435, where the reporter had never enabled RAG.

This keeps the behaviour and only changes how it is reported:

  • archive_turns still marks the archive degraded (so the window stops reserving recall room) and writes nothing.
  • Recall still falls back to the lexical hits.
  • The pending download is logged once per model at INFO, without a traceback. Every other failure keeps the existing WARNING with traceback.

Changes

  • studio/backend/core/rag/conversation_archive.py: catch EmbeddingModelDownloadRequiredError in archive_turns and _candidates before the generic handler, log it once per model.
  • studio/backend/tests/test_conversation_archive.py: regression test over three fits with a pending embedder.

Testing

  • New test on main: fails, with three conversation_archive.ingest_failed warnings and dense_unavailable warnings carrying tracebacks.
  • With the fix: pytest studio/backend/tests/test_conversation_archive.py gives 145 passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 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-01T14:19:11.450118Z b4de7fc Manual request
🔒 Security Review ⚠️ Failed 2026-10-01T14:15:50.791824Z f2109c4 PR opened
ℹ️ 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.

@danielhanchen danielhanchen self-assigned this Oct 1, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: b4de7fc293

ℹ️ 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 673c727 into main Oct 1, 2026
44 of 50 checks passed
@danielhanchen
danielhanchen deleted the studio-archive-pending-embedder-quiet branch October 1, 2026 17:32
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