zerobyte/apps/agent/src
copilot-swe-agent[bot] de92e7499f
fix: check and enforce 0o600 on SFTP key files when mount fails, then retry
When sshfs fails, check permissions on the private key and known_hosts
files. If any have wrong permissions (not 0o600 — possible on Docker
bind-mounts with ACL inheritance such as Synology NAS), apply chmod 600
and retry the mount once with a warning log.

Add ensureFileMode helper to packages/core/src/node/fs.ts (exported from
node index) and three tests for it: correct mode (no-op), wrong mode
(fixes and returns true), non-existent file (no-op).

Agent-Logs-Url: https://github.com/mowdep/zerobyte/sessions/d5edc5d0-fa7d-424b-a763-97601f577c92

Co-authored-by: mowdep <10937987+mowdep@users.noreply.github.com>
2026-05-10 23:03:31 +00:00
..
__tests__ refactor: move backup path resolution into agent contract (#872) 2026-05-10 21:46:03 +02:00
commands refactor: move backup path resolution into agent contract (#872) 2026-05-10 21:46:03 +02:00
jobs refactor(agent): harden local agent volume lifecycle (#863) 2026-05-09 12:13:04 +02:00
restic refactor: move backup path resolution into agent contract (#872) 2026-05-10 21:46:03 +02:00
volume-host fix: check and enforce 0o600 on SFTP key files when mount fails, then retry 2026-05-10 23:03:31 +00:00
context.ts feat(agent): add standalone agent runtime (#761) 2026-04-08 20:47:15 +02:00
controller-session.ts refactor: move backup path resolution into agent contract (#872) 2026-05-10 21:46:03 +02:00
index.ts refactor(agent): harden local agent volume lifecycle (#863) 2026-05-09 12:13:04 +02:00