You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User ask for the 0.9.12 cleanup lane: the 10k+-line files keep causing pain. Measured today (prod code, excluding the 20k-line test files which should split alongside their subjects):
Approach (same discipline as #5580): mechanical module extraction, one cohesive region per commit, no behavior change, moves verified by cargo check + the file's existing test slice. Suggested first cuts: client.rs wire-parsing (parse_usage/SSE chunk parsing + their tests) into client/wire.rs; config.rs merge/persistence into config/merge.rs; lib.rs engine-config assembly into its own module. Declared one-way per AGENTS.md once started: new code lands in the extracted modules, touched regions migrate.
User ask for the 0.9.12 cleanup lane: the 10k+-line files keep causing pain. Measured today (prod code, excluding the 20k-line test files which should split alongside their subjects):
crates/tui/src/lib.rs— 18,747crates/tui/src/config.rs— 12,346crates/tui/src/client.rs— 11,122crates/tui/src/runtime_threads.rs— 9,322crates/tui/src/core/engine.rs— 6,891,core/engine/turn_loop.rs— 6,668,runtime_api.rs— 6,542,tui/ui/event_loop.rs— 5,721 (event_loop already tracked in Streamline TUI monoliths: split event_loop.rs match into per-domain reducers, slim app.rs #5580)Approach (same discipline as #5580): mechanical module extraction, one cohesive region per commit, no behavior change, moves verified by
cargo check+ the file's existing test slice. Suggested first cuts: client.rs wire-parsing (parse_usage/SSE chunk parsing + their tests) intoclient/wire.rs; config.rs merge/persistence intoconfig/merge.rs; lib.rs engine-config assembly into its own module. Declared one-way per AGENTS.md once started: new code lands in the extracted modules, touched regions migrate.Tracker: #5573. Related: #5580, #5581.