Repository navigation
26Q3.6: Safe rendering and backup validation - #63
Conversation
Codex Review Summary: ✅ CompletedThis 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: 54b67dccb5
ℹ️ 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".
| return Array.isArray(data) && data.length <= MAX_BACKUP_SNIPPETS && data.every(snippet => | ||
| snippet && typeof snippet === 'object' && !Array.isArray(snippet) && |
There was a problem hiding this comment.
Keep generated backups within the import limits
When a collection exceeds 10,000 snippets or its JSON exceeds 20 MiB, exportCodeSnipData still passes the full localStorage value to export-data, which writes it successfully, but the new import path rejects that backup. This can leave users with a backup CodeSnip reports as successful but cannot restore; enforce the same limits before exporting or allow those backups to be imported.
Useful? React with 👍 / 👎.
26Q3.6 — Maintenance & Stability follow-up
This PR completes the consolidated maintenance pass on top of the merged 26Q3.6 release.
Storage and import reliability
nullvalues and unexpected non-array storage values as safe fallbacks.Safe rendering
textContent, rather than interpolating saved titles, IDs, code, category names, or icons into HTML.Scope
docs/release.htmlchanges.JavaScript syntax checks passed for
renderer.js,q3-5.js, andmain.js. Please review the PR and wait for the GitHub Actions build before merging.