Skip to content

worker: route all responses through withCors so CORS lives in one place - #457

Merged
max-sixty merged 1 commit into
mainfrom
cache-coalesce
May 13, 2026
Merged

max-sixty merged 1 commit into
mainfrom
cache-coalesce

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

jsonResponse and corsPreflight both set Access-Control-Allow-Origin inline, duplicating what withCors already does for the 404/405 error paths. Wrap their constructed Responses in withCors instead, so every response — JSON success, preflight, and plain-text errors — sets the CORS header in exactly one place. No behavior change.

`jsonResponse` and `corsPreflight` both set `Access-Control-Allow-Origin` inline, duplicating what `withCors` already does for the 404/405 error paths. Wrap their constructed Responses in `withCors` instead, so every response — JSON success, preflight, and plain-text errors — sets the CORS header in exactly one place. No behavior change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 3eb0925 into main May 13, 2026
6 checks passed
@max-sixty
max-sixty deleted the cache-coalesce branch May 13, 2026 18:25
@max-sixty max-sixty mentioned this pull request May 15, 2026
2 of 6 tasks
max-sixty added a commit that referenced this pull request May 15, 2026
## Summary

Release 0.0.19. Headline change: **Codex harness support alongside
Claude** (#480).

- New `codex/action.yaml` composite action — invokable as
`max-sixty/tend/codex@v1`.
- `harness: claude | codex` field in `.config/tend.yaml` (default
`claude`); the generator picks the matching action ref and secret names
per harness.
- `shared/system-prompt.md` consumed by both actions.
- Codex plugin manifest at
`plugins/tend-ci-runner/.codex-plugin/plugin.json` and marketplace at
`.agents/plugins/marketplace.json`.

Tend's own config stays on `harness: claude` for now — flipping to Codex
is a separate follow-up PR after this release publishes.

Site polish + minor fixes round out the rest (#456, #462–#464,
#468–#472, #475, #476, #478, #481, #457, #459, #466, #482).

## Test plan

- [x] `wt test` passes
- [x] `pre-commit run --all-files` passes
- [ ] CI green on this PR
- [ ] After merge: `uvx [email protected] --help` resolves once PyPI release
workflow completes
- [ ] v1 branch auto-updated by `update-action-branch.yaml`
- [ ] Follow-up PR regenerates tend's own workflows with `uvx
tend@latest init`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
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