Skip to content

fix(query): preserve escaped and spaced retrieved image paths - #464

Merged
LarFii merged 3 commits into
HKUDS:mainfrom
remote-controlled-man:codex/prflow-8c2633dd4248
Nov 12, 2026
Merged

LarFii merged 3 commits into
HKUDS:mainfrom
remote-controlled-man:codex/prflow-8c2633dd4248

Conversation

@remote-controlled-man

@remote-controlled-man remote-controlled-man commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Retrieved image paths need to survive both spaces in filenames and JSON transport escaping. Decode paths once inside JSON records while preserving literal backslashes in plain text; keep the complete filename selection from #460 so an existing chart.png cannot replace chart.png v2.png. Preserve the original path spelling and surrounding prompt text, then apply the existing image-content, symlink and safe-directory checks.

Regression tests use LightRAG's real naive/mix context builders and assert the exact image bytes sent to both query entry points. Coverage includes quotes, literal backslashes, spaced names with earlier image suffixes, missing/invalid/outside files and the combinations of these path formats.

Validation: the complete 15-PR integration candidate passed 1,266 tests on Ubuntu 24.04 / Python 3.12 / LightRAG 1.4.16 and Ruff 0.6.4. Four live Qwen3-VL-30B calls on the development server verified naive/mix retrieval, both query entry points, conversation history, normal/streamed answers and correct selection of a blue image over an existing red shorter-prefix image. Updated Python 3.10/3.11/3.12 GitHub checks are running.

Copilot AI balanced review requested due to automatic review settings November 7, 2026 10:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@LarFii LarFii changed the title fix(query): decode JSON-escaped retrieved image paths fix(query): preserve escaped and spaced retrieved image paths Nov 12, 2026
@LarFii
LarFii merged commit ea0ca94 into HKUDS:main Nov 12, 2026
4 checks passed
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.

3 participants