Skip to content

R2-10.1: further decompose agent/mod.rs (streaming, persistence) #287

@bug-ops

Description

@bug-ops

Epic: #282 | Phase: 2 | Priority: P1 | Size: L

Problem

agent/mod.rs is still 2334 lines after first decomposition. Core loop, streaming, and persistence logic are intermixed.

Solution

Extract two submodules:

  • agent/streaming.rsprocess_response_streaming(), call_llm_with_timeout()
  • agent/persistence.rspersist_message(), check_summarization(), load_history()

Target: mod.rs under 1000 LOC (run loop + dispatch only).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions