[kimi] refactor: extract helpers from CSRFMiddleware.dispatch (#628) #691

Merged
kimi merged 1 commits from kimi/issue-628 into main 2026-03-21 03:41:10 +00:00

1 Commits

Author SHA1 Message Date
kimi
65faabe654 refactor: extract helpers from CSRFMiddleware.dispatch (#628)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Break up the 70-line dispatch() method into a thin router that delegates
to _handle_safe_method() and _handle_unsafe_method(), keeping the logic
unchanged.

Also stub swarm.event_log in conftest to fix pre-existing
ModuleNotFoundError blocking the test suite.

Fixes #628

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 23:39:47 -04:00