Skip to content

Conversation

@deathbyknowledge
Copy link
Owner

No description provided.

- agencies now auto-register in R2 on first access (ensureRegisteredInR2)
- agency IDs with slashes (e.g., owner/repo) are URL-encoded in R2 paths
- listAgencies properly decodes agency names
- createAgency now allows slashes in names
- Added requireAgency() helper that returns 404 if agency doesn't exist
- Applied to listAgents, createAgent, and vars endpoints
- Prevents implicit agency creation via DO access
Many LLMs (including Z.AI) don't allow conversations starting with
assistant messages. Changed summary injection to use 'user' role.
@deathbyknowledge deathbyknowledge merged commit d76bad2 into main Jan 14, 2026
1 check passed
@deathbyknowledge deathbyknowledge deleted the docbrown-fixes branch January 19, 2026 19:11
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