[kimi] refactor: extract helpers from chat() (#627) #690
Reference in New Issue
Block a user
Delete Branch "kimi/issue-627"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 flagschat()is now a thin orchestrator calling these helpers.All 1889 unit tests pass (256 pre-existing collection errors from missing module imports on main).