[claude] Refactor thinking.py::_maybe_file_issues() into focused helpers (#1170) #1173

Merged
Rockachopa merged 1 commits from :claude/issue-1170 into main 2026-03-23 20:47:07 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
6bad246ed5 refactor: break up thinking.py::_maybe_file_issues() into focused helpers
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Extract four helpers from the 99-line _maybe_file_issues():
- _get_recent_thoughts_for_issues(): all guard/pre-condition checks
- _build_issue_classify_prompt(): LLM prompt construction
- _parse_issue_items(): markdown fence stripping + JSON parsing
- _file_single_issue(): per-item validation and Gitea creation

Main function is now 33 lines (was 99). All existing unit tests pass.

Fixes #1170

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