Skip to content

Sync upstream 0.27.x updates - #1

Merged
ccclucky merged 7 commits into
fix/agentic-empty-response-0.27from
sync/upstream-0.27-20261014
Oct 14, 2026
Merged

ccclucky merged 7 commits into
fix/agentic-empty-response-0.27from
sync/upstream-0.27-20261014

Conversation

@ccclucky

Copy link
Copy Markdown
Owner

Merge current upstream 0.27.x into the fix branch while preserving the agentic empty-response fix and regression test documentation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T01:51:54.718190Z f82b78a 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.

@ccclucky
ccclucky merged commit aa65c1e into fix/agentic-empty-response-0.27 Oct 14, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

from api.apps import login_required

P1 Badge Restore the agentic evidence fix during the sync

This sync claims to preserve f4fb602b, but rag/advanced_rag/agentic_rag_graph.py is byte-for-byte unchanged from a32d814^, and the regression-test documentation from 5bedecb8 is absent as well. Consequently, _compose_answer_from_evidence still treats abstain or empty_result as no_evidence even when kbinfos["chunks"] contains retrieved passages (rag/advanced_rag/agentic_rag_graph.py:1084-1088), returning the configured empty response instead of composing an evidence-backed answer—the exact regression this branch was intended to fix.


open_browser = env_flag("GOOGLE_OAUTH_OPEN_BROWSER", True)

P1 Badge Preserve the upstream authors in the squashed commit

Regenerate this rewritten sync commit with the original upstream authors preserved and Codex recorded as co-author: a32d814 is authored solely by Codex with no trailers, although it squashes community commits by lihongyuan99, Jeremy Schoemaker, Yash Raj Pandey, leilei3167, and others. This directly violates the repository's takeover/history-rewrite rule.

AGENTS.md reference: AGENTS.md:L101-L101


start_datetime = datetime.fromtimestamp(start, tz=timezone.utc)
end_datetime = datetime.fromtimestamp(end, tz=timezone.utc)
adjusted_start = start_datetime - _INCREMENTAL_MTIME_TOLERANCE
if adjusted_start < _UNIX_EPOCH:
adjusted_start = _UNIX_EPOCH
for batch in self._yield_webdav_documents(adjusted_start, end_datetime):

P1 Badge Avoid replaying the skew window on every WebDAV poll

When a server has the clock skew this change targets, subtracting 24 hours from every poll start causes the same file to be downloaded on every subsequent sync. The sync runner initializes next_update to the existing cursor and advances it only to the maximum returned doc_updated_at (rag/svr/sync_data_source.py:273-286); a skewed mtime is older than that cursor, so it never advances, while this widened window keeps selecting the file indefinitely. WebDAV has no pre-download fingerprint filter, so large unchanged files are repeatedly transferred and written before content hashing rejects re-parsing; the overlap needs deduplication or cursor advancement independent of the skewed timestamp.


ragflow/rag/nlp/__init__.py

Lines 2087 to 2091 in f82b78a

if cur and cur_n + n > self.chunk_token_num:
tree_list.append("\n".join(title_parts + cur))
cur, cur_n = [], title_n
cur.append(t)
cur_n += n

P2 Badge Split a single oversized body section

When one body element itself exceeds chunk_token_num—for example, a long HTML/PDF paragraph or a text file with a very long line—cur is empty, so the overflow check is skipped and the entire element is appended and emitted as one arbitrarily large chunk. The new tests only use four-token body elements and therefore miss this common input; split an oversized element itself rather than enforcing the budget only between elements.


https://github.com/ccclucky/ragflow/blob/f82b78a1c1bbbed916f828127a15a7cb2a21c87d/conf/all_models.json#L1
P2 Badge Remove consumers of the deleted model catalog

Deleting this catalog leaves tracked tooling and documentation unusable: python3 scripts/tokenizer_coverage.py now exits with cannot read conf/all_models.json, while conf/model.md still instructs contributors to edit conf/all_models.json and conf/models/*.json and run validation against them. Since the catalog removal is intentional, remove or retarget these remaining consumers in the same change instead of leaving a broken command and stale contributor workflow.

AGENTS.md reference: AGENTS.md:L9-L9

ℹ️ 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".

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.

8 participants