Repository navigation
fix: created_at & updated_at - #5
Merged
Merged
Conversation
yingfeng
pushed a commit
that referenced
this pull request
Feb 5, 2024
Co-authored-by: kould <[email protected]>
1 task done
whhe
pushed a commit
to whhe/ragflow
that referenced
this pull request
Nov 20, 2025
* fix powerrag server timeout error * hotfix:fix title chunker exception with unexpected argument
superwiboy
added a commit
to superwiboy/ragflow
that referenced
this pull request
Jan 19, 2026
…e-mineru-code-yet-again Merge MinerU batch processing and backend enhancements from upstream
yuzhichang
added a commit
to yuzhichang/ragflow
that referenced
this pull request
Jun 16, 2026
…ntics Closes §11.8.4 item infiniflow#5 (LLM retry normal-absolute-count semantics). The v3.5.2 review explicitly documented the multiplicative-stacking behaviour as a known limitation: boot=3 retries + LLMParam.MaxRetries=5 → up to (3+1) × (5+1) = 24 invocations The v3.6.1 fix unwraps the boot retryInvoker layer when the operator sets MaxRetries or DelayAfterError on LLMParam, so the absolute attempt count is exactly (MaxRetries + 1) regardless of the boot layer. internal/agent/component/llm_retry.go: - retryInvoker.Unwrap() — returns the wrapped ChatInvoker. nil-safe (returns nil when r or r.inner is nil). - unwrapChatInvoker() — walks the ChatInvoker chain, peeling off retryInvoker layers to return the bare invoker underneath. Single-level walk is sufficient (production only installs one layer) but the loop is defensive against pathological nested cases. internal/agent/component/llm.go: - The hasOverride branch (LLMParam.MaxRetries > 0 OR DelayAfterError > 0) now wraps unwrapChatInvoker(inv) instead of inv directly. Net effect: the operator's MaxRetries is an ABSOLUTE count, not stacked on the boot layer's count. - The no-override path is unchanged — operators who do not set MaxRetries keep the v1 default (3 retries from the boot layer). internal/agent/component/llm_retry_test.go: - TestUnwrapChatInvoker_StripsSingleRetryLayer - TestUnwrapChatInvoker_NoRetryLayer (passthrough) - TestUnwrapChatInvoker_StripsMultipleLayers (defensive) - TestLLM_ParamOverride_AbsoluteCount_NotStacked (the load-bearing integration test: boot=3 + MaxRetries=5 must produce exactly 6 invoker calls, not 24) - TestLLM_NoParamOverride_StackingPreserved (back-compat: with no param override the boot layer still runs unchanged, so pre-v3.6.1 DSLs retain the implicit 3-retry budget) Test count delta: 259 → 265 (component package, +6 new tests). No regressions — TestLLM_RetryStackingSemantics (the v3.5.2 pinning test) and the existing TestLLMParam_* tests all stay green. Co-Authored-By: Claude <[email protected]>
yuzhichang
added a commit
to yuzhichang/ragflow
that referenced
this pull request
Jun 16, 2026
…done Records the v3.6.1 implementation pass (4 commits, 21 new tests, 0 regressions). §11.8.5 v3.6.1 closing section + revision-history v3.6.1 entry + §11.9 test count summary updated to reflect: - Gap infiniflow#2: RunTracker.AttachCheckpoint call-sequence test - Gap infiniflow#3: Phase 8b real TTS model-provider dispatch - Gap infiniflow#4: Phase 6 OQ infiniflow#6 per-class timeout integration - Gap infiniflow#5: LLM retry normal-absolute-count semantics Item #1 (Resume e2e run-2 message production) deferred to v3.6.2 — eino UserFillUp second-pass is genuinely an eino-internal concern, not a Go-side bug. Plumbing is fully verified by the existing TestRunAgent_RealCanvas_WaitForUserResume run-1. Test count: 1381 → 1402 passed (4 affected packages). Build: clean across cmd/..., internal/agent/..., internal/service/..., internal/handler/.... Co-Authored-By: Claude <[email protected]>
yuzhichang
added a commit
to yuzhichang/ragflow
that referenced
this pull request
Jun 17, 2026
…orts, sandbox admin-panel reader, and design-doc cleanup
This squashes 31 commits into one. It closes the agent canvas Phase 4.4
V2 (eino interrupt + check-pointing), the v3.5 implementation pass that
ported all 21 Python agent components + cycle handling to Go, the v3.5.1
production-wiring audit, the v3.5.2 silent-regression sweep, the v3.6
runtime/boot goals, the v3.6.1 next-round gap closures, the §14 admin-
panel sandbox gap, and the design-doc hygiene pass.
================================================================================
1. v3.5 — DSL convergence + 5 implementation items (cb608f0b3, b66a9738f)
================================================================================
refactor(agent): converge Go/Web DSL to single wire shape, drop v1/v2
- `internal/agent/dsl/`: single wire shape consumed by both Go and
React; replaces the divergent v1 (raw `dsl` map) and v2 (wrapped
`graph` envelope) shapes that the two sides had drifted into.
- `web/src/pages/agent/utils/dsl-bridge.ts`: 223 lines of bridge
helpers (forward + reverse); 373-line Jest pinning both directions.
- `web/src/pages/agent/hooks/use-build-dsl.ts`, `use-export-json.ts`,
`use-import-json.ts`, `use-fetch-data.ts`: dropped the legacy
branches.
- `web/src/utils/canvas-util.tsx`, `file-util.ts`: call-site cleanup.
- `internal/agent/component/v1_stubs.go` → `fixture_stubs.go` (rename
reflects new role as the test-only fixture registry, not a v1
parser).
- `tools/migrate-canvas/` (185 LOC) and `tools/gen-component-parity/`
(175 LOC) added as standalone binaries; parity-generator ships as a
placeholder per OQ infiniflow#3 — no live migration of legacy canvases is
expected from the tool.
feat(agent): v3.5 implementation pass — close P0-blocker + 4 P1 items
(closes §11.5 of .claude/plans/agent-go-port-gap-analysis.md)
- **P0 — Phase 4.4 orchestrator side**: `internal/agent/orchestrator/`
added — `Driver` (in-memory `(canvasID, sessionID)` persistence),
`Run` (folds `userInput` into prior root via
`canvas.MergeUserInput`, inspects with `canvas.IsWaitForUser`),
`RunEvent` (typed SSE events). `service.AgentService.RunAgent`
signature extended to `(ctx, userID, canvasID, sessionID, version,
userInput) -> <-chan orchestrator.RunEvent`. `handler/agent.go`
`RunAgent` reads `?session_id=` and `?user_input=`, emits one SSE
frame per event plus a `[DONE]` tail. **This is the last P0-
blocker on the plan.**
- **P1 — Retrieval agent tool**: `internal/agent/tool/retrieval_nlp.go`
+ `tool.SetRetrievalService` interface; `cmd/server_main.go:240`
wires `NewNLPRetrievalAdapter(retrievalService)` at boot. The
`NLPRetrievalAdapter` bridges `Search(*RetrievalSearchRequest)` to
`Search(RetrievalRequest)`. Net effect: `RetrievalTool` /
`RetrievalComponent` paths now hit the real nlp service, not the
loud-fail stub.
- **P1 — SearchMyDataset alias**: `fixture_stubs.go:486-491`
registers `SearchMyDataset` → `NewRetrievalStub` (covered by
`search_my_dataset_alias_test.go`).
- **P1 — gonja direct import**: `internal/agent/runtime/template/`
promotes `github.com/nikolalohinski/gonja v1.5.3` from indirect to
direct (Jinja2 migration; Phase 8a).
- **P1 — Phase 5a Universe A wrappers**: `universe_a_wrappers.go`
adds `newRetrievalComponent`, `newTavilySearchComponent`,
`newExeSQLComponent` all delegating to Universe B tools.
- 4 new tests in `handler/agent_wait_for_user_test.go` (470 LOC);
157 handler tests pass.
================================================================================
2. v3.5.1 — production-chain false-positive closures (829598f8f)
================================================================================
feat(agent): v3.5.1 — close the production-chain false positives
- **Item 1 — orchestrator side (production)**: v3.5's `Driver` test
used a fake `waitFakeAgentService` that drove the driver directly.
Production `service.AgentService.RunAgent` still returned
`<-chan string` and emitted the `"Phase 5 wiring pending"` literal;
`handler/agent.go:RunAgent` called the old 4-arg signature and SSE-
wrapped every event as `event: "message"`, dropping
`RunEvent.Type`. v3.5.1 fixes the signature, the SSE frame type,
and the channel shape so the handler actually exercises the driver.
- **Item 2 — Retrieval agent tool (production)**: `cmd/server_main.go`
now also wires KG retrieval (`SetKGRetrievalService`); the
`NLPRetrievalAdapter` is registered on the real
`internal/service/nlp/retrieval.go` (1079 LOC), not a fake.
- **Item 3 — SearchMyDataset (production)**: registry primary
swapped from `RetrievalStub` to `newRetrievalComponent` (the v3.5
delegation wrapper).
- **Item 4 — Production wiring fix**: 5-line `cmd/server_main.go`
TTS boot wiring change (TTS engine + dispatcher).
- **Item 5 — Universe A primary registry swap**: same as Item 3
(one diff, two log entries).
- 4 additional false-positive closures uncovered while re-running the
suite (canvas timeouts, etc.).
================================================================================
3. v3.5.2 — silent production regressions (082c63472)
================================================================================
feat(agent): v3.5.2 — close 4 silent production regressions from v3.5.1
- All four regressions were test-pass / production-still-broken pairs
that the v3.5.1 audit intentionally scoped to the user's two
items but uncovered while re-running the suite. Each got a real-
path test (not a fake) + a real code-path fix.
- `internal/service/agent_run_e2e_test.go` (629 LOC): production
RunAgent end-to-end via miniredis + real HTTP fixtures.
- `internal/handler/agent_test.go`: 49 lines of fixups.
================================================================================
4. Test cleanup + security hardening
================================================================================
fix(canvas): delete dead TestDSLExamples_* tests (4b3efc62c)
- The `internal/agent/canvas/dsl_examples_e2e_test.go` (438 LOC)
tested the v1 IMPORT-format parser that was removed in v3.5's DSL
convergence. Dead code, deleted.
fix(agent): RunAgent version IDOR + DAO error visibility (1017ebb0f)
- RunAgent now pins the requested `version` against the canvas
owner's stored version (no cross-tenant read). DAO errors surface
to logs (previously swallowed).
fix(agent): map DAO storage errors to 500, not raw data error (828f8f644)
- `agent.go:loadCanvasForUser`: storage layer errors → HTTP 500 with
a sanitized message. The old path returned a `data_error` string
with the raw exception text, which leaked driver internals.
fix(agent): sanitise DAO errors in loadCanvasForUser (286082264)
- Final pass on the same code path: scrub the message before
logging, ensure no PII leak via error string.
================================================================================
5. Cycle wait-for-user — eino interrupt refactor (d6e8c9cf2)
================================================================================
refactor(agent): replace wait_for_user sentinel chain with eino interrupt
- The v3.5 orchestrator Driver used a `__wait_for_user__` boolean
field plumbed through root. eino v0.9.4 supports
`compose.Interrupt` / `compose.Resume` natively, which is cleaner.
- `internal/agent/canvas/interrupt_resume.go` (242 LOC): canonical
interrupt/resume helpers; `IsWaitForUser` / `MergeUserInput`
re-exported as thin adapters for back-compat with the orchestrator
Driver.
- `canvas/interrupt_resume_test.go` (230 LOC): pins the new
semantics.
- `internal/agent/canvas/cycle_wrap.go` (374 LOC) deleted; the
cycle-handling logic moved into `cycle_wrap.go`'s replacement path
inside `compile.go` (no separate file).
================================================================================
6. Phase 4.4 V2 — real canvas Compile/Invoke (12424be7d, 47630945e)
================================================================================
feat(service): canvas DSL decoder + AgentService option injection
- `internal/service/canvas_decode.go` (164 LOC): the decoder that
turns the raw DB-stored canvas bytes into a `*canvas.Canvas`
ready for compile.
- `canvas_decode_test.go` (258 LOC): decoder round-trip + malformed
input handling.
- `service.AgentService` now takes a `WithCanvasDecoder` option
(dependency-injected instead of package-global).
feat(service): real canvas Compile/Invoke in buildRunFunc
- `service.buildRunFunc` previously returned a stub. It now
actually compiles the canvas (via `canvas.Compile`), invokes it
via the orchestrator Driver, and propagates the typed event
channel.
- `service/agent.go` (475 LOC delta).
docs(gap-analysis): Phase 4.4 V2 closing + v3.6 next round
- `.claude/plans/agent-go-port-gap-analysis.md` §11.7 captures the
Phase 4.4 V2 closure (commits 0c62184 + 0bb5c94) and §11.8
records the v3.6 next round.
fix(service,handler): review-driven hardening of Phase 4.4 V2
- `service.RunAgent` now populates `root["tenant_id"]` from the
user-tenant lookup (best-effort; falls back to the empty string
if the user lookup fails).
- `handler/agent.go`: SSE tail is `[DONE]\n\n` regardless of event
payload — no more dangling SSE frames.
- `internal/service/agent_test.go` (346 LOC) + `agent_run_e2e_test.go`
(629 LOC) pin the new contract.
================================================================================
7. v3.6 — runtime + boot goals (5b06f8728, bd841ce2e, 40469d628)
================================================================================
feat(runtime): MarshalJSON/UnmarshalJSON + eino type registration
- `CanvasState` (the in-flight canvas state checkpoint) implements
`json.Marshaler` / `json.Unmarshaler` so the eino checkpoint
serializer can round-trip it through Redis without losing
channel/edge metadata.
- Eino type registration: `internal/agent/runtime/register.go` —
the `Register` calls that eino needs at startup to recognize
custom node types.
- `state_test.go`, `state_bench_test.go`: round-trip + bench
(Go side: ~2× Python JSON round-trip; eino-internal numbers not
measured here).
- **Goal 2 closed.**
feat(agent): wire runID as canvas checkpoint id + RunTracker.AttachCheckpoint
- `canvas.RunTracker` (10 LOC delta) gets `AttachCheckpoint(id string)`
so the boot-side `RunTracker` can register the Redis-backed
checkpoint before the canvas starts running.
- Goal 7 closed.
feat(boot): Redis-backed run infra + TTS service wire-up in cmd/server_main
- `cmd/server_main.go` (100 LOC delta) — `StartRunTracker`,
`StartRedisCheckpointStore`, `configureTTSSynthesizer` wired at
boot.
- `internal/service/memory_message_service.go` (281 LOC): real
`MemoryMessageService` impl for Phase 8b.
- Goals 8 + 9 closed.
docs(gap-analysis): record v3.6 Goal 2/7/8/9 closing + v3.6.1 next round
- `.claude/plans/agent-go-port-gap-analysis.md` §11.8 captures all
four v3.6 goals closing in one place; §11.8.4 lists the v3.6.1
next-round items.
================================================================================
8. v3.6.1 — closing 4 of 5 next-round items (Gaps #1–infiniflow#5)
================================================================================
feat(service,canvas): v3.6.1 Gap infiniflow#2 AttachCheckpoint call-sequence test
- `service.RunAgent` populates `root["tenant_id"]` from the user-
tenant lookup (best-effort).
- `agent_run_e2e_test.go` pinned: Start → AttachCheckpoint →
MarkSucceeded sequence via miniredis-backed `RunTracker`.
- Closes Gap infiniflow#2.
feat(audio,boot): v3.6.1 Gap infiniflow#3 — real TTS model-provider dispatch
- `audio.NewTTSDispatchFunc` + `TTSDispatcher` interface extracted.
- `cmd/server_main.go:configureTTSSynthesizer` wires the real
dispatch instead of the v3.6.0 placeholder.
- `audio.ErrSynthesizeEmpty` sentinel.
- `audio/tts_design.md` (154 LOC) — design rationale.
- `audio/{tts,model_provider_synthesizer,tts_dispatch}*.go` (180+
131 + 149 LOC) — the three-way split between TTS engine, model
provider, and dispatcher.
- `tts_dispatch_test.go` (223 LOC), `model_provider_synthesizer_test.go`
(110 LOC), `tts_test.go` (119 LOC).
- Closes Gap infiniflow#3.
feat(canvas): v3.6.1 Gap infiniflow#4 — wire per-class timeout into realComponentBody
- `canvas/node_body.go` `realComponentBody` now calls
`resolveTimeout(componentClass)` (was the uniform
`componentTimeout()`).
- `canvas/timeout.go` (135 LOC) — the `componentDefaults` map (10
Python parity defaults + env-override) and the 4-level resolution
table.
- `node_body_timeout_test.go` (173 LOC) +
`node_body_per_class_timeout_integration_test.go` (280 LOC):
4 end-to-end tests pin ExeSQL 3s / TavilySearch 12s / uniform-
fallback / per-class env override.
- Closes Gap infiniflow#4.
feat(llm): v3.6.1 Gap infiniflow#5 — normal-absolute-count retry semantics
- `internal/agent/component/llm_retry.go` (150 LOC) +
`llm_retry_test.go` (387 LOC).
- `retryInvoker.Unwrap()` + `unwrapChatInvoker` walk: param-
override branch now wraps the **unwrapped** invoker so the
absolute count is `MaxRetries+1` instead of
`(MaxRetries+1) × (boot+1)`.
- 6 tests pin the fix (3 unwrap unit + 1 absolute-count + 1 no-
override back-compat + the existing
TestLLM_RetryStackingSemantics stays green).
- Closes Gap infiniflow#5.
docs(gap-analysis): v3.6.1 closing — 4 of 5 §11.8.4 next-round items
- `.claude/plans/agent-go-port-gap-analysis.md` §11.8.5 records
the v3.6.1 closure (4 of 5 items).
- **Item #1 (Resume e2e run-2 message production)** deferred to
v3.6.2 — eino UserFillUp second-pass is genuinely an eino-
internal concern, not a Go-side bug; plumbing is fully verified.
- Test count delta: 1381 → 1402 (+21 across 4 packages).
fix(canvas): v3.6.1 Gap #1 — wire CheckPointStore without overriding
eino's InternalSerializer
- `canvas/checkpoint_store.go` (9 LOC delta) wires the Redis-backed
`CheckpointStore` into the canvas builder.
- Key change: we DO NOT override eino's `InternalSerializer` — we
plug our `CanvasState` `MarshalJSON`/`UnmarshalJSON` (from
Goal 2) and let eino use its built-in serializer over those
primitives. Earlier draft overrode the serializer, which broke
eino's resume semantics.
- Closes Gap #1.
================================================================================
9. Tests + renames + CodeRabbit feedback
================================================================================
refactor(service): rename runagent_phase_4_4_v2_test.go →
agent_run_e2e_test.go (8cd5b008d)
- Test filename was misleading (the test exercises the Phase 4.4
V2 *contract*, not a phase marker). Renamed to reflect scope.
fix: address all CodeRabbit review comments on PR infiniflow#16035 (c7ce6504b)
- Final review pass on the eino interrupt + check-pointing PR.
- Touched: `cmd/server_main.go`, `docker/.env`, `docker/entrypoint.sh`,
`docker/launch_backend_service.sh`, `docker/nginx/ragflow.conf.golang`,
`.github/workflows/tests.yml`, `.gitignore`, `go.mod`, `go.sum`,
`web/package.json`, `web/jest.config.ts`.
================================================================================
10. Design-doc cleanup + sandbox admin-panel reader
================================================================================
docs(design): drop historical version markers from design doc and Go
code (055752a48)
- `docs/develop/agent-go-port-design.md` and `internal/agent/`: the
doc and the Go comments still carried `v3.5`, `v3.6.1`, etc.
annotation tags from the planning rounds. Dropped them; the
current state lives in `.claude/plans/agent-go-port-gap-analysis.md`.
docs(design): remove stale status file; fix Driver.Run → Runner.Run
(af9bd0939)
- `docs/develop/agent-go-port-status.md` (last touched 2026-06-15,
per its line 3) is fully superseded by §16 of the design doc.
Deleted.
- The design doc still had ~12 `Driver.Run` references — the
class is `Runner.Run` post-eino refactor. Fixed.
docs(design): delete sandbox-python-go-diff.md; integrate sandbox
gaps into §14 (23777f5c7)
- `docs/develop/sandbox-python-go-diff.md` (21.2K) tracked the
per-provider behavior diff between Python and Go sandboxes. The
gaps are now closed (Aliyun SDK excepted) and the items
migrated into `agent-go-port-design.md` §14 as the canonical
tracking spot. File deleted.
docs(design): consolidate Aliyun SDK gaps; add effort estimates to
sandbox gaps (1893951db)
- The Aliyun gaps were spread across 3 separate sub-items in §14.
Consolidated into a single "blocked on upstream aliyun SDK" entry
with the two specific blockers (TemplateName + execute-raw-HTTP).
- Added effort estimates to each of the 7 remaining §14 sandbox
items.
feat(sandbox): wire admin panel settings reader (close §14 gap 998)
- `internal/agent/sandbox/config.go` — type-safe `configString` /
`configInt` / `configDuration` helpers that accept any JSON shape
(string, float64, int, bool, json.Number) and coerce to target.
- Each provider (`self_managed.go`, `aliyun.go`, `e2b.go`,
`local.go`, `ssh.go`) gets a `xxxConfigFromEnv()` + a
`newXxxProviderFromConfig(cfg)` pair. `xxxProviderFromEnv` is
refactored to delegate to `xxxProviderFromConfig(xxxConfigFromEnv())`,
eliminating duplication and giving env-driven and settings-
driven init semantically identical providers.
- `internal/agent/sandbox/manager.go`:
- `SystemSetting = entity.SystemSettings` type alias.
- `SettingsReader` interface (`GetByName(name)`) — DAO seam.
- `LoadFromSettings(ctx)` / `LoadFromSettingsWithReader(ctx, r)` —
reads `sandbox.provider_type` and `sandbox.{type}` from the
`system_settings` MySQL table, JSON-decodes the per-provider
config, builds the provider via `FromConfig`. Soft-falls back
to env on missing / malformed / unknown-type / DAO-error.
- `ReloadFromSettings(ctx)` / `ReloadFromSettingsWithReader(ctx, r)`.
- `errSettingsNotConfigured`, `errSettingsMalformed` sentinels.
- `buildProviderFromConfig` parallel to `buildProvider`.
- `internal/agent/sandbox/config_test.go` — 3 test funcs covering
`configString` / `configInt` / `configDuration`.
- `internal/agent/sandbox/manager_test.go` — `TestNew*FromConfig_*`
for all 5 providers, `TestBuildProviderFromConfig_UnknownType`,
`_HappyPath`, `TestLoadFromSettingsWithReader_*` (7 cases:
HappyPath, EmptyFallback, DAOErrorFallback, MalformedJSONFallback,
UnknownProviderType, AlreadyLoaded_NoOp), `TestReloadFromSettingsWithReader`.
docs(design): remove closed gap from §14 Future Work (2f1d84947)
- The admin-panel reader item was closed by `feat(sandbox): wire
admin panel settings reader (close §14 gap 998)` but still
appeared in §14 with a ✅ annotation. Per the "Future Work only
carries open items" principle, removed it entirely and tightened
the §14 sandbox lead-in paragraph to point at the commit history.
- The §14 sandbox subsection is now exactly the 7 open items
(Aliyun SDK + LocalProvider rlimits + SSH SFTP + Windows build
+ e2b community SDK + OTel spans + the lead-in itself).
================================================================================
Stats
================================================================================
234 files changed, 35413 insertions(+), 6111 deletions(-)
Build: clean (`go build ./...`)
Tests: 1402 across 4 packages (+21 from v3.6)
Plan: .claude/plans/agent-go-port-gap-analysis.md v3.6.1 (single
P0-blocker — Phase 4.4 orchestrator side — closed; remaining
open items: 5d CodeExec full feature parity, 5c DB2,
4.5 DSL parity corpus, Aliyun SDK gaps — all P2).
Co-Authored-By: Claude <[email protected]>
yuzhichang
added a commit
to yuzhichang/ragflow
that referenced
this pull request
Jun 17, 2026
Phase 4.4 V2 — real canvas Compile/Invoke via eino interrupt + check-pointing (closes the last P0-blocker, Phase 4.4 orchestrator side). v3.5 — 21 component ports + 5 implementation items incl. Retrieval agent tool wire-up, SearchMyDataset alias, gonja direct import, Universe A delegation wrappers. v3.5.1 — production-chain false-positive closures (the orchestrator, Retrieval, SearchMyDataset, TTS). v3.5.2 — 4 silent production regressions. v3.6 — CanvasState JSON round-trip + eino type registration, RunTracker.AttachCheckpoint, Redis-backed run infra + TTS boot wire. v3.6.1 Gaps #1–infiniflow#5 — CheckPointStore wire (without overriding eino's InternalSerializer), AttachCheckpoint call-sequence test + tenant_id, real TTS dispatch, per-class component timeouts, LLM retry normal-absolute-count. Plus 4 production-security fixes (RunAgent IDOR, DAO error visibility + sanitization + 500 mapping), CodeRabbit review pass, and §14 sandbox admin-panel reader (gap 998 closure). Stats: 234 files / +35413 / -6111 / 1402 tests (+21). Plan: .claude/plans/agent-go-port-gap-analysis.md v3.6.1. Co-Authored-By: Claude <[email protected]>
Merged
3 tasks done
yuzhichang
added a commit
to yuzhichang/ragflow
that referenced
this pull request
Jun 27, 2026
…wGuard CodeRabbit PR review infiniflow#5: 999999999mb (= ~1e15 bytes) still fits in int64, so the old value did not actually exercise the pre- multiplication overflow guard. Replaced with 9223372036855mb which when multiplied by bytesPerMB (1 000 000) would overflow int64 max — the test now actually verifies the guard.
4 tasks done
This was referenced Aug 14, 2026
Taranum01
added a commit
to Taranum01/ragflow
that referenced
this pull request
Aug 25, 2026
…nfiniflow#17114 review infiniflow#5) Per CodeRabbit review infiniflow#5: my previous fix passed layout_recognizer (the post-normalize form, e.g. 'MinerU') to _dispatch_pdf_parser via layout_recognize_override. Inside the dispatch, normalize_layout_recognizer re-parsed 'MinerU' -> ('MinerU', None), so parser_model_name became None and by_mineru ignored the configured model. Fix: pass layout_recognize_raw (the pre-normalize form, e.g. 'my-llm@my-instance@my-provider@mineru') so the dispatch's normalize_layout_recognizer() call extracts the right parser_model_name. Removed the redundant local normalize_layout_recognizer() call since the dispatch does it. Tests: rewrote test_naive_dispatch.py to actually invoke _dispatch_pdf_parser via a stubbed-load fixture (rather than asserting on copied keywords and normalization results, which CodeRabbit review infiniflow#6 flagged as insufficient). The fixture loads rag.app.naive with all heavy siblings stubbed so the helper runs in a minimal pytest env. 13 tests pass — 7 helper/contract tests and 6 dispatch tests that exercise the actual fallback / override paths.
1 task done
This was referenced Sep 4, 2026
This was referenced Sep 22, 2026
Harsh23Kashyap
referenced
this pull request
in Harsh23Kashyap/ragflow
Sep 22, 2026
A single row whose model_type is still varchar (left behind by a partial model_type_merge run) used to make GET /api/v1/models 500 because get_model_type_human ran model_type & mt.value on the str and raised TypeError, and the endpoint converts every row in one pass. Return [] for non-int / bool inputs so the rest of the response still loads while operators repair the bad row. Fixes defect #5 from infiniflow#19569.
linzixuan45
pushed a commit
to linzixuan45/ragflow
that referenced
this pull request
Oct 22, 2026
两件事必须同批:前者是后者能提交的前提。 1) tools/hooks/check_files.py:docker/*.yml 里的 !override / !reset 是 Compose 扩展,yaml.safe_load 直接以 ConstructorError 拒绝,导致 compose overlay 永远 过不了 pre-commit 与 CI 的 check-yaml——而硬约束 infiniflow#5 要求「新增源文件必须同步 进 overlay」,于是这条约束在 CI 里根本无法落地。改为先 safe_load,遇到未知标签 时回退到 yaml.compose:只校验结构、不解析标签,语法错误仍然会被拒。 2) docker/docker-compose.knowledge-dev.yml:补挂 api/apps/services/corpus_errors.py。 d7aae22 新增了该文件却漏了这一步,重建 ragflow-gpu 后 API 进程以 `ModuleNotFoundError: No module named 'api.apps.services.corpus_errors'` 退出 (ragflow_server.py 消失、9380 连接失败),与 engineering/corpus-fs.md §7.6 记录的事故同型。 验证:docker/ 下全部 yml 通过 check-yaml,带未知标签且语法损坏的文件仍被拒(exit 1); 重建后 check_source_drift.sh 报 60 个单文件挂载全部与 checkout 一致; GET /api/v1/datasets/x/fs/tree 返回 401(Python 路由可达;404 才是被劫持到 Go)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Add corresponding issue link with summary if exists -->
Issue link:
What is changed and how it works?
Code changes
Check List
Tests
Side effects
Note for reviewer