Skip to content

fix(gateway): preserve spaced MEDIA file paths#24132

Closed
exscape86-lang wants to merge 1 commit into
NousResearch:mainfrom
exscape86-lang:fix/media-windows-spaced-paths
Closed

fix(gateway): preserve spaced MEDIA file paths#24132
exscape86-lang wants to merge 1 commit into
NousResearch:mainfrom
exscape86-lang:fix/media-windows-spaced-paths

Conversation

@exscape86-lang

Copy link
Copy Markdown

Summary

  • Preserve unquoted MEDIA: paths with spaces, including Windows drive paths.
  • Add GIS / structured-data extensions (kmz, kml, geojson, gpx, json, xml, html) to the spaced-path matcher.
  • Add regression coverage for Windows spaced PDF paths and spaced GIS paths.

Closes #24032

Test Plan

  • python -m pytest tests/gateway/test_platform_base.py::TestExtractMedia -q -o addopts=
  • python -m pytest tests/gateway/test_send_image_file.py tests/gateway/test_signal.py::TestSignalMediaExtraction::test_extract_media_finds_image_tag tests/gateway/test_signal.py::TestSignalMediaExtraction::test_extract_media_finds_audio_tag -q -o addopts=
  • python -m pytest tests/gateway/test_platform_base.py -q -o addopts=

Allow unquoted MEDIA tags to include Windows drive paths and common GIS/structured-data extensions when the path contains spaces.

Closes NousResearch#24032
@exscape86-lang

Copy link
Copy Markdown
Author

Closing to keep local/runtime-specific gateway changes private/local-only.

@exscape86-lang exscape86-lang deleted the fix/media-windows-spaced-paths branch May 24, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] extract_media regex truncates Windows spaced paths and rejects GIS extensions (.kmz/.kml/.geojson/.gpx)

2 participants