feat: migrate to Langfuse v4 and refresh vulnerable dependencies - #432
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 065e86533d
ℹ️ 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".
| if isinstance(value, str) and value.startswith("data:"): | ||
| prepared = cls._prepare_image_for_native_upload( | ||
| {"image": value, "image_mimetype": "application/octet-stream"} | ||
| ) | ||
| return (value if prepared else ""), True |
There was a problem hiding this comment.
Preserve non-media strings that begin with data:
When a JSON-encoded chat or completion contains ordinary user, model, or tool text beginning with data: (for example, a prompt discussing data-URI syntax), this recursive sanitizer treats the string as image media. _prepare_image_for_native_upload rejects non-base64 content, so the value is replaced with an empty string and the exported Langfuse trace loses the original input/output. Restrict sanitization to structurally identified media fields such as image_url.url rather than every nested string.
Useful? React with 👍 / 👎.
|
@codex revew |
|
To use Codex here, create an environment for this repo. |
|
Docs PR opened: https://github.com/droidrun/mobilerun-docs/pull/92 Updated Langfuse tracing docs to use LANGFUSE_BASE_URL as the canonical endpoint variable, with LANGFUSE_HOST as legacy fallback. |
Summary
maingraphql-corefails during importDependency refresh
The lock remains at 196 packages, adds
defusedxml, and removeslia-web. Every patched threshold for the 39 currently open high alerts is satisfied by this branch; the alerts are expected to close after merge. No medium-only or low-only package was intentionally upgraded.Validation
uv lock --check, package build, andgit diff --checkpassedFixes #430
Dependency triage: DRO-2795