[kimi] refactor: extract helpers from chat() (#627) #690

Merged
Timmy merged 5 commits from kimi/issue-627 into main 2026-03-21 18:09:23 +00:00
Collaborator

Fixes #627

Extracted two helpers from the 72-line chat() function:

  • _read_message_input(message: list[str]) -> str — joins CLI args and handles stdin reading
  • _resolve_session_id(session_id, new_session) -> str — resolves the effective session ID from CLI flags

chat() is now a thin orchestrator calling these helpers.

All 1889 unit tests pass (256 pre-existing collection errors from missing module imports on main).

Fixes #627 Extracted two helpers from the 72-line `chat()` function: - `_read_message_input(message: list[str]) -> str` — joins CLI args and handles stdin reading - `_resolve_session_id(session_id, new_session) -> str` — resolves the effective session ID from CLI flags `chat()` is now a thin orchestrator calling these helpers. All 1889 unit tests pass (256 pre-existing collection errors from missing module imports on main).
kimi added 1 commit 2026-03-21 03:33:28 +00:00
refactor: extract _read_message_input and _resolve_session_id from chat()
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
917bf3e404
Break up the 72-line chat() function into a thin orchestrator by
extracting stdin reading logic into _read_message_input() and session
resolution into _resolve_session_id().

Fixes #627

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Timmy added 1 commit 2026-03-21 13:52:06 +00:00
Merge branch 'main' into kimi/issue-627
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
6fc9ac09d2
Timmy added 1 commit 2026-03-21 18:01:22 +00:00
Merge branch 'main' into kimi/issue-627
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
20159cd286
Timmy added 1 commit 2026-03-21 18:08:42 +00:00
Merge branch 'main' into kimi/issue-627
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
f2295afba5
Timmy added 1 commit 2026-03-21 18:09:13 +00:00
Merge branch 'main' into kimi/issue-627
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
57b9953bb1
Timmy merged commit d1f5c2714b into main 2026-03-21 18:09:23 +00:00
Timmy deleted branch kimi/issue-627 2026-03-21 18:09:23 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#690