mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #337] [MERGED] Reduce path sensitivity in file-storage logging #642
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#642
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/337
Author: @AJaySi
Created: 2/10/2026
Status: ✅ Merged
Merged: 2/11/2026
Merged by: @AJaySi
Base:
main← Head:codex/reduce-path-sensitivity-in-file-storage-logging📝 Commits (1)
2124f38Reduce path sensitivity in file storage logs📊 Changes
1 file changed (+55 additions, -8 deletions)
View changed files
📝
backend/utils/file_storage.py(+55 -8)📄 Description
Motivation
Description
_resolve_workspace_root()and_safe_log_path()helpers that resolve a workspace root fromALWRITY_WORKSPACE_ROOTorWORKSPACE_ROOT(falling back toPath.cwd()) and return a workspace-relative path or filename-only fallback.ensure_directory_exists(),save_file_safely(), andsave_text_file_safely()with safe representations via_safe_log_path()and preservedbytes,chars, andoperationcontext in structured log messages.Testing
python -m py_compile backend/utils/file_storage.pyto verify syntax and it succeeded.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.