Skip to content

Write pasted images and the Ctrl+G prompt to private temp files - #60

Merged
LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:private-temp-files
Nov 21, 2026
Merged

LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:private-temp-files

Conversation

@LudaLunizz

@LudaLunizz LudaLunizz commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Images sent in codex, opencode and agy mode, and the prompt opened in the editor with Ctrl+G, were written with fs::write to a predictable name in the shared /tmp, with the default mode (0644), so other local users could read them.

They now go through a new sys::tmp_write: any file of that name in the way is removed first, then the file is created with create_new and mode 0600. If the old file cannot be removed (someone else's file or link in the sticky /tmp), nothing is written. Cleanup of the files is unchanged. Adds a test for the mode and for replacing an old file.

🤖 Generated with Claude Code

The images sent in codex, opencode and agy mode and the prompt opened
in the editor were written with fs::write to a predictable name in the
shared /tmp, so other local users could read them (0644). They are now
created fresh with mode 0600 (create_new, so a planted file or link is
refused).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8749aa4a-a742-4b41-ba8d-dbecfbb8a918
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@LudaLunizz
LudaLunizz merged commit f3c7b7c into Silvertree2010:main Nov 21, 2026
5 checks passed
@LudaLunizz LudaLunizz mentioned this pull request Nov 21, 2026
@LudaLunizz
LudaLunizz deleted the private-temp-files branch November 27, 2026 19:24
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.

1 participant