[kimi] Break up dispatch_task() into helper functions (#1137) #1184

Merged
kimi merged 1 commits from kimi/issue-1137 into main 2026-03-23 21:46:03 +00:00

1 Commits

Author SHA1 Message Date
kimi
5b26396206 refactor: break up dispatch_task() into helper functions (#1137)
Some checks failed
Tests / lint (pull_request) Successful in 17s
Tests / test (pull_request) Failing after 25m25s
Extract three helpers from the 108-line dispatch_task() function:
- _validate_task() — precondition checks (title required)
- _select_dispatch_strategy() — decides gitea vs api vs local
- _log_dispatch_result() — logging for failed attempts

Main dispatch_task() now orchestrates: validate → resolve → select strategy → dispatch → log/escalate.

Fixes #1137
2026-03-23 17:43:14 -04:00