Skip to content

Fix reply race: keep empty sender inbox folders for 60 seconds - #12

Merged
jpelaez-23blocks merged 1 commit into
mainfrom
fix/inbox-dir-race
Oct 28, 2026
Merged

jpelaez-23blocks merged 1 commit into
mainfrom
fix/inbox-dir-race

Conversation

@jpelaez-23blocks

Copy link
Copy Markdown
Contributor

The outbound poller removed a sender folder as soon as it was empty, while amp-send.sh creates the folder and writes the message slightly later, so a reply could fail with No such file or directory. Folders are now removed only after 60 seconds without changes. Five gateways, patch versions. Type checks and existing tests pass; no automated test covers the timing.

🤖 Generated with Claude Code

… race)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jpelaez-23blocks
jpelaez-23blocks merged commit 5da6b3d into main Oct 28, 2026
6 checks passed
@jpelaez-23blocks
jpelaez-23blocks deleted the fix/inbox-dir-race branch October 28, 2026 19:08
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