Skip to content

fix(edge-worker): include autoMemoryDirectory in chat allowedDirectories (CYPACK-1197)#1206

Merged
Connoropolous merged 3 commits into
mainfrom
cypack-1197
May 13, 2026
Merged

fix(edge-worker): include autoMemoryDirectory in chat allowedDirectories (CYPACK-1197)#1206
Connoropolous merged 3 commits into
mainfrom
cypack-1197

Conversation

@cyrusagent
Copy link
Copy Markdown
Contributor

@cyrusagent cyrusagent commented May 12, 2026

Summary

  • Adds the per-platform shared auto-memory directory (<cyrusHome>/<platform>-memory/) to allowedDirectories in RunnerConfigBuilder.buildChatConfig so chat sessions can read and edit existing memory files (not just append new ones via shell redirects).
  • Without this, buildHomeDirectoryDisallowedTools emitted a Read(...) deny rule for the memory directory, leaving the auto-memory feature half-working.

Fixes CYPACK-1197.

Test plan

  • New unit test packages/edge-worker/test/RunnerConfigBuilder.chat-config.test.ts asserts autoMemoryDirectory is in allowedDirectories.
  • pnpm --filter cyrus-edge-worker test:run — 612 tests pass.
  • pnpm --filter cyrus-edge-worker typecheck — clean.
  • Manual Slack smoke: ask the agent to update MEMORY.md and verify Edit succeeds without permission errors.

…ies (CYPACK-1197)

The shared auto-memory directory (`<cyrusHome>/<platform>-memory/`) was set
as the runner's `autoMemoryDirectory` but missing from `allowedDirectories`.
`buildHomeDirectoryDisallowedTools` then emitted a Read deny rule for it,
blocking the running session from reading or editing existing memory files
(including MEMORY.md). Adding it to `allowedDirectories` lets the home-dir
restriction helper treat it as a passthrough and surfaces the directory
through the SDK `--add-dir` plumbing.
@Connoropolous Connoropolous merged commit 50c47ef into main May 13, 2026
4 checks passed
@cyrusagent cyrusagent mentioned this pull request May 13, 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