Skip to content

feat(storage): ensure storage directory exists and handle paths correctly#771

Merged
adamdotdevin merged 1 commit into
anomalyco:devfrom
necaris:feature/storage-creation
Jul 8, 2025
Merged

feat(storage): ensure storage directory exists and handle paths correctly#771
adamdotdevin merged 1 commit into
anomalyco:devfrom
necaris:feature/storage-creation

Conversation

@necaris
Copy link
Copy Markdown
Contributor

@necaris necaris commented Jul 8, 2025

This pull request ensures that the 'storage' directory is created if it doesn't exist before any write operations are made. This prevents potential race conditions and errors on the first run. It also uses path.normalize to ensure robust cross-platform path handling.

I can't figure out how to retrieve the HTTP Error between the TUI and the server, but this should solve the error raised when that storage directory does not exist.

@adamdotdevin adamdotdevin merged commit 2d8b90a into anomalyco:dev Jul 8, 2025
achembarpu pushed a commit to achembarpu/opencode that referenced this pull request Aug 4, 2025
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
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.

2 participants